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 bortz, 11-06-2023, 08:04 AM
      47 responses
      1,610 views
      0 likes
      Last Post aligator  
      Started by jaybedreamin, Today, 05:56 PM
      0 responses
      9 views
      0 likes
      Last Post jaybedreamin  
      Started by DJ888, 04-16-2024, 06:09 PM
      6 responses
      19 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by Jon17, Today, 04:33 PM
      0 responses
      6 views
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      16 views
      0 likes
      Last Post Javierw.ok  
      Working...
      X