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

Re: [amibroker] Directional Movement Scan



PureBytes Links

Trading Reference Links

Hi Nick,

try this:

<clip>
//signal section
Buy=ADX() < MDI() AND Cross(PDI(),ADX());
Sell=0;

Plot(ADX(),"ADX()",colorBlue,styleLine);
Plot(MDI(),"MDI()",colorRed,styleLine);
Plot(PDI(),"PDI()",colorGreen,styleLine);
GraphXSpace=5;
PlotShapes(shapeUpArrow * Buy + shapeDownArrow * Sell,IIf(Buy, 
colorGreen,colorRed));
Title = "{{NAME}} - {{INTERVAL}} {{DATE}} {{VALUES}} ";
<clip>

----- Original Message ----- 
From: "hollywood_t2000" <bazman@xxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, September 09, 2004 1:01 AM
Subject: [amibroker] Directional Movement Scan


Hi

I am trying to write code to resolve the following criteria without
success:

+DI Crosses ADX  // Cross( PDI(), ADX() )
+DI Crosses -DI  // Cross( PDI(), MDI() )

The ADX must be below the -DI when the +DI crosses the ADX.
Simply put, the +DI must commence from below both the ADX & the -DI
and the -DI must be above the ADX when this happens.

Thanks for any assistance.

Nick V





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/