Mark:
Once more into the fray, eh? Well try this:
alertmarker( close <12 and vol(10,10)<(0.5*vol(100,100))and vol(6,6)<(0.5*vol(100,100)) and prev(vol(10,10),1)<0.5*vol(100,100) and prev(vol(10,10),2)<0.5*vol(100,100) and c>prev(c,1) and 100+ROC(mov(close,13,e),21,%) > prev(100+ROC(mov(close,13,e),21,%),1) and prev(100+ROC(mov(close,13,e),21,%),1) > prev(100+ROC(mov(close,13,e),21,%),2) and prev(100+ROC(mov(close,13,e),21,%),2) > prev(100+ROC(mov(close,13,e),21,%),3))
Hope this works, tho I'm not certain of your ROC formula. It appears that you are using a 13 day exponential moving average as your data array and a 21 day look back period (both good fib numbers). Then you are specifying the output to be a percentage, but adding 100 to it? Can you elaborate on this- is it just for display? Where did you get the original formula? WOW provides a standard price (close actually) ROC and you can build a ROC for any data array you want with the output in either % or points of change. The 100 has me puzzled.
Have you considered using a Slope/Trend Indicator as a filter? Plot this as an indicator (I prefer it as a histogram for viewing):
(mov(c,13,s)-prev(mov(c,13,s),21))
For this, I've used the values you were using for ROC. If you think it has some merit, it can be converted to an alert either as a daily sequential or as a data array w/in ROC. May also be used to look for cross overs as a histogram. Let's have some feedback.
Peace and Justice --- Patrick |