- You enter the trade, get stopped out, then try to open the same trade again. What do you expect?
- Try opening only at the start of a new bar.
- You enter the trade, get stopped out, then try to open the same trade again. What do you expect?
- Try opening only at the start of a new bar.
Thank you for replying,
Could you please point me a direction of how i could do that? I am fairly new to mql5
I have at least 25 tabs open trying to find an answer, i am struggling to do that, i though that maybe someone could point a direction, maybe point out i got a line of code wrong or if it was a big code than just tell me what i should study, to find the answer of a question first it need to be already asked and none of the answers i found were able to satisfy what i needed to know.
I came here because i wanted to know what i need to study to solve my problem, no need to be rude.
I cant understand why the EA works fine for some candles and sometimes it just dont for others even though they follow the same rules.
I have at least 25 tabs open trying to find an answer, i am struggling to do that, i though that maybe someone could point a direction, maybe point out i got a line of code wrong or if it was a big code than just tell me what i should study, to find the answer of a question first it need to be already asked and none of the answers i found were able to satisfy what i needed to know.
I came here because i wanted to know what i need to study to solve my problem, no need to be rude.
I cant understand why the EA works fine for some candles and sometimes it just dont for others even though they follow the same rules.
Because you don't your check prices against the market. There are rules to follow about open/stoploss/takeprofit.
See here
(mql4 link but it works the same (usually) with mql5).

- book.mql4.com
I`ve been able to make my EA work, it should trade haramis, but it`s not trading all of them, sometimes i get the INVALID PRICE error
Could someone help me please?
The code places a buystop and a sellstop order at the high and low of the harami

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I`ve been able to make my EA work, it should trade haramis, but it`s not trading all of them, sometimes i get the INVALID PRICE error
Could someone help me please?
The code places a buystop and a sellstop order at the high and low of the harami