@despair (well, I did never code a robot in PRT, that’s why I am not so familiar with it). If I understand you correctly in a 4-hour EA the code is read at the beginning of each 4-hour bar. I think of something like: alarm 14:00 – get up, read and execute code – back to sleep, blanket over the head and shit on the rest of the world – next alarm not before 18:00.
The problem it’s that at 14:00 the robot read and execute code, in your code the conditions are ok so you put an order to the market, and then, the order EXECUTE AT 18:00!!!!
YEAHH!!!