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

Re: [amibroker] Need help wiht Bars since



PureBytes Links

Trading Reference Links

MDI PDI ADX all need a range
eg
MDI(14)


On Fri, 12 Nov 2004 20:30:47 -0500, Anthony Faragasso <ajf1111@xxxxxxxx> wrote:
> 
> The MDI needs a range:
> 
> MDI(range)...
> 
>  ----- OrigMDI
>        - minus directional movement indicator (-DI) Indicators
>        (AFL 1.3)
> 
>        SYNTAX  mdi( period = 14 )
>        RETURNS ARRAY
>        FUNCTION  Calculates Minus Directional Movement Indicator (-DI line)
>        EXAMPLE mdi()
>  inal Message -----
>  From: murthysuresh
>  To: amibroker@xxxxxxxxxxxxxxx
>  Sent: Friday, November 12, 2004 7:52 PM
>  Subject: [amibroker] Need help wiht Bars since
> 
> 
> 
> 
>  Here is my sample code and i get a error
>  Filter=(BarsSince(MDI<20) >20) AND (BarsSince(MDI>10) >20) AND
>  (BarsSince(PDI<20) >20) AND (BarsSince(PDI>10) >20)  AND(BarsSince
>  (ADX <30) >20) AND (BarsSince(ADX >10) >20);
> 
>  the error is
>  //Filter=Cross(PDI(14),ADX(14)  ) AND MA(Volume,30) >500000 AND MA
>  (Volume,7) >MA(Volume,14) ;
> 
>  //Buy= Filter AND Cross(PDI(14),MDI(14))  ;
> 
>  Filter=BarsSince(MDI<
>  --------------------^
> 
>  Error 23.
>  Syntax error
> 
>  why do i get this error.
> 
>  thanks in advance
> 
>  Suresh
> 
>  Check AmiBroker web page at:
>  http://www.amibroker.com/
> 
>  Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> 
> 
>        Yahoo! Groups Sponsor
>              ADVERTISEMENT
> 
> ------------------------------------------------------------------------------
>  Yahoo! Groups Links
> 
>    a.. To visit your group on the web, go to:
>    http://groups.yahoo.com/group/amibroker/
>      
>    b.. To unsubscribe from this group, send an email to:
>    amibroker-unsubscribe@xxxxxxxxxxxxxxx
> 
>    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> 
> [Non-text portions of this message have been removed]
> 
> 
> 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/