Registered User Joined: 12/1/2004 Posts: 56
|
I am trying to code a buy strategy in blocks for a condition that is true when W%R is crossing from <= -20 to > -20.
Please show me how.
Thank you.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following:
Select Strategy | Conditions | Add Condition | Indicators | Williams %R.
Left-click on the Williams %R Strategy Condition and adjust the settings as follows:
- Williams %R Period: ?
- is: Crossing Up Through
- Value: -20
- # Bars True: 1
- Bars to Test: 1
- Override TimeFrame: ?
The settings with question marks would need to be determined by you.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 12/1/2004 Posts: 56
|
Hi Bruce,
Thank you for your help, and I have another question that related to the above answer. How do I set the crossing condition > -20 to true if it crossed and happened in the past 4 days including today? (The following is a true if its crossing happened today, yesterday, the day before yesterday ,and the 4 day ago.)
Thanks.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Change the Bars to Test from 1 to 4 (while leaving the other settings unchanged). You may wish to review the following:
# Bars True / Bars to Test
-Bruce Personal Criteria Formulas TC2000 Support Articles
|