PureBytes Links
Trading Reference Links
|
Nate, David:
I'd exclude "and ADXdown" from Sell criteria
(unless you are planning to go short): you do not want to stay with your trade
until ADX becomes bearish. So the result will be:
/* Dags Peaker and adx v1.3v1.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));inTrade =Flip
(Buy, Sell);MaxGraph=5;Graph0 = Close;Graph1 = pv;Graph0BarColor
= IIf (Ref (inTrade, -1), 5, 1);Graph1BarColor = IIf (Buy, 5, IIf (Sell,
4
Best,
Dima.
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
David
Holzgrefe
To: <A title=amibroker@xxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Saturday, October 06, 2001 9:02
PM
Subject: Re: [amibroker] Need somecode
help, please
is this waht you where after Nate ?/* Dags Peaker
and adx v1.3v1.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
AMSubject: [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 <A
href="">http://docs.yahoo.com/info/terms/>>Your
use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
|