Registered User Joined: 7/7/2008 Posts: 115
|
Scenario:
1. Plot a 10 day moving average: AvgC10
2. Offset by -5: Can be achieved on the chart easily
3. As we are using negative offset, current bar or 5 recent bars will not show #2 above
4. Need to plot as histogram or bar chart: Mean of bar + L - #2 value which makes the plot considering #2 as zero line
(H-L)/2 + L - #2 value at that bar (dont care about recent 5 bars)
Can this be achieved in any form?
any help is much apppreciated.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The formula for the most recent value of what you want would be the following which could be plotted as a Custom PCF Indicator.
(H5 + L5) / 2 - AVGC10
You can then add a 1-period simple moving average with an offset of -5 and the Plot Style set to Histogram to the Custom PCF Indicator to plot it where you want it on the chart. Set the opacity of the original Custom PCF Indicator all the way to the left if you don't want it to plot as well.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 7/7/2008 Posts: 115
|
Thanks :-)
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|