Registered User Joined: 7/16/2011 Posts: 2
|
What would be the code for a scan to detect the high over the most recent 30 days that occured in the last say 7 days ?
|
Registered User Joined: 9/17/2010 Posts: 484
|
General form of High PCF Element is
MAXwx.z -> Maximum Value of Price Component or Volume over a specified span of bars ending on the specified bar (w must be O, H, L, C or V)
So I think you would want
MaxC30 = MaxC7 or, if you wanted to scan for the condition 1 bar ago
MaxC30.1=MaxC7.1
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The formulas for bcochrane are correct if you are looking for the closing high. If you want to check for the highs of the bars, you would change the Cs in the formula to Hs instead. So if you include the current bar.
MAXH30 = MAXH7
And if you you are just going through the previous bar.
MAXH30.1 = MAXH7.1
-Bruce Personal Criteria Formulas TC2000 Support Articles
|