Registered User Joined: 12/27/2012 Posts: 13
|
I have set up my indicators based on the subject line just fine but am needing to change these indicators into a PCF conditons? Would the folowing be corret?
For 10 day RSI crossing down through 40 day RSI : AVGC10 < AVGC40 AND AVGC10 > AVGC39.1
For 40 day/RSI crossing up through 10 RSI: AVGC40 > AVGC410 AND AVGC10 >AVGC9.1
Thank you
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The C in the AVG sections of your formulas stands for closing price. So your formulas would be for simple moving averages of price and not based on RSI.
The best way to create these Conditions is to add both RSIs to the chart in the same pane and scale. You can do this by adding one of the RSIs, clicking on that RSI and selecting Plot New Indicator here..., adding a second RSI and choosing Scale with the first RSI when prompted.
Once you have the settings for both RSI indicators adjusted as desired, you can click on one of the RSIs, select Create Scan Condition and choose the desired crossing up or crossing down condition from the Condition drop-down.
Creating Conditions from Your Chart
It is possible to create Condition Formulas for this, but the exact settings of the RSI need to be known as well as if the RSI is a plain RSI without Wilder's Smoothing or the RSI - Wilder's indicator which has Wilder's Smoothing built in. Assuming the plain RSI, your Condition Formula for RSI10 crossing down through RSI40 could be written as:
RSI10 < RSI40 AND RSI10.1.1 >= RSI40.1.1
And your Condition Formula for RSI40 crossing up through RSI10 could be written as:
RSI40 > RSI10 AND RSI40.1.1 <= RSI10.1.1
It should be noted that I wrote both formulas out to give you an idea of the syntax, but they are actually just different ways of writing exactly the same thing.
The PCF Formula Descriptions topic has a list of all of the syntax which is valid in the Personal Criteria Formula Language and the Handy PCF example formulas to help you learn the syntax of PCFs! topic has basic examples of this syntax in actual use.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|