I'm trying to short a position when the close of the latest bar exceeds the highest high of the previous 20 bars.
Please can someone tell me what is wrong with the below formula? It seems to be giving me zero results when I backtest it
if (Close[0] > MAX(High[20])[0])
EnterShort(DefaultQuantity, "");
Ta
Steve
Comment