Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Silly newbie question

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

    Silly newbie question

    I am trying to understand how NT plots on candle[0] when something happened [n] candles ago. This line works fine:

    Plot0.Set(Close[0]>=Open[0] ? 1 : 0);

    and plots a bar of length 1 whenever a green candle occurs.

    This line, which I thought should plot a bar of length 1 whenever the preceding candle was green, plots nothing.

    Plot0.Set(Close[1]>=Open[1] ? 1 : 0);

    Can someone point me in the right direction for help?

    Thanks,
    Snap

    #2
    Please see here: http://www.ninjatrader-support.com/v...ead.php?t=3170

    Comment


      #3
      Here is another silly question from a newbie like me

      I need to set the chart to daily and extract yesterday open, high ,low and close, How do I do it ?

      I looking at all those command like high (0), low (0)..... what does the '(0)' mean? what happen if i change to 1 or 2?

      By the way is there any guide that i can download and read to understand?

      Please help me, thank you very much?

      Comment


        #4
        On a daily chart doing Close[0] will give you the current day's close. Doing Close[1] will give you the previous day's close. Close[2] is two days ago's close. etc etc.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by Josh View Post
          On a daily chart doing Close[0] will give you the current day's close. Doing Close[1] will give you the previous day's close. Close[2] is two days ago's close. etc etc.
          Thank Josh

          I try work on that...don't mind if I have any problem.. i come back again...thank you

          Comment


            #6
            Originally posted by Josh View Post
            On a daily chart doing Close[0] will give you the current day's close. Doing Close[1] will give you the previous day's close. Close[2] is two days ago's close. etc etc.
            Hi...the wizard does not have any thing to say ' set chart to daily' so am i right to assume that when I execute the strategy at the begining where the data series column and i choose 'day' mean the chart will be on daily?

            The 'value' is automatic set to 1... is it mean it start from yesterday? ( i try to put it zero but keep going back to 1)

            Comment


              #7
              The chart time frame is determined when you run the strategy. The value of 1 means the bars will be on 1 day time frames.
              Josh P.NinjaTrader Customer Service

              Comment


                #8
                Originally posted by Josh View Post
                The chart time frame is determined when you run the strategy. The value of 1 means the bars will be on 1 day time frames.
                Hi

                first of all, thanks for being patient with me...hee...i have another question. As we know every start of the week,the when Australia forex market start , in the daily chart of my forex platform, it will generate a new bar. Does this apply to ninja trader too...like every time the Aussie market start.. new daily bar will be generate..?

                Comment


                  #9
                  The daily bar will be generated as it runs real time.
                  Josh P.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by iceman2018, Today, 05:07 PM
                  0 responses
                  4 views
                  0 likes
                  Last Post iceman2018  
                  Started by rhyminkevin, Today, 04:58 PM
                  0 responses
                  24 views
                  0 likes
                  Last Post rhyminkevin  
                  Started by lightsun47, Today, 03:51 PM
                  0 responses
                  6 views
                  0 likes
                  Last Post lightsun47  
                  Started by 00nevest, Today, 02:27 PM
                  1 response
                  14 views
                  0 likes
                  Last Post 00nevest  
                  Started by futtrader, 04-21-2024, 01:50 AM
                  4 responses
                  49 views
                  0 likes
                  Last Post futtrader  
                  Working...
                  X