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

Re: [amibroker] Need some code help, please



PureBytes Links

Trading Reference Links

/* Dags Peaker and adx v1.3

v1.1: Changed peak val arg to 6 (from 10)
v1.0: Initial version
*/
/*adx */
adxup = PDI(14) > MDI(14);
ADXdown = PDI(14) < MDI(14);
pv = Peak(Close, 3);

Buy = IsTrue (Cross(Close, pv + pv/500))and ADXup;
Sell = IsTrue (Cross( pv + pv/1000, Close))and ADXdown;

inTrade = Flip (Buy, Sell);
MaxGraph=5;
Graph0 = Close;
Graph1 = pv;
Graph0BarColor = IIf (Ref (inTrade, -1), 5, 1);
Graph1BarColor = IIf (Buy, 5, IIf (Sell, 4
----- Original Message -----
From: "Dr. S. Nathan Berger" <snberger@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, October 07, 2001 8:41 AM
Subject: [amibroker] Need some code help, please


> Can someone help me write for the following:
>
> I want to run an Explore on my database of funds where only the following
> are chosen:
>
> 1) The DagsPeaker.AFL is giving a green (buy) arrow; and
>
> 2) Using the ADX/DMI indicator, the +DMI is greater than the -DMI
>
> I hope I have stated the problem correctly- and that one of you will be
> able to assist me with the formula. I have included the DAGSPeaker.AFL as
> an attachment. The ADX/DMI is found in the Insert/Standard Charts section
> of AmiBroker.
>
> Thanks in advance.
>
> Nate Berger
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>

Attachment:

Attachment: Description: "Description: Binary data"