Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

How to do RSI function of a ROC of price indicator Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
qew
Posted : Wednesday, August 8, 2007 12:13:59 AM
Registered User
Joined: 5/11/2007
Posts: 19
Hi

I am trying to implement this and dont see how to do it.

1) I have a rate of change of price (1 period) plotted on the middle pane

2) Now I want to plot a RSI (lets say 5 period) of the previous rate of change of price ... cant seem to do it as the only options for that rate of change line is moving average, enveloppe channel, linear regression etc...

Is the only way to do it a custom indicator ? and if yes how do I refer to the rate of change of price in the formula for the RSI going into the custom indicator ?

Thanks for your help
qew
Posted : Wednesday, August 8, 2007 11:11:47 PM
Registered User
Joined: 5/11/2007
Posts: 19
Hi

Its ok for this. I found out how to solve my problem via another way. If you ever find out how to do it with TC it will be interesting to know but I'll go with my alternate way for now.

Thanks
bustermu
Posted : Thursday, August 9, 2007 7:15:46 AM
Registered User
Joined: 1/1/2005
Posts: 2,645
qew,

RSI5 of PROC1 minus 50:

(-100)
*((C0-2*C1+C2>0)*(C0-2*C1+C2)
+(C1-2*C2+C3>0)*(C1-2*C2+C3)
+(C2-2*C3+C4>0)*(C2-2*C3+C4)
+(C3-2*C4+C5>0)*(C3-2*C4+C5)
+(C4-2*C5+C6>0)*(C4-2*C5+C6))
/(ABS(C0-2*C1+C2)
+ABS(C1-2*C2+C3)
+ABS(C2-2*C3+C4)
+ABS(C3-2*C4+C5)
+ABS(C4-2*C5+C6)+0.000001)
-50

Please plot the above as a Custom Indicator with "Zero Center Line" checked. If you draw a center line, say by plotting a TSV invisible, it will be the RSI = 50 line.

The above does not use Wilder Smoothing.

Thanks,
Jim Murphy
Stack
Posted : Friday, November 23, 2007 8:40:36 PM
Registered User
Joined: 10/7/2004
Posts: 2
QUOTE (bustermu)
qew,

RSI5 of PROC1 minus 50:

(-100)
*((C0-2*C1+C2>0)*(C0-2*C1+C2)
+(C1-2*C2+C3>0)*(C1-2*C2+C3)
+(C2-2*C3+C4>0)*(C2-2*C3+C4)
+(C3-2*C4+C5>0)*(C3-2*C4+C5)
+(C4-2*C5+C6>0)*(C4-2*C5+C6))
/(ABS(C0-2*C1+C2)
+ABS(C1-2*C2+C3)
+ABS(C2-2*C3+C4)
+ABS(C3-2*C4+C5)
+ABS(C4-2*C5+C6)+0.000001)
-50

Please plot the above as a Custom Indicator with "Zero Center Line" checked. If you draw a center line, say by plotting a TSV invisible, it will be the RSI = 50 line.

The above does not use Wilder Smoothing.

Thanks,
Jim Murphy


Hope it is OK to bump this old thread. How would the formula change for an 3 period RSI of a 1 day ROC? I adjusted it myself but it does not seem correct.

Thanks
Bruce_L
Posted : Monday, November 26, 2007 2:35:51 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Stack,
You would remove components of both the numerator and denominator that start with C3 and C4:

(-100)
*((C0-2*C1+C2>0)*(C0-2*C1+C2)
+(C1-2*C2+C3>0)*(C1-2*C2+C3)
+(C2-2*C3+C4>0)*(C2-2*C3+C4))
/(ABS(C0-2*C1+C2)
+ABS(C1-2*C2+C3)
+ABS(C2-2*C3+C4)+0.000001)
-50

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
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.