Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ToTime set

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    ToTime set

    Hi ,

    I just try set a strategy and I have one problem. If anyone know how to resolve it ,I will be very glad!! I just have a easy condition (Open[0] > High[1] && High[0] < Low[1] and I cant set specific time for it. I need calculate for example just between 08: 00 am to 09: 00am .

    && ToTime(08, 00, 00) == ToTime(09, 00, 00).

    Thanks for any help!

    Jake

    #2
    Originally posted by Jakub View Post
    Hi ,

    I just try set a strategy and I have one problem. If anyone know how to resolve it ,I will be very glad!! I just have a easy condition (Open[0] > High[1] && High[0] < Low[1] and I cant set specific time for it. I need calculate for example just between 08: 00 am to 09: 00am .

    && ToTime(08, 00, 00) == ToTime(09, 00, 00).

    Thanks for any help!

    Jake
    I think it is more like

    if (ToTime(Time[0]) >= 80000 && ToTime(Time[0]) <= 90000)

    Comment


      #3
      Originally posted by Kevin_in_GA View Post
      I think it is more like

      if (ToTime(Time[0]) >= 80000 && ToTime(Time[0]) <= 90000)
      This is how I rolled. I guess I could eliminate the 2 extra ToTime calls by removing it for 80000 and 90000 like you have.

      if ( ToTime(Time[0]) >= ToTime( 8, 00, 00)
      && ToTime(Time[0]) <= ToTime( 9, 00, 00))
      {
      Print ( "ToTime(Time[0])=" + ToTime(Time[0]));


      }

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      307 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      199 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      186 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      275 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      229 views
      0 likes
      Last Post CarlTrading  
      Working...
      X