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

TSI V.2 for Amibroker (AFL)
Anonymous
almost 12 years ago
Amibroker (AFL)

Rating:
3 / 5 (Votes 7)
Tags:
oscillator, trading system, amibroker

I’ve updated my own TSI (tweaked) version.

Putted in a Momentum Histogram.

Some of you like this typical indcator.
Parameter window gives you more acces to settings, colors, etc…

Enjoy

Similar Indicators / Formulas

Rahul Mohindar Oscillator (RMO)
Submitted by kaiji almost 15 years ago
Volatility System
Submitted by kaiji almost 15 years ago
NIFTYTIGER'S MAGIC LINES
Submitted by niftytiger over 12 years ago
Zerolag MACD
Submitted by myth.goa over 12 years ago
MACD Prediction
Submitted by EliStern almost 14 years ago
MACD MT4/MT5
Submitted by vivek998877 over 12 years ago

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("TSI");
SetChartBkColor(ParamColor("Panel Color",colorLightGrey));
SetChartBkGradientFill(ParamColor("Upper Chart",colorLightGrey),ParamColor("Lower Chart",colorLightGrey));

r=Param("TSI period 'R':",7,1,100,1);
s=Param("TSI period 'S':",27,1,100,1);
u=Param("TSI period 'U':",1,1,100,1);
sig=Param("Signal period:",7,1,100,1);

parmTSILStyle = ParamStyle("TSI Line Style", styleLine|styleThick);
parmTSILUpColor = ParamColor("TSI Line UpColor", colorGreen);
parmTSILDwnColor = ParamColor("TSI Line DownColor", colorRed);
parmTSISStyle = ParamStyle("TSI SignalLine Style", styleLine| styleThick);
parmTSISUpColor = ParamColor("TSI SignalLine UpColor", colorGreen);
parmTSISDwnColor = ParamColor("TSI SignalLine DownColor", colorRed);
parmHistUpColor = ParamColor("TSI Histogram UpColor", colorLime);
parmHistDwnColor = ParamColor("TSI Histogram DownColor", colorOrange);

 
Mtm = C - Ref ( C, -1 );
AbsMtm = abs ( Mtm );
Num_T = EMA ( EMA( EMA ( Mtm, r ), s ), u );
Den_T = EMA ( EMA( EMA ( AbsMtm, r ), s ), u);

TSI = 100 * Nz ( Num_T / Den_T );
TSIL = 100 * Nz ( Num_T / Den_T );

//Green TSIL Line=Rising; Red TSIL Line=Falling
col = IIf( TSIL > Ref( TSIL, -1 ), parmTSILUpColor, parmTSILDwnColor);
Plot( TSIL, "TSI("+r+","+s+","+u+")", col, parmTSILStyle);
Plot(0,"",ParamColor( "Color ZeroLine",colorBlueGrey),styleLine);
//Green EMA TSI,sig Line=Rising; Red EMA TSI,sig Line=Falling
col = IIf( EMA(TSI,sig) > Ref( EMA(TSI,sig), -1 ), parmTSISUpColor, parmTSISDwnColor );
Plot( EMA(TSI,sig), "", col, parmTSISStyle);
//Histogram Momentum
Disp1=ParamToggle("Histogram Momentum","Show|Hide",1);
HistColM= IIf( TSI > Ref(TSI,-1),parmHistUpColor,parmHistDwnColor);
if(Disp1){
Plot(TSI,"",HistColM,ParamStyle("Histogram style",styleHistogram|styleThick,maskHistogram));}
//Histogram Standard
HistColS= IIf(TSI>0,parmHistUpColor,parmHistDwnColor);
Plot(TSI,"",HistColS,ParamStyle("Histogram style",styleHistogram|styleThick,maskHistogram));
//Signals
mybuy=  TSIL > Ref( TSIL, -1 ) AND EMA(TSI,sig) > Ref( EMA(TSI,sig), -1 ) AND TSIL>EMA(TSI,sig) ;
mysell= TSIL < Ref( TSIL, -1 ) AND EMA(TSI,sig) < Ref( EMA(TSI,sig), -1 ) AND TSIL<EMA(TSI,sig) ;
Buy = ExRem(myBuy, mysell);
Sell = ExRem(mysell, myBuy);
Disp2=ParamToggle("Buy and Sell Arrows","Show|Hide",1);
if(Disp2){
PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorDarkGreen,0);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorDarkRed,0);}
Title =FullName();
_SECTION_END();


1 comments

1. rob hoot

Looks a little bit like a “tweaked” Sini Macd. Very nice done, Ceurami. Thanks for sharing!

Leave Comment

Please login here to leave a comment.

Back