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

[amibroker] Re: Code Help



PureBytes Links

Trading Reference Links



HI
Thanks Kaveman for ur correction.
Its working

Regards

--- In amibroker@xxxxxxxxxxxxxxx, kaveman perth <kavemanperth@xxxx> 
wrote:
> A small correction. I single = assigns a value, double == checks if
> the values are equal
> plus the first sum need correction
> 
> 
> AvgPeriods=20;
> MinVolume=150000;
> 
> Buy= MA(V,AvgPeriods)>MinVolume
> AND C>Ref(L,-1)
> AND Sum(Ref(C,-1)< Ref(C,-2), 3)==3;
> 
> Sell = MA(V,AvgPeriods)>MinVolume
> AND C<Ref(H,-1)
> AND Sum(Ref(C,-1)>Ref(C,-2),3)==3;
> 
> 
> On Fri, 29 Oct 2004 13:48:51 -0000, iascool <sai20_2000@xxxx> 
wrote:
> > 
> > 
> > Hello
> > I had attemped to code the following expression, however Iam raw 
to
> > AFL code
> > but iam not able to code it properly. Can any one help me in how 
it
> > done
> > 
> > VolAvg20 > 150000
> > Last > P Low
> > PI Close <P2Close
> > P2C)osc < P3Closc
> > P3Closc < P4Closc
> > 
> > Explanation:
> > VolAvg20: Average volume the stock has traded over the last 20 
days.
> > 1' Low: Previous Day's low.
> > PI Close: Previous day's close
> > P2Close: The close the day before
> > P3Close: The close (he day before P2
> > P4Close: The close the day before P3
> > 
> > AFL Code
> > // trades
> > 
> > AvgPeriods=20;
> > MinVolume=150000;
> > 
> > Buy= MA(V,AvgPeriods)>MinVolume
> > AND C>Ref(L,-1)
> > AND Sum(Ref(C,-1)< Ref(C,-2)=3);
> > 
> > Sell = MA(V,AvgPeriods)>MinVolume
> > AND C<Ref(H,-1)
> > AND Sum(Ref(C,-1)>Ref(C,-2),3)=3;
> > 
> > Thanks
> > 
> > 
> > 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 --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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/