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.
Size:
Color:
What are the exact rules in English?
Size:
Color:
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
Size:
Color:
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?
Size:
Color:
Just the 14 period ROC
Size:
Color:
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 OscilatorCODE:
Please log in to see this code.
Size:
Color: