Hello, could you please advise me, when I install a custom indicator in MQL4, everything works, but when I switch to another timeframe only deinit (from previous timeframe) works, and init does not work on a new one, i.e. the program does not restart, it just removes from the window. When I manually set the indicator to the new timeframe all goes well. What may be the problem?
This is exactly the trick - forex has a tick volume of a bar, but there is no tick trade volume. But the sources of tick quotes (Ducascopy, etc.) giveAskVolume,BidVolume valuesafter price values in the form 0.32,0.12 (and it is not clear whether it is 2 digits with commas or 4.
[in] Тип данных, хранящихся в индикаторном массиве. По умолчанию INDICATOR_DATA (значения рассчитанного индикатора). Может также принимать значение INDICATOR_COLOR_INDEX, тогда данный буфер предназначен для хранения индексов цветов для предыдущего индикаторного буфера. Можно задать до 64 цветов в строке #property indicator_colorN. Значение...
Why when an if condition is passed to a function, it swears " 'all_clouse' - function not defined"
if(buy>=position)
{
All_clouse(); // 'All_clouse' - wrong parameters count
}
..............
дальше код
..............
Уже за пределами OnTickvoid All_clouse(int a,double x, double y)
{
.............
} к самой функции закрытия ордеров у него претензий нет.
Print() in visual mode
Great! Thank you! It all worked out. Checked all the variables at once.
Good afternoon!
What are the options to get data of this type:
Time (UTC),Ask,Bid,AskVolume,BidVolume
Ask,Bid - it is enough to specify. You don't have to get too complicated, and there is only 1 Volume in Forex.
iVolume
Returns the value of the tick volume of the bar (specified by the shift parameter) of the corresponding chart.
This is exactly the trick - forex has a tick volume of a bar, but there is no tick trade volume. But the sources of tick quotes (Ducascopy, etc.) giveAskVolume,BidVolume valuesafter price values in the form 0.32,0.12 (and it is not clear whether it is 2 digits with commas or 4.
Thank you!
Hello.
Please advise, I have rewritten my code for MQL5, which was written for MQL4.
I've got two EMAs, one for one.
I've gotno errors when compiling it, but it doesn't show the same results as in MQL4.
I've looked through the MQL5 manual, but I don't understand anything.
Hello.
Please advise, I have rewritten my code for MQL5, which was written for MQL4.
I've got two EMAs, one for one.
I've gotno errors when compiling it, but it doesn't show the same results as in MQL4.
I've already broken my eyes in theMQL5 manual, I don't understand anything.
In mql5, buffers have to be flipped, as they go backwards.
Add a construction and read about it
In mql5 you have to flip the buffers, they go backwards.
Add a construction and read about it
Please help, where is the error?
Why when an if condition is passed to a function, it swears " 'all_clouse' - function not defined"
Please help, where is the error?
Why is it that in an if condition with a jump to a function it says " 'all_clouse' - function not defined"?
Because you have to feed parameters into the function and you are calling it empty All_clouse()