Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Allow trades within specific dates

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

    Allow trades within specific dates

    In the larger timespan, let's say 2022, I only want trades to be entered within Feb 3rd, 2022 till March 15th, 2022.

    What code should I put in the strategy so I can achieve the above mentioned result?

    #2
    Hi UltraNIX, thanks for posting. The Time[] array holds timestamps for each bar. This includes Time[0].Day and Time[0].Year. In the strategy builder it would look like this:

    Date Series > or < Date Value
    Attached Files

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X