Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Session templates and time filters in code

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

  • vibarco
    replied
    Thanks Bertrand.

    Leave a comment:


  • NinjaTrader_Bertrand
    replied
    No worries Vince - correct in your case the time filter would be the same as the session hours given by the template, hence the influence on the strategy OnBarUpdate() calls would be identical.

    Leave a comment:


  • vibarco
    started a topic Session templates and time filters in code

    Session templates and time filters in code

    Hi All,

    if my session template is (Mo,Tu,We,Th,F) from 15:30 to 22:00 (GMT +1) Madrid. And in my strategy i have a time filter like this:

    if ((ToTime(Time[0]) >= 153000 && ToTime(Time[0]) < 220000)

    There is no need to use this filter in the code, isn't it?, i mean, do we really need time filters in the strategy code? or is it better to adjust properly the session template.

    Sorry about my english,
    Vince.

Latest Posts

Collapse

Topics Statistics Last Post
Started by libertyworkc, Today, 03:09 AM
0 responses
1 view
0 likes
Last Post libertyworkc  
Started by SusanBarnesa, Today, 03:00 AM
0 responses
2 views
0 likes
Last Post SusanBarnesa  
Started by visentialsmax, Today, 02:27 AM
0 responses
1 view
0 likes
Last Post visentialsmax  
Started by visentialsmax, Today, 02:26 AM
0 responses
3 views
0 likes
Last Post visentialsmax  
Started by JorgaShaw, Today, 02:03 AM
0 responses
1 view
0 likes
Last Post JorgaShaw  
Working...
X