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 argusthome, Yesterday, 10:06 AM
        0 responses
        14 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        11 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        9 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        4 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        31 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X