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 compare Williams %R in Blocks Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
psrkn
Posted : Wednesday, December 5, 2007 12:48:08 PM
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.
Bruce_L
Posted : Wednesday, December 5, 2007 1:33:03 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Please try the following:

Select Strategy | Conditions | Add Condition 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
psrkn
Posted : Wednesday, December 5, 2007 6:58:43 PM
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.

Bruce_L
Posted : Wednesday, December 5, 2007 7:05:30 PM


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