PureBytes Links
Trading Reference Links
|
Hi,
An array can cross Above or Below another array and you didn't specify
either, so I included both cases. You can remove what you don't need.
Filter = ( Cross( OBV(), EMA(OBV(),10) ) OR
Cross( EMA(OBV(),10), OBV() )) AND
( Cross( RSI(14), EMA(RSI(), 10) ) OR
Cross( EMA(RSI(), 10), RSI(14) ));
AddColumn( Close, "Close " );
Regards,
William Peters
www.amitools.com
Friday, December 10, 2004, 11:23:43 PM, you wrote:
j> Can someone help me combine these two indicators into a scan or
j> exploration. I would like to scan for crossover on the daily chart.
j> The scan or exploration should pull stocks where the OBV crossed
j> EMA(OBV,10) and RSI (14) crossed EMA (RSI, 10).
j> Here is the AFL code for both indicators (OBV and RSI):
j> EMAPDS=Param("EMA PDS",10,1,50,1);
j> Plot(OBV(),"",4,1);
j> Plot(EMA(OBV(),emapds),"",colorYellow,1);
j> Title="OBV "+ " With "+WriteVal(EMApds,1.0)+ " Period EMA";
j> RSIPDS=Param("RSI PDS",14,5,50,1);
j> EMAPDS=Param("EMA PDS",10,5,50,1);
j> Plot(RSI(rsipds),"",4,1);
j> Plot(EMA(RSI(RSIpds),emapds),"",colorYellow,1);
j> Title="RSI "+ WriteVal(RSIPDS,1.0)+ " With "+WriteVal(EMApds,1.0)+ "
j> Period EMA";
j> Thanks so much.
------------------------ 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/
|