if without Use higher time frame my conditions are (Close[1] > baseEMA[1]) && (baseEMA[1] < slowEMA[1]) always.
if I use HTF then this condition is not relevant (Close[1] > baseEMA[1]) && (baseEMA[1] < slowEMA[1]).
However if i follow logic below, then if UseHTF is selected then strategy will only execute limited trades, trades that are baseEMA[1] > slowEMA[1] and will not execute trades that are baseEMA[1] < slowEMA[1] and I would want to execute both trades if UseHTF is selected.
&& ((!UseHTF) ? ((Close[1] > baseEMA[1]) && (baseEMA[1] < slowEMA[1])) : !(Close[1] > baseEMA[1]) && (baseEMA[1] < slowEMA[1]))
I hope i illustrated it correctly..

Comment