How do I refer to my entrybar -1 to get its high and low. Trying to do something like this: IF LongOnMarket AND close < low[TRADEINDEX(-1)] THEN SELL AT MARKET ENDIF Im trying to set a stoploss = low of the bar that generated the trade.