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

Re: [amibroker] Weekly Scan



PureBytes Links

Trading Reference Links

You need to expand the weekly values to match the daily array elements, eg
WkVol_d = TimeFrameExpand(WkVol,inWeekly);


On Tue, 12 Oct 2004 04:38:08 -0500, wrzec <wrzecha1@xxxxxxxxx> wrote:
> 
> Sorry, I left out the code in question.
> 
> /* Switch to weekly time frame */
> TimeFrameSet( inWeekly );
> /* Volume this week triple that of last 3 wks. */
> WkVol=Volume>=HHV(Volume,3);
> /* Volume this week is highest of last 52 weeks */
> WkVolHi=Volume>HHV(Volume,52);
> /* Volume this week is greater than 300000 */
> Thiswkvol=Volume>300000;
> /* Switch to daily time frame */
> TimeFrameRestore();
> HighestClose=HHV(C,5)>=HHV(C,250);
> Filter=
> HighestClose AND WkVol AND WkVolHi AND ThisWkVol;
> AddColumn(Close,"Close");
> AddColumn(HHV(C,250),"YearHigh");
> AddColumn(wkvol,"WeeklyVolume");
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

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

<*> 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/