Need help to complete code , Once breakeven hit then trailing stop should start.
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.
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