SAR (Stop and reverse) strategy with TRADE_ACTION_CLOSE_BY ? (MQL5)

 

Hi,

Buy 1 (+1 long) then Sell 2 (-1 short), then Buy 2 (+1 long)…

Can I use "TRADE_ACTION_CLOSE_BY" for this strategy ?

Is it useful, does it save transaction fees in this case ?

If yes, how??  No Ctrade library please.

I've spent hours trying to find a MQL5 code example !!


Thank you !