Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 5/27/2005 Posts: 35
|
Hi Support ,
i need help in writing price channel Indicator :
i want to do the following :
i want to write price channel indicator that will be plot on the main chart .
This price price line indicator will be constructed by taking the high of the day minus the low of the day for 10 days and finds the average range of volatility and then plots a price channel around a 10 day moving average of price .
please help me to do this .
thanks
Ron
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following:
Select Chart Template | Add Indicator | Price Channel. - Visible: Checked - Plot Formula Line: ? - Smoothing Average: 10 - Average Type: Simple - Width Multiplier: 10 - Indicator Line Formula: C - Channel Width Formula: H - L
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 10/7/2004 Posts: 1,006
|
Hi Bruce,
I would like to expand and learn about the following Price Channel Indicator:
- Smoothing Average: 10 - Average Type: Simple - Width Multiplier: 10 - Indicator Line Formula: C - Channel Width Formula: H - L
I also would like to construct a Price Crossover for the Upper and for the Lower Channel and I appreciate the follwing PCFs.
1. PCF for the Upper Channel (UC), Today: 2. PCF for the Upper Channel (UC1), Yesterday: 3. PCF for the Formula Line (FL): 4. PCF for the Lower Channel (LC), Today: 5. PCF for the Lower Channel ((LC1), Yesterday:
I assume the SGN formula for Price Crossing UP or DOWN UC would be:
SGN(C - UC) - SGN(C1 - UC1)
or Boolean:
SGN(C - UC) - (SGN(C1 - UC1) < > 0
Price Crossing UP
C > UC AND C1 < UC1
Thanks Winnie
|
|
Registered User Joined: 5/27/2005 Posts: 35
|
Bruce
Thanks For your help
Ron
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
ronbary, You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
QUOTE (Winnie) PCF for the Upper Channel (UC), Today AVGC10 + AVGH10 - AVGL10
QUOTE (Winnie) PCF for the Upper Channel (UC1), Yesterday AVGC10.1 + AVGH10.1 - AVGL10.1
QUOTE (Winnie) PCF for the Formula Line (FL) AVGC10
QUOTE (Winnie) PCF for the Lower Channel (LC), Today AVGC10 - AVGH10 + AVGL10
QUOTE (Winnie) PCF for the Lower Channel ((LC1), Yesterday AVGC10.1 - AVGH10.1 + AVGL10.1
The forms for your crossover formulas appear to be correct.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 10/7/2004 Posts: 1,006
|
Hi Bruce,
Thank you so much for the Price Channel PCFs. When I ask for PCFs I usually don’t know whether they are going to be short or long, make your work easy or very time consuming also with long PCFs slowing down the calculations to make it almost impractical to use.
Usually after you give me a couple of examples I can modify and figure out what other combinations will work for me. After you posted the above PCFs, I tested them with my formula SGN(C - UC) - SGN(C1 - UC1) and something wasn’t right, the Price was crossing UP the Lower Channel instead of the Upper Channel, I tested your Upper Channel PCF, AVGC10 + AVGH10 - AVGL10, as a Custom Indicator, the PCF was the Upper Band and perfect, I was stumped for awhile.
Then I realized if your PCF was correct then my Formula wasn’t and sure enough, I need a set of parentheses. SGN(C - (UC)) - SGN(C1 - (UC1)), Bingo it worked.
For those that may want to use the Price Channel, below are the correct Formulas and PCFs
Price Crossing UP/DN Upper (Simple) Price Channel 10,10: Math PCF: SGN(C - (UC)) - SGN(C1 - (UC1))
SGN(C - (AVGC10 + AVGH10 - AVGL10)) - SGN(C1 - (AVGC10.1 + AVGH10.1 - AVGL10.1))
Price Crossing UP and DN Upper (Simple) Price Channel 10,10 Boolean: PCF : SGN(C - (UC)) - SGN(C1 - (UC1)) <>0
SGN(C - (AVGC10 + AVGH10 - AVGL10)) - SGN(C1 - (AVGC10.1 + AVGH10.1 - AVGL10.1)) <>0
Price Crossing UP Upper (Simple) Price Channel 10,10 Boolean: PCF : C> (UC) AND C1 < (UC1)
C > (AVGC10 + AVGH10 - AVGL10) AND C1 < (AVGC10.1 + AVGH10.1 - AVGL10.1)
Thanks Again, couldn’t do it without you Winnie
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |