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 adeelshahzad, Today, 03:54 AM
    5 responses
    30 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by stafe, 04-15-2024, 08:34 PM
    7 responses
    31 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by merzo, 06-25-2023, 02:19 AM
    10 responses
    823 views
    1 like
    Last Post NinjaTrader_ChristopherJ  
    Started by frankthearm, Today, 09:08 AM
    5 responses
    18 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    43 views
    0 likes
    Last Post jeronymite  
    Working...
    X