currentBars != Bars not working
-
if(currBars != Bars< &&Nearest_Down_Level && checkMA(0) && isAvailableOrder()){}
Do not post code that will not even compile.
-
For a new bar test, Bars is unreliable (a refresh/reconnect can change number of bars on chart), volume is unreliable (miss ticks), Price is unreliable (duplicate prices and The == operand. - MQL4 programming forum.) Always use time.
New candle - MQL4 programming forum #3 (2014)
Hi, here is my code for which I have this problem, but I don't understand why you give me this in the end which in a nutshell only fits me long and not short
I would just like to tell them that if the bar is rising above the Bars >Nearest_Up_Level, buy
vice versa for the short Bar<Nearest_Down_Level