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
Below is code for a news EA. Buy and sell stops are placed at a given time before news release manually. When one in entered the other is closed. I am trying to add functionality to allow the stop loss to follow the take profit by X pips. Say, if profit is 10 pips then stop loss would move to 0 and if profit is 20 stop loss would move to 10 and so on, but if profit is say 25 and stop loss is 10 and profit drops below 20 to even 10 stop loss wouldn't move. In other words Stop loss only goes up by the pip gap.
Here is the original EA:
I tried to work on the pip gap but I'm not sure of what I've done below:
I would really appreciate some help to get this resolved.