Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to get weeks number?

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

    How to get weeks number?

    Hi,
    How to get the week's number in NinjaScript?

    Thanks in advance.

    #2
    Hello bassam,

    Thank you for your post.

    Are you looking for the Weekly Open, High, Low, and Close?

    I look forward to your response.

    Comment


      #3
      Thanks Patrick,

      If you look at the DataBox on Weekly chart, you'll find that every week has a number like 49/2012 or 52/2011 ... etc. How do I get that in Ninjascript?

      Trying to develop seasonality indicator and for that I need the week number.
      Last edited by bassam; 04-28-2013, 02:53 PM.

      Comment


        #4
        Hello bassam,

        Thank you for your response.

        This will require custom programming in C#. There is no supported method in NinjaScript to pull the Week's number.

        There are different ideas on how to get the week number, you can view a Google search I did on 'C# get week number' at the following link: https://www.google.com/search?q=date...w=1280&bih=939

        Please let me know if I may be of further assistance.

        Comment

        Latest Posts

        Collapse

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