Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compare Previous Bars as a series

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

    Compare Previous Bars as a series

    I am having a hard time building my strategy to hit a certain point and be able to check back and check the previous 10 bars as a series. I believe what is happening right now with my strategy is it's comparing the close of bar to 10 bars behind it but not the entire series of bars, just the tenth. How would I build it so it compares the entire series?
    thanks
    Pete

    #2
    Pete,

    To check all of the 10 bars you need to check each one individually. That means checking against [10], [9], [8], [7], etc.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by AaronKoRn, Today, 09:49 PM
    0 responses
    7 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Today, 08:42 PM
    0 responses
    9 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Today, 07:51 PM
    0 responses
    10 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,980 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    9 views
    0 likes
    Last Post rbeckmann05  
    Working...
    X