Registered User Joined: 6/5/2010 Posts: 27
|
When a condition is met and a True Marker is generated, it always is placed on the last, most current bar that completes the condition.
Is it possible to adjust the placement of the Marker, by Offset, Real Code, or some other way, such that the Marker appears over a specific bar in the group of bars that create the condition.
For example, if I wish to find a specific 5-bar price pattern, such that the 3rd bar in the sequence is the highest high of the group, can the Marker be placed over that 3rd bar, instead of the 5th bar?
Thanks
jm
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
It possible to make the adjustment, but you should never use such Conditions for backtesting. You just need to use negative offsets to represent future data:
If Price.High > Price.High(-2) AndAlso _
Price.High > Price.High(-1) AndAlso _
Price.High > Price.High(1) AndAlso _
Price.High > Price.High(2) Then Pass
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 6/5/2010 Posts: 27
|
Very nice. I will note the caveat about backtesting too.
Thanks Bruce.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|