// Licensed under the Apache License, Version 2.0 (the “License”); you may not// use this file except in compliance with the License. You may obtain a copy of// the License at//// http://www.apache.org/licenses/LICENSE-2.0//// Unless required by applicable law or agreed to in writing, software// distributed under the License is distributed on an “AS IS” BASIS, WITHOUT// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the// License for the specific language governing permissions and limitations under// the License.#property copyright"..."#property link"..."#property version"1.00"#property strict////////////////////////////////////////////////////////////////////////////////// Buffers.// The visible line on chart.// 0: VWAP// Accessory buffers.// 1: Period Index// 2: Period Start Bar// 3: Acc Price Buffer// 4: Volume Buffer///////////////////////////////////////////////////////////////////////////////// These are probably the buffers you are interested in using, they don’t have// any gaps like the visible line.// 5: Previous Vwap Buffer// 6: Current Vwap Buffer////////////////////////////////////////////////////////////////////////////////enum VwapPeriod {
CurrentDay = 0, // Daily
CurrentWeek = 1, // Weekly
CurrentMonth = 2, // Monthly
CurrentQuarter = 4, // Quarterly
CurrentYear = 3, // Yearly
PreviousDay = 10, // Previous Day
PreviousWeek = 11, // Previous Week
PreviousMonth = 12, // Previous Month
PreviousQuarter = 14, // Previous Quarter
PreviousYear = 13// Previous Year
};
enum VwapPrice {
HIGH, // High
LOW, // Low
OPEN, // Open
CLOSE, // Close
MEDIAN, // Median: (High + Low) / 2
TYPICAL, // Typical: (High + Low + Close) / 3
WEIGHTED // Weighted: (High + Low + Close + Close) / 4
};
enum VwapVolume {
AUTO, // Auto
REAL, // Real
TICK, // Tick
};
intOnInit() {
return(INIT_SUCCEEDED);
}
voidOnDeinit(constint reason) {
}
voidOnTick() {
int periodCount = 1;
double currentVwap = iCustom(
Symbol(),
PERIOD_CURRENT,
"Market/Full VWAP MT4",
"", // Input separator.
VwapPeriod::CurrentDay,
VwapPrice::TYPICAL,
VwapVolume::AUTO,
"", // Input separator.// Period count only affects the buffer 0 (visible line).
// This parameter can be ignored.
periodCount,
// Current Vwap Buffer index.6,
// Bar index, 0 = current value.0
);
double previousVwap = iCustom(
Symbol(),
PERIOD_CURRENT,
"Market/Full VWAP MT4",
"", // Input separator.
VwapPeriod::PreviousDay,
VwapPrice::TYPICAL,
VwapVolume::AUTO,
"", // Input separator.// Period count only affects the buffer 0 (visible line).
// This parameter can be ignored.
periodCount,
// Previous Vwap Buffer index.5,
// Bar index, 0 = current value.0
);
PrintFormat("Current VWAP: %f, Previous VWAP: %f", currentVwap, previousVwap);
}
Valeu irmao, um Vwap sempre me ajudou com day trade em açoes
De nada man, se encontrar algum bug, me avisa fazendo favor.
Gives you confidence while trading
It deserves more than 5 stars
Thanks to the developer
the truth
Gives you confidence while trading
It deserves more than 5 stars
Thanks to the developer
Hurry up to update to version 1.5
It has great features
thanks to the developer
hi Alexandre
Thanks up to update to version 1.6
hi Alexandre
Thanks up to update to version 1.6
верните рабочую версию или исправьте эту
в новой версии ошибки
Full VWAP MT4 EURUSD,H4: invalid pointer access in 'list.mqh' (79,27)
Full VWAP MT4 EURUSD,H4: initialization failed (32767)
верните рабочую версию или исправьте эту
в новой версии ошибки
Full VWAP MT4 EURUSD,H4: invalid pointer access in 'list.mqh' (79,27)
Full VWAP MT4 EURUSD,H4: initialization failed (32767)
при подключении к роботу в тестере пишет ошибку
Full VWAP MT4 EURUSD,H4: initialization failed (32767)
при том что при всех настройках работает кроме:
Period = всех настроек с параметром Previous
despite the fact that with all settings it works except:
Period = of all settings with Previous parameter
Which version of the indicator are you using? 1.6 or 1.61?
при подключении к роботу в тестере пишет ошибку
Full VWAP MT4 EURUSD,H4: initialization failed (32767)
Which version of the indicator are you using? 1.6 or 1.61?
1.61
Are you trying to read the indicators' values with iCustom in an EA?
да
Yes
я обращался к настройке по цифре (по-порядку)
а тут с 0-5 и с 10-13))