Please edit your post and use the code button (Alt+S) when pasting code.
EDIT your original post, please do not just post the code correctly in a new post.
- Just write your trailing code. Don't modify the SL unless the new SL is above/below OOP (break even) and above/below the current SL.
- Run the posted code through the styler so you can see what is inside what.
William Roeder:
- Just write your trailing code. Don't modify the SL unless the new SL is above/below OOP (break even) and above/below the current SL.
- Run the posted code through the styler so you can see what is inside what.
But breakeven still running.
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 a newbie need help for my code. I copied all the stuff from here and there. Till now everything is working as expected.
Trail & Breakeven both working individually. But if I activate them with "if else" both start working , SL moves to BE then TS and viceversa rapidly. i.e. SL simply dances on every price change.
Any help will be appriciated.
Trailing code I took from below thread.
https://www.forexfactory.com/thread/...code-for-an-ea