let's say the Current ATR is 50, we want to close half 50 pips at 1 ATR hit and we want to close another half at 2 ATR hit I mean when 100 pips hit.
we determine our tp at 4 ATR and we will run the trade. we give the trailing stop value at 1.5 ATR value.
we can manually determine ATR value in EA.
Once one ATR hit we close half trade with a profit, price come back but don't hit stop, If we get another signal we can open other trade. these options on-off.
At max, we can have 2 positions open.
Another Trade entry option we can add that is buying the pullback up-trending market and selling the pullback at the down-trending market. That is a little bit complex. In manual trading, I use that and with another Indicator confirmations. If you want I can share that with you but it may be a little hard to code. But by adding this our present EA will be a Robust trading system.
Thanks and I really appreciate your hard work and your coding skills. So far you have done excellent.
MA provides the market's current direction and strength.