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

RE: [amibroker] Code for first trigger



PureBytes Links

Trading Reference Links

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@xxxxxxxxxxxxxx] 
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 --------------------~--> 
$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/