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 Belfortbucks, Today, 09:29 PM
    0 responses
    6 views
    0 likes
    Last Post Belfortbucks  
    Started by zstheorist, Today, 07:52 PM
    0 responses
    7 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    151 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    6 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Working...
    X