I cant set the time Format in the optimisation
Forums › ProRealTime English forum › ProOrder support › I cant set the time Format in the optimisation
- This topic has 9 replies, 5 voices, and was last updated 3 hours ago by
pdrh.
-
-
12/12/2025 at 6:18 AM #254488
I want to make my entry time a variable and tried this as advised by Grahal in a reply to a post some time back .
“Yes I do it often.
Set in the Optimiser min = 000000, max = 230000, step = 010000.
Above will (quickly) give you the optimised hour then narrow it down as, for example … 140000, 150000, 000500 to get to optimised 5 minutes.
Flat Before / Flat After can’t be optimised.”
However my minimum setting keeps getting changed to 0 and the step to 10000,
I cant bring up a dropdown to select Integer or decimal
Cheers
12/12/2025 at 7:17 AM #254489As far as I recall “optimising” with time is not possible. However, reading your post, I would try to do this :
Use for all a factor of [whatever is required] larger, and in the code divide it again.
I do such things with dates too (or else *that* can not be used in optimisation).It is a bit of trialing how the outcome becomes useful and you can use Graph for that. –> You really must because else you don’t know or can’t be sure what the program is working with.
I hope you can get it to work. Back at the time when I tried it quickly, I gave up on it. 🙁
PS: Or GraHal comes back to you. 🙂
1 user thanked author for this post.
12/12/2025 at 9:36 AM #254492changed to 0 and the step to 10000
Yes I get that also, but it still optimises from Midnight in 1 hour steps.
1 user thanked author for this post.
12/12/2025 at 10:42 AM #254499Hi! Have you tried optimizing like this?
12// startHour is the variable from the optimizer (0 to 23)myStartTime = startHour * 10000Another option to optimize minutes would be this:
12//startMinute (min 0, max 55, step 5)myStartTime = (startHour * 10000) + (startMinute * 100)1 user thanked author for this post.
12/12/2025 at 11:12 AM #25450112/12/2025 at 11:26 AM #25450212/12/2025 at 12:35 PM #254505I use:
If Time >= XX AND Time <= YY Then
But if all I want is ‘hours’ then I use below as there is then less steps / less time needed to optimise:
If Hour >= XX AND Hour <= YY Then ( 0 = min, 23 = max, step = 1)
Optimising both XX and YY together is only 529 combinations for the ‘1 hour opti’.
1 user thanked author for this post.
12/12/2025 at 9:18 PM #25451712/12/2025 at 10:22 PM #254518So what are entering that as in your code?
7010 looks like an ‘unworkable value’? Accepting that the leading 00 are missed off then in your code, this should read 007010?? So that is 70 minutes and 10 seconds past midnight / 00?
Which of course won’t work as the minutes value cannot be more than 59??
I just ignore values that are ‘illegal’ when I optimise Time.
I might be missing something here as I’ve had a long day and just about to go to bed! 🙂
So does your code work correctly with Time = 007010??
OR
Are you saying the value your are using in your code is 070100, so 1 minute past 7, i.e. – 7:01am??
1 user thanked author for this post.
12/12/2025 at 11:11 PM #254519 -
AuthorPosts
Find exclusive trading pro-tools on 