Registered User Joined: 11/14/2005 Posts: 77
|
Hi,
I would like to plot the following indicator for my pcf, please advise.
1. Heiken Ashi average
Haclose = (open + close + low + high) /4
Haopen = (haopen (pervious bar)+ haclose (previous bar))/2
Hahigh = max (high, haopen)
Halow = min (Low, haopen)
How can I plot it as "bar" chart?
2. Price channel
- Top channel = 5 period, high
- Bottom channel = 5 period, low
Thank you
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The following Personal Criteria Formulas should provide the correct values:
HaClose:
(O + C + L + H) / 4
HaOpen:
(XAVGO3.1 + XAVGC3.1 + XAVGL3.1 + XAVGH3.1) / 4
HaHigh:
(4 * H + XAVGO3.1 + XAVGC3.1 + XAVGL3.1 + XAVGH3.1 + ABS(4 * H - XAVGO3.1 - XAVGC3.1 - XAVGL3.1 - XAVGH3.1)) / 8
HaLow:
(4 * L + XAVGO3.1 + XAVGC3.1 + XAVGL3.1 + XAVGH3.1 - ABS(4 * L - XAVGO3.1 - XAVGC3.1 - XAVGL3.1 - XAVGH3.1)) / 8
I do not know of a way to use these values when constructing Bars or Candlesticks in TeleChart.
To Plot your Price Channel, please try the following:
Select Chart Template | Add Indicator | Indicator | Top.
- Visible: Checked
- Center Zero Line: Unchecked
- Plot using price scale: Checked
- Smoothing Average: 1
- Average Type: Doesn't matter (because the Smoothing Average is 1).
- Indicator Formula: MAXH5
Select Chart Template | Add Indicator | Indicator | Top.
- Visible: Checked
- Center Zero Line: Unchecked
- Plot using price scale: Checked
- Smoothing Average: 1
- Average Type: Doesn't matter (because the Smoothing Average is 1).
- Indicator Formula: MINL5
You may wish to review the following:
Plotting Custom Indicators with Examples
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|