[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] is this scan and indicator the same



PureBytes Links

Trading Reference Links

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.




------------------------------------

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/