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

Re: [amibroker] RT scan help



PureBytes Links

Trading Reference Links

try this, hope it works


dayhhv = timeframeexpand( timframecompress( hhv(h,3), indaily ), indaily );
dayllv = timeframeexpand( timframecompress( llv(l,3), indaily ), indaily );

minMA15 = timeframeexpand( timframecompress( ma(c,15), in15Minute), in15Minute);
minMA20 = timeframeexpand( timframecompress( ma(c,20), in15Minute), in15Minute);

Sell=Cross( C,ref(dayllv,-1) ) AND minMA15 > minMA20;
Buy=Cross( C,ref(dayllv.-1) ) AND minMA15 < minMA20;


On Mon, 24 Jan 2005 08:51:47 -0000, sailis20 <sailis20@xxxxxxxxx> wrote:
> 
> 
> Hi All
> Iam trying to code a 3 days high for buy and 3 days low for sellwith
> 5min Rt scan checked .Can any one guide me to correct this following
> code
> TimeFrameSet(in15Minute);
> Sell=Cross(C,LLV(L,3))AND MA(C,15)> MA(C,20);
> Buy=Cross(C,HHV(H,3))AND MA(C,15)< MA(C,20);
> TimeFrameRestore();
> AlertIf(Buy,"BUY",FullName(),1);
> AlertIf(Sell,"SHORT",FullName(),2);
> 
> Regards
> 
> Selvi
> 
> 
> 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 --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/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/