PureBytes Links
Trading Reference Links
|
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
/* Dags Peaker v1.2
v1.1: Changed peak val arg to 6 (from 10)
v1.0: Initial version
*/
pv = peak(close, 3);
buy = isTrue (cross(close, pv + pv/500));
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, 6));
|