Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Doing a calculation within N bars where N is an user

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

    #16
    Hello

    Thanks for your reply.

    I will answer your question however please help us keep the forum organized by creating a new topic when your question(s) no longer relates to the current topic, in this case, "Doing a calculation within N bars where N is an user"

    How to check if today's Sunday?
    You can generate the code for this in the Strategy Builder by left side Time>Date series (Bars ago of 0), Equals, right side Time>Day of week> Sunday.

    The code generated would be: if (Times[0][0].DayOfWeek == DayOfWeek.Sunday)

    The code is asking the question is the date of the current bar equal to Sunday.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    35 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    12 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    18 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X