Hi guys, This one is driving me nuts. I’m trying to code a very simple strategy: “If close within 10% of range – buy on open next day. Then sell on first profitable opening.” This is what I got so far: varrange = high - low varinrange = low + (varrange/10) //Check if yesterday closed within 10% IF close > low AND close < varinrange AND intrade = 0 THEN varbuy = 1 intrade = 1 price = open ELSE varbuy = 0 ENDIF //Check if open above paid price IF open > price AND intrade = 1 THEN varsell = 1 intrade = 0 price = 0 ELSE varsell = 0 ENDIF // Conditions to enter long positions IF NOT LongOnMarket AND varbuy = 1 THEN BUY 50 CONTRACTS AT MARKET ENDIF // Conditions to exit long positions If LongOnMarket AND varsell = 1 THEN SELL AT MARKET ENDIF I got as far as to enter correctly, but I cant exit without at least a days delay. I seems that PRT doesnt work “in the moment”, it looks at an entire bar and takes action the next day. Is there a way to exit as it happens? In this case I want to get out as soon as we open with a win.