EA to close half trades when crossing Buffer point, while putting trail loss on other half.
-
I basically want me EA to close hall my trades when it crosses a buffer but keep the other half to ride while having a stop loss, I cant seem to figure it out and the things I have tried it refused to close any trades, should I be in the "On Tick" chart or "On Trade" chart as well? Also admin if you see this the EA is called Trend Reader V.02. It seems that as of right now it just creates 30-40 trades even though my conditions for the close trade is not the same as the buy condition(I made Sure to check FxDreema's Post About It).
-
@fxDreema Any help would be great, still havent been able to efficiently do this, i have tried the for loops and also if trade block, for some reason it opens a massive amount of trades when it either buys or sells?
-
@laneciar Here some screen shots with possible ways to go about it... I haven't tried, depends on your indicator, and where you want to TP. Configure specifically. Anyone with other suggestions, or if I am wrong about these, please correct and give your perspective. Thanks.
First example is with two sets of buy sell, where one is with Trailing stop loss, the other with TP at price level from indicator buffer. Different Groups!!!
In the picture is SL at price level, with TP at 100% from SL , meaning same distance on profit from open price as the SL. This could be 200% etc.
But you could do SL at some pips, and TP at some level, based on indicator.

Second example is for loop with condition on indicator or how you want it. But in this case, I guess you will have to have more than 0.01 lot size, as 0.01 is minimum at most brokers, and currencies. It depends, I guess.

Third Example is with on trade event, not on tick.. and with Groups!!! also.

Hope this helps, and if there are other suggestions please help, this is good to know for everybody. Thanks.