-
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)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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