• 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 Mykro, Today, 08:42 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_Kate  
        Started by franki, Yesterday, 12:52 PM
        3 responses
        23 views
        0 likes
        Last Post koganam
        by koganam
         
        Started by SuperDriveGuy, Today, 08:13 AM
        0 responses
        2 views
        0 likes
        Last Post SuperDriveGuy  
        Started by bouncetherubble, Today, 07:24 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by fiddich, Today, 08:06 AM
        1 response
        6 views
        0 likes
        Last Post fiddich
        by fiddich
         
        Working...
        X