Forums › ProRealTime English forum › ProOrder support › question re time syntax › Reply To: question re time syntax
04/14/2020 at 7:17 AM
#126020
I use 10000 steps (1 hour), so you can use 3000 (30 minutes)
But that would give you times such as:
170000
173000
176000 (not a valid time)
179000 (not a valid time)
182000
You will have an awful lot of tests with no results to run through.
Perhaps optimising with two variables would be better and more efficient. MyHour 0 to 23 in steps of 1 and MyMinute 0 to 1 step 1 and then add the following to the start of your strategy:
|
1 2 3 4 5 6 |
extra = 0 if myminutes = 1 then extra = 3000 endif mytime = (myhour * 10000) + extra |