It is based on CCI, EnterLong and EnterShort when conditions fulfilled, StopLoss and Profittarget set.
Then I tried to backtest it in Strategy Analyzer. And there are some trades which ended with "Close position". But I want trades to end only "StopLoss", "ProfitTarget" and "Exit on Close". Why some trades end with "Close position"? It happens when I am Long and before StopLoss or ProfitTarget new Short order is generated. But I want to Close this Long position later. Is it possible to set it somehow?

Comment