Just change it to:
if ( Bid < OrderOpenPrice()+BreakEvenStop*Point ) return;
StopLoss = OrderOpenPrice()+1*Point;
break even function code
hi chievo11
can you post the breakeven cfunction code here .
chievo11:
In my EA I have a breakeven funktion which sets SL to entry.
In my EA I have a breakeven funktion which sets SL to entry.
How can I set EA that he mades not 0pips but 1pip ?
I think this is the line:
if ( Bid < OrderOpenPrice()+BreakEvenStop*Point ) return;
StopLoss = OrderOpenPrice();![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
In my EA I have a breakeven funktion which sets SL to entry.
How can I set EA that he mades not 0pips but 1pip ?
I think this is the line:
if ( Bid < OrderOpenPrice()+BreakEvenStop*Point ) return;
StopLoss = OrderOpenPrice();