Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What is this just to confirm...

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

    What is this just to confirm...

    Hi there:

    I know this is elementary...but, could you please confirm what the "1" is referring to? saying:

    if (CrossAbove(SMA(Fast), SMA(Slow), 1)

    Greg

    #2
    Hello Greg,

    Thank you for your post.

    This refers to the look back (how many bars) for the Cross Above condition.

    For information on CrossAbove() please visit the following link: http://www.ninjatrader.com/support/h...crossabove.htm

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

    Comment


      #3
      0 would be current bar and 1 the bar just before the current bar, right, when also set to Calculate on bar Close = True?

      Also, would 1 actually still be the current bar and not 1 bar before the current bar if set to Calculate on bar Close = False?

      Comment


        #4
        Hello Greg,

        Thank you for your response.

        With COBC = True, 0 would be the last closed bar on the chart and 1 would be the bar before the last closed bar.

        With COBC = False, 0 would be the current bar that is painting and 1 would be the last closed bar on your chart.

        For information on COBC please visit the following link: http://www.ninjatrader.com/support/h...onbarclose.htm

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

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        60 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        145 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        161 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        97 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        283 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X