EA not working
matolfc:
Hello lads, could somebody help me? I am totally novice with this.
I am just trying with tester this code and it is not working 100%, not every possible trade is executed. (I hope u can see, that I want to buy/sell when current price reaches min/max). Should I write some other conditions or something, or why it is not doing every trade?
Hello lads, could somebody help me? I am totally novice with this.
I am just trying with tester this code and it is not working 100%, not every possible trade is executed. (I hope u can see, that I want to buy/sell when current price reaches min/max). Should I write some other conditions or something, or why it is not doing every trade?
Bid or Ask may not be exactly equal to the trigger price and may just jump over it.
So don't use
if (min == current)use
if (min <= current)or
if (min - current >=0 && min - current < x)
GumRai: Bid or Ask may not be exactly equal to the trigger price and may just jump over it. | Exactly. The == operand. - MQL4 forum |
I am just trying with tester this code and it is not working 100%, not every possible trade is executed. (I hope u can see, that I want to buy/sell when current price reaches min/max). Should I write some other conditions or something, or why it is not doing every trade?