When setting my profit target in my strategy, I usually use the following key lines:
ProfitTarget = X;
SetProfitTarget("", CalculationMode.Ticks, ProfitTarget);
and it works perfectly well with me. However, I've lost my way on how to set two different profit targets for two different conditions. I tried using the above lines but with different names such as ProfitTarget1 and ProfitTarget2, but did not work.
Can you please guide me on how to achieve that?
Appreciate your support
Comment