How to Add Seconds to TIME?
Forums › ProRealTime English forum › ProBuilder support › How to Add Seconds to TIME?
- This topic has 7 replies, 3 voices, and was last updated 5 years ago by
toltec1000.
-
-
05/27/2020 at 2:17 PM #133448
Hello,
I would like to create a time window by defining times using the HHMMSS format and adding 4 seconds to it, something like:
123OpenMarketTime= 143000CloseMarketTime=210000OpenMarketWindow= Time > OpenMarketTime AND Time < CloseMarketTime+5 <- intention is to extend the window by 5 secondsThis doesn’t seem to work, although I don’t get an error. Is there a way of getting this right?
Thanks for your help
Gary
05/27/2020 at 2:20 PM #13344905/27/2020 at 2:31 PM #13345005/27/2020 at 3:14 PM #133458Something isn’t adding up unfortunately. The code doesn’t run on a 1 second chart. However if I change CloseMarketTime+5 to a specific time eg 210005 in the above code, it runs. (CloseMarketTime+5) doesn’t help either
05/27/2020 at 3:24 PM #13346205/27/2020 at 3:27 PM #133463I understand thanks, but there are trades during the 5 second added time on the SPX500. Changing the time to a specific number 210005 finds many trades.
05/27/2020 at 4:06 PM #133467I tried this indicator on a 1-second TF:
1234OpenMarketTime= 143000CloseMarketTime=210000OpenMarketWindow= Time > OpenMarketTime AND Time < CloseMarketTime+5return OpenMarketWindowit seems to be working fine (pic refers to yesterday night).
05/27/2020 at 4:15 PM #133474Thanks for the help… I’ll dig deeper, but can’t get it to work strangely
-
AuthorPosts
Find exclusive trading pro-tools on 