• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
    Patrick H.NinjaTrader Customer Service

    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.
        Patrick H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by RB104, Today, 06:06 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_ShawnB  
        Started by jtrading82, 05-25-2018, 09:59 AM
        9 responses
        977 views
        0 likes
        Last Post NinjaTrader_ShawnB  
        Started by syxforex, Today, 12:11 AM
        2 responses
        15 views
        0 likes
        Last Post syxforex  
        Started by aslane, Today, 02:31 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Kate  
        Started by stoner, 10-16-2019, 01:38 PM
        5 responses
        51 views
        0 likes
        Last Post sledge
        by sledge
         
        Working...
        X