i run this scan on the weekly chart.
Buy=CCI()>Ref(CCI(),-1) AND Ref(CCI(),-1)>Ref(CCI(),-2) AND V>MA(V,20)
*1.25 /* AND C > O*/ AND MA(V,20)>2000000;
i wanted to plot the signals on teh daily chart that would match the
signals from the weekly scan. they do not seem to match up as on teh
days i see the signal from the scan, i dont see the little green
boxes.
_SECTION_BEGIN("PlotCCI_Strategy");
wc = TimeFrameCompress( Close, inWeekly );
wv=TimeFrameCompress( V, inWeekly );
weeklyCCI=CCIa(wc,14);
/* but if we call MA on compressed array, it will give MA from other
time frame */
weeklycci = MA( wc, 14 ); // note that argument is time-compressed
array
WeeklyBuy=weeklyCCI>Ref(weeklyCCI,-1) AND Ref(weeklyCCI,-1)>Ref
(weeklyCCI,-2) AND wv>MA(wv,20)*1.25 /* AND wc > Ref(wc,-1)*/ AND MA
(wv,20)>2000000;
WeeklyBuy_expanded= TimeFrameExpand( WeeklyBuy, inWeekly ); // expand
for display
PlotShapes( IIf( WeeklyBuy_expanded, shapeSmallSquare ,
shapeNone ),colorGreen,layer = 0, Low, offset =-20);
_SECTION_END();
pl let me know if i did something wrong.