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

[amibroker] Re: Code for first trigger/Graham



PureBytes Links

Trading Reference Links


Thanks Graham!!

Nice Code!!

--- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> Brian, should be easy enough, 
> X = sum( Cross( close, ma(close,50) ), 10 ) == 1;
> This should find a single cross in the past 10 bars
> 
> 
> Cheers,
> Graham
> http://e-wire.net.au/~eb_kavan/
> 
> -----Original Message-----
> From: Brian [mailto:cadvantag@x...] 
> Sent: Monday, October 04, 2004 7:47 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Code for first trigger
> 
> 
> 
> I am trying to code for a ticker that makes the first trigger after it
> made a cross.
> 
> 
> Example:
> 
> Cross( close, ma(close,50) - that was 1-10 trading days ago
> Close > ma(close,50)- today the stock maintains above the MA (this
> eliminates stocks that flip flop too much or have early weakness)
> 
> Then code for first day it triggers a signal after it made the cross.
> 
> My trigger is called BullBar. So I want to code for the 1st trigger
> BullBar is > 0
> 
> Any Suggestions?  Thanks!
> 
> Best regards,
> Brian
> 
> 
> 
> 
> 
> 
> 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





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