When I put this code to exit trades:
ExitLong(Qty, "R2S_XLM_MA", "R2S_ELS_Strong Uptrend");
ExitLong(Qty, "R2S_XLM_MA", "R2S_ELM_Strong Uptrend");
It gives me an error while backtesting. However, if I only put it like this:
ExitLong();
I could leave only 1 ExitLong line, but doing this I would lose Exit name and I don't want to do it. And the 2nd line of ExitLong with parameters differentiates with only one letter, but it defines, whether it was StopMarket (S) or Market (M) order initially.
Comment