Widner Projection Bands System - Adding ROC and Momentum Indicators as Buy Triggers
Author: mc3273
Creation Date: 10/17/2014 10:50 AM
profile picture

mc3273

#1
Hi, would anyone be able to assist, I am trying to add two additional trigger indicator's "ROC" and "Momentum" to this strategy. I originally was trying to add them as parameter's so I can have the flexibility to adjust the trigger points. I have attempted to add the ROC indicator below but it's off.

CODE:
Please log in to see this code.
profile picture

Eugene

#2
What are the exact rules in English?
profile picture

mc3273

#3
Hi Eugene

The basic strategy will simply be an enhancement to the Wider Band strategy changing the original parameter's
1) Band Lookback = 2
2) Limit Price .93

Buy if all three criteria's are met

1)Buy next bar at limit when the price falls at least 7% below yesterday's 2 day lower protection band value
2 Rate of Change (14,14,Close) is greater than -1 and less than 0 (If possible can this be made a parameter to adjust from -3 to 2)
3) Momentum (12, Close) is greater than -.1 and less than 0 (If possible can this be made a parameter to adjust from -.2 to .15

Sell at Market upon next day open

Thanks
Mark
profile picture

Eugene

#4
QUOTE:
2 Rate of Change (14,14,Close) is greater than -1 and less than 0 (If possible can this be made a parameter to adjust from -3 to 2)

ROC has only two parameters: DataSeries and period. So is this "ROC(14,14,Close)" the 14-period ROC, or maybe it is the 14-period SMA of 40-period ROC, as can be guessed from your code?
profile picture

mc3273

#5
Just the 14 period ROC
profile picture

Eugene

#6
I fail to understand how ROC can range up to 2 and be less than 0. Same for Momentum being less than 0 and taking values up to 0.15. Anyway, you should be able to adjust this in the code. Here's it, except for Band Lookback = 2. This simply will not work, so a slower period should be selected:

Projection Bands Fast Oscilator

CODE:
Please log in to see this code.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).