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

Didi Index with Ribbon for Amibroker (AFL)
almost 8 years ago
Amibroker (AFL)

3 / 5 (Votes 2)
oscillator, amibroker

The following is a “ribbon” that the formula is based on the Didi Index Indicator


Similar Indicators / Formulas

Febo RSI ..real indicator
Submitted by abhinavsingh over 8 years ago
Trading Volume Statistic
Submitted by tuanstock1 almost 6 years ago
Ergodic Oscillator
Submitted by dljtrader over 9 years ago
3 Days Track
Submitted by janet0211 almost 10 years ago
Chande Momentum Oscillator
Submitted by klimpek over 9 years ago

Indicator / Formula

Copy & Paste Friendly
//=== Didi Index ===

//SetChartBkGradientFill(ParamColor("Top", colorTeal), ParamColor("Bottom", colorLightGrey), ParamColor("Title", colorTeal));
//SetChartBkColor(ParamColor("Chart Background", colorWhite));

_SECTION_BEGIN("Didi Index Indicator");
function DidiIndex( Curta, Media, Longa )
 global DidiLonga, DidiCurta;
 DidiLonga = MA( Close, Longa ) - MA( Close, Media );
 DidiCurta = MA( Close, Curta ) - MA( Close, Media );
 return IIf(DidiCurta > 0 AND DidiLonga < 0, 1,IIf(DidiCurta<0 AND DidiLonga>0, -1,0));

MAFast = Optimize("Curta",Param("MA Curta",3,1,5 ),1,5,1);
MAMid  = Optimize("Media",Param("MA M├ędia",8,6,12),6,12,1);
MASlow = Optimize("Longa",Param("MA Longa",20,15,34),15,34,1);

Trend = DidiIndex(MAFast, MAMid, MASlow);
//Buy = Cross(Trend,0) AND ADX()>MDI();
//Sell = Cross(0,Trend);
//Buy = ExRem(Buy,Sell); Sell = ExRem(Sell,Buy);

//TrendColor = IIf(DidiCurta>0,colorBrightGreen,colorRed);

//Plot( DidiCurta, _DEFAULT_NAME(), TrendColor, ParamStyle("Histogram style", styleThick | styleHistogram | styleNoLabel, maskHistogram ));
//Plot(0,"", colorBrown ,styleLine);

//Plot(DidiLonga,"",IIf(DidiLonga<0,colorGreen,colorRed),styleLine | styleThick);

//Plot(DidiCurta,"",IIf(DidiCurta>0,colorBrightGreen,colorRed),styleLine | styleThick);

//Normal Buy and Sell Signal

// The Best Signal: Didi Needleful
//PlotShapes((Cross(DidiCurta,0) AND Cross(0,DidiLonga)) * shapeHollowCircle, colorYellow,0,0.25);

//===== Didi Ribbon ======

Uptrend= didicurta>0;
downtrend= didicurta<0;
Plot( 2.5, /* defines the height of the ribbon in percent of pane width */"ribbon",
IIf( uptrend, colorBrightGreen, IIf( downtrend, colorRed, 0 )), /* choose color */
styleOwnScale|styleArea|styleNoLabel, -0.5, 100 );



Leave Comment

Please login here to leave a comment.