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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        64 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        35 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        51 views
        0 likes
        Last Post CarlTrading  
        Working...
        X