### Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....

#1 Selling Amibroker Plugin featuring:

Neural Networks
And Much More ....
Find Out More Here

### DMISTOCHASTIC for Amibroker (AFL) arunremanan about 5 years ago Amibroker (AFL)

Rating:
Tags:
oscillator, amibroker

It is trading technique using the directional movement index
and stochastic. Got it from some website that I do not remember now

### Indicator / Formula

```DMISTOPer = Param("DMISTOPer", 10,2,100,1);
STOPer23= Param("STOPer23", 3,2,10,1);
SMAPer= Param("SMAPer", 27,3,100,1);
ShortLevel= Param("ShortLevel", 85,80,98,1);
DD= PDI(DMISTOPer )-MDI(DMISTOPer);
HV=HHV(DD,DMISTOPer);
LV=LLV(DD,DMISTOPer);
KFast = 100*(DD-LV)/(HV-LV);
KSlow= MA(KFAST,StoPer23);
pctD= MA(KSlow,StoPer23);

Plot(KSlOW,"%KSlow", colorBlue, styleLine | styleThick);
Plot(pctd,"%DSlow", colorViolet, styleLine | styleThick);
Plot(Shortlevel,"Shortlevel", colorRed, styleLine | styleThick);

IIf (shortsig==1, PlotShapes(shapeDownTriangle*Shortsig,colorRed), 0);```

1.

I tested your formula in Amibroker V. 6.10.0 and give me “WARNING” in Line # 9, and not permitt to process it.

9 KFast = 100*(DD-LV)/(HV-LV);
WARNING 505. Division by zero. Divisor array at 11 is equal zero.

I will appreciate you correcting your interesting formula

Thank you very much