Posts: 2,435 since Apr 2013
Thanks Given: 482
Thanks Received: 1,627
|
auato,
I would suggest to use print statements to check the values in case you are in doubt.
As your code is evaluated with every tick when intrabar order generation is enabled the reserved words, for example High, will return their value at the moment of the code execution. When you apply your code to a 1 hour bar, High will return the one hour bar's high at the moment of the code computation. High[1] will return the value of the high for the previous bar and so on.
Regards,
ABCTG
|