- Joined
- 11 May 2005
- Posts
- 573
- Reactions
- 3
Do you mean the very next bar after the create bar? Otherwise, it seems to me that prices are always after a create bar, since until the next create bar, there's no change in line direction.kaveman said:Thus when backtesting you only need to define that any signal be after the create bar (star shown circled)
The way I see it, this formula for ZigRise won't always give a point on a rising line. For example, on the day before the next createPeak day, ZigRise will still be true (since createPeak hasn't happened yet) but that bar will ultimately be on a falling line. In fact, for all bars between the actual peak and the createPeak bar, ZigRise will be true, as createTrough will still be the most recent bar of the two.kaveman said:If you have the trades requiring a rising or falling leg of the zigzag then you can use this in backtesting
ZigRise = barssince(createTrough) < barssince( createPeak );
...
buy = OtherBuyConditions and zigrise;
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?