Skip to main content

TDI

TDI - Indicator 

Many things together in one simple, small indicator ....
Buy-Sell Signals , Avoid False Signals, check Volatility....
For short, medium trading and long term investing ...
//
// The Code
/*
1) Enter long when the green line is above the red line AND enter Short when the red line is the above green line.
2) for Short-term trading, enter long when the green is above both the red AND the brown line;
3) Enter Short when the red one is above both the green AND the brown ones.
4) for medium-term trading, go long under the same conditions as for the Short-term trading but only when all lines are below 50; to go Short — the same but above 50.
5) Mind the blue volatility band as it points to the long-term trend strength AND volatility when wide. Steep green line changes also Signal Short-term market volatility.
*/
SetChartBkColor(ParamColor("Outer panel color ",colorLightYellow)); // color of outer border
SetChartBkGradientFill( ParamColor("Inner panel color upper half", colorLightYellow),
ParamColor("Inner panel color lower half", colorRose)); // color of inner panel
// Downloaded From www.WiseStockTrader.com
//
//
_SECTION_BEGIN("Dynamic Traders Index");
PlotGrid(32, colorOrange);
PlotGrid(50, colorWhite);
PlotGrid(68, colorGreen);
r = RSI(13);
a = MA(r,2);
b = MA(r,7);
bh = MA(r,34)+1.6185*(StDev(r,34));
bl = MA(r,34)-1.6185*(StDev(r,34));
bm = MA(r,34);
Plot(a, "TDI - Traders Dynamic Index ", colorLime, styleThick);
Plot(b,"TSL", colorRed);
Plot( bh , "", colorBlue, styleThick);
Plot( bl , "", colorBlue, styleThick);
Plot(bm,"", colorBrown, styleThick);
_SECTION_END();

Comments

Popular posts from this blog

ST GAP BUY SELL

 _SECTION_BEGIN("st gap buy sell"); Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); SetBarsRequired(sbrAll,sbrAll); xx=BarIndex();x=xx;Lx=LastValue(x); rightStrength=Optimize("R_S",Param("R_S",3,1,50,1) ,1,50,1); leftStrength=Optimize("L_S",Param("L_S",3,1,50,1), 1,50,1); function pkID(rightStrength,leftStrength) { pk=H>Ref(HHV(H,leftStrength),-1) AND H>=Ref(HHV(H,rightStrength),rightStrength); return pk; } function trID(rightStrength,leftStrength) { tr=L<Ref(LLV(L,leftStrength),-1) AND L<=Ref(LLV(L,rightStrength),rightStrength); return tr; } pk=pkID(rightStrength,leftStrength); tr=trID(rightStrength,leftStrength); SetChartBkColor(ColorRGB(0,0,0));SetChartOptions(0 ,chartShowDates); SetBarFillColor(IIf(C>O,colorGreen,IIf(C<=O,colorRed,colorLightGrey))); pkHigh1=Ref(ValueWhen(pk,H,1),-(rightStreng...

QQE LINE

function QQELine( indiValue, deltaRSIValue, smoothPeriod ) { local prevVal, prevIndi, qqeValue, indi_sum; local indi_diff, higherCond, lowerCond, result; prevVal = prevIndi = 0; qqeValue = Null; indi_sum = indiValue + deltaRSIValue; indi_diff = indiValue - deltaRSIValue; for ( i = 1; i < BarCount; i++ ) { prevVal = qqeValue[i - 1]; prevIndi = indiValue[i - 1]; higherCond = prevIndi > prevVal AND indiValue[i] > prevVal; lowerCond = prevIndi < prevVal AND indiValue[i] < prevVal; qqeValue[i] = Iif( indiValue[i] == prevVal, prevVal, Iif( lowerCond, Min( prevVal, indi_sum[i] ), Iif( higherCond, Max( prevVal, indi_diff[i] ), Iif( indiValue[i] > prevVal, indi_diff[i], indi_sum[i] ) ) ) ); } result = EMA( qqeValue, smoothPeriod );// EL XAverage is EMA return result; } // Modified Exponential Moving Average function MEMA( Price, Period ) { local smoothing, result; smoothing = 1 / Max( 1, Period ); result = AMA( Pric...

NR explorers

1st //// Filter conditions  NR21 = (H - L) < Ref(LLV(H-L,20) ,-1); InsideBar = ((H < Ref(H,-1)) AND (Low > Ref(L,-1))); NR4 = (H - L) < Ref(LLV(H-L,3), -1); NR7 = (H - L) < Ref(LLV(H-L,6), -1); //// Scan the list for stocks matching the criteria Filter = (NR21 OR NR4 OR NR7) AND InsideBar ; AddColumn(H, "High",1.2 ); AddColumn(L, "Low ",1.2 ); AddColumn(H-L, "Range",1.2 ); AddColumn(C, "Close ",1.2 ); AddColumn(Volum e, "Volume ",1.0 ); AddColumn(ATR(8 ), "ATR 8 ",1.2 ); AddColumn(High,  "Buy Above",1.2 ); AddColumn(Low, "Sell Below",1.2 ); color1 = IIf(NR4, colorGreen, IIf(NR7, colorBlue, IIf(NR21, colorRed,colorB lack))); AddTextColumn(W riteIf((NR4),"N R4",WriteIf(NR7 ,"NR7",WriteIf( NR21,"NR21"," ")))," ",1.2,color1); 2nd  //// Filter conditions  NR21 = (H - L) < Ref(LLV(H-L,20) ,-1); InsideBar = ...