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 ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

DMI-Demand Index for Amibroker (AFL)

Rating:
3 / 5 (Votes 1)
Tags:
amibroker

arg = ParamList(“Weighted Close”, “Close|Avg|WtClose|Median”, 2);
Const = Param(“Constant”, 5, .50, 10.5, 0.01);
periods = Param(“periods”, 19, 10, 40, 1);
Lb = Param(“lb”, 2, 2, 10, 1);
if(arg == “Close”) WtClose = C;
if(arg == “Avg”) WtClose = Avg;
if(arg == “WtClose”) WtClose = (H + L + C + C)/4;
if(arg == “Median”) WtClose = (H + L)/2;
AvgTr = MALLV, periods);
WtCratio = (WtClose – Ref(WtClose, -1))/Min(WtClose, Ref(WtClose, -1));
VolRatio = Volume/MA;
Constant = ((WtClose * 3)/AvgTr) * abs(WtCRatio);
Constant = IIf(Constant > Const, Const, Constant);
Constant = VolRatio /exp(Constant);
BuyP = IIf(WtCRatio > 0, VolRatio, Constant);
SellP = IIf(WtCRatio > 0, Constant, VolRatio);
BuyPressure = EMA;
SellPressure = EMA;
tmpDI = IIf(SellPressure > BuyPressure, -BuyPressure/SellPressure,
SellPressure/BuyPressure);
DMI = IIf(tmpDi < 0, -1 – tmpDI, 1 – tmpDI)*100;

Plot(dmi, “demand index”, colorBlue, styleLine);

You cannot view the code for the following reasons:
  • The indicator has not yet been approved by the Administrator.

1 comments

Comment hidden - Show

Leave Comment

Please login here to leave a comment.

Back