I tried adding a time constraint in my strategy but can't get it working. I want to add a "maximum 15 minute" rule between two swing highs that I capture in previous steps. I used ToTime() function as it was described in the Help Menu.
if (model_A && ToTime(Time[new_swing_high])-ToTime(Time[old_swing_high])<=1500) { Order Rules ... }
Thanks
MT
Comment