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 |
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
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?