Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
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
|
|
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
|
|
Registered User Joined: 9/26/2010 Posts: 5
|
Do you know a scan to detect divergences between RSI and prices. Regards Javier
|
|
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
|
|
Registered User Joined: 9/26/2010 Posts: 5
|
Thanks Bruce I will try it
|
|
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
|
|
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
|
|
Registered User Joined: 9/26/2010 Posts: 5
|
ok Bruce. Thanks
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |