Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

RSI indicator Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
reeder1558
Posted : Friday, March 23, 2012 12:45:44 AM
Registered User
Joined: 4/9/2011
Posts: 12

What is the code to get an indicator if today's and yesterday's two day RSI are below 10? Thanks R. Reeder

Bruce_L
Posted : Friday, March 23, 2012 9:10:10 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

If it is the plain RSI indicator (without Wilder's Smoothing), a Condition Formula for this could be written as:

RSI2 < 10 AND RSI2.1.1 < 10

Or as:

MAX(RSI2,2) < 10

If it is the RSI - Wilder's indicator (with Wilder's Smoothing), a Condition Formula for this could be written as:

50 * (C - XAVGC3.1) / 2 / (.500030519440884 * (ABS(C - C1) + .5 * (ABS(C1 - C2) + .5 * (ABS(C2 - C3) + .5 * (ABS(C3 - C4) + .5 * (ABS(C4 - C5) + .5 * (ABS(C5 - C6) + .5 * (ABS(C6 - C7) + .5 * (ABS(C7 - C8) + .5 * (ABS(C8 - C9) + .5 * (ABS(C9 - C10) + .5 * (ABS(C10 - C11) + .5 * (ABS(C11 - C12) + .5 * (ABS(C12 - C13) + .5 * (ABS(C13 - C14)))))))))))))))) + 50 < 10 AND 50 * (C1 - XAVGC3.2) / 2 / (.500030519440884 * (ABS(C1 - C2) + .5 * (ABS(C2 - C3) + .5 * (ABS(C3 - C4) + .5 * (ABS(C4 - C5) + .5 * (ABS(C5 - C6) + .5 * (ABS(C6 - C7) + .5 * (ABS(C7 - C8) + .5 * (ABS(C8 - C9) + .5 * (ABS(C9 - C10) + .5 * (ABS(C10 - C11) + .5 * (ABS(C11 - C12) + .5 * (ABS(C12 - C13) + .5 * (ABS(C13 - C14) + .5 * (ABS(C14 - C15)))))))))))))))) + 50 < 10

PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
ljpremoli
Posted : Wednesday, April 4, 2012 7:54:47 AM
Registered User
Joined: 9/26/2010
Posts: 5

Do you know a scan to detect divergences between RSI and prices. Regards Javier

Bruce_L
Posted : Wednesday, April 4, 2012 8:05:21 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

In TC2000 version 12.1, click on Price and select Create Scan Condition. Then select Moving Up from the Condition drop-down menu (Net, % or Smart would do, but I'd start with Smart). Then set the Period of the Condition, the number of bars over which you wish to check for a divergence and how much price needs to be moving over the period.

Then do the same thing with the RSI indicator, but Moving Down instead of Moving Up (I probably wouldn't use % for this because RSI can equal zero).

You can then add both the Conditions to the same EasyScan. Checking for a divergence where Price was Moving Down and Stochastics was Moving Up would just be a matter of switching around how you created the Conditions.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
ljpremoli
Posted : Wednesday, April 4, 2012 8:10:47 AM
Registered User
Joined: 9/26/2010
Posts: 5

Thanks Bruce I will try it

 

ljpremoli
Posted : Wednesday, April 4, 2012 8:43:34 AM
Registered User
Joined: 9/26/2010
Posts: 5

Bruce I took the price an I do with smart. Which period of day you recomended for the divergence?

I do the same with the RSI 50 period. Is that the indicator because I found 2 o 3 type of RSI. Regards Javier

Bruce_L
Posted : Wednesday, April 4, 2012 8:52:09 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

There are two types of RSI. The plain RSI indicator is not Wilder's Smoothed. The RSI - Wilder's indicator is Wilder's Smoothed.

I can't tell you which to use, what period to use for the divergence or what period to use for the RSI. The trainers can't give setting, interpretation or investment advice.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
ljpremoli
Posted : Wednesday, April 4, 2012 8:56:58 AM
Registered User
Joined: 9/26/2010
Posts: 5

ok Bruce. Thanks

Bruce_L
Posted : Wednesday, April 4, 2012 8:57:37 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You're welcome.



-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.