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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        49 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        15 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        21 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X