Dear IgorM. I am new to programming. I studied the textbook and know about iClose, but I don't know how to correctly write the condition "If on a daily timeframe the Close of the last candle is less than Open" in the code. Please give me some hints.
Dear IgorM. I am new to programming. I have studied the tutorial, I know about iClose, but I can't figure out how to correctly write the condition "If on a daily timeframe Close of the last candle is less than Open" in the code. Please give me some hints.
if (iClose(NULL,PERIOD_D1,0)<iOpen(NULL,PERIOD_D1,0)){
// код если работаете на нулевом баре - т.е. на последнем незакрытом
}
if (iClose(NULL,PERIOD_D1,1)<iOpen(NULL,PERIOD_D1,1)){
// код если работаете на первом баре - т.е. на последнем закрытом баре
}
Can you tell me why when I open a position with OrderSend with a huge Slippage set, I still get re-quotes (138 error) even though the price change was quite small?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
You can see that it should show DN, but it shows UP and I have this function:
double LRMA_UP=iCustom(NULL, 0, "VininI_LRMA_Color_Sounr(V2)", period, price, Shift, sensor, bPlaySound, SoundName,CheckBar, 1, 0);
it returns 0 and should it be like this?
and why CheckBar = 0, I need only the last bar, so it should be inserted Bars-1 or am I mistaken? in general help me out plz.
result is the same
Do you change the settings? Don't do it any better.
Dear Experts. Please advise how to write the Close bar of the high timeframe in the code, if the Expert Advisor is on a low timeframe.
Dear Experts. Please advise how to write the Close bar of the high timeframe in the code, if the Expert Advisor is on a low timeframe.
https://www.mql5.com/ru/search?utm_campaign=MQL4.community
Dear IgorM. I am new to programming. I studied the textbook and know about iClose, but I don't know how to correctly write the condition "If on a daily timeframe the Close of the last candle is less than Open" in the code. Please give me some hints.
Dear IgorM. I am new to programming. I have studied the tutorial, I know about iClose, but I can't figure out how to correctly write the condition "If on a daily timeframe Close of the last candle is less than Open" in the code. Please give me some hints.
Thank you very much!