Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can Zigzag based strategies be backtested?

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

    Can Zigzag based strategies be backtested?

    Most indicators which have a fixed value at a bar, even when the bars progress in a backtest. E.g. SMA(10)[4] is constant even as bars progress to 3, 2, 1, 0 ->>

    Not sure about Zigzag direction at the current bar in a backtest - if the Close[0] doesn't exceed the Deviation Threshold,
    - is the Zigzag bar directionless (i.e. horizontal) or
    - does it assume the value of Close[0]. This might point upward, but if the next bar closes below the Deviation Threshold, ZigZag would point downward.

    Basically, if i have a rule such as
    Buy when ZigZag[0] > ZigZag[1]; //
    can this be backtested? Or, will ZigZag[0] change direction depending on value of Close[-1]

    thx
    Kiran

    #2
    Hello Kiran,

    Thank you for your post.

    The ZigZag indicator writes values historically. (This means that as it draws its plot it puts this back in time on the chart)

    It doesn't set values on the current bar. Because of this, you can use the ZigZag but you have to have very advanced logic that loops through the historical data looking for changes and reacting.

    So while it is possible, it would take advanced custom logic to achieve.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    237 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    382 views
    1 like
    Last Post Gavini
    by Gavini
     
    Started by oviejo, Today, 12:28 AM
    0 responses
    1 view
    0 likes
    Last Post oviejo
    by oviejo
     
    Started by pechtri, 06-22-2023, 02:31 AM
    10 responses
    125 views
    0 likes
    Last Post Leeroy_Jenkins  
    Started by judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Working...
    X