// Stop loss long
if (Close[1] < MIN(Low, 10)[1])
{
ExitLong("Exit LONG", "Enter LONG");
}
// Stop loss short
if (Close[1] > MAX(High, 10)[1])
{
ExitShort ("Exit SHORT", "Enter SHORT");
}
Min/Max works when I enter positions. Ex: && High[1] >= MAX(High, 10)[1])
NinjaTrader doesn't show any mistakes in the code itself so why is it not working?
Comment