Here is a simplified version of what I want to do, without any actual logic behind the trades.
I am currently using Calculate.OnEachTick. The program detects when it is the first Tick of the bar, but it never runs the If statement to sell after 30 seconds have gone by.
Am I doing something wrong? Please get back to me when you can.

Comment