Does anyone know if there is a code that checks the current or previous candle before allowing a buy short or long?