Explanation of
the McClellan Oscillator (DAILY ADVANCING ISSUES -(minus) DAILY DECLINING ISSUES)= B McClellan OSC= MOV(B,19,E)- MOV(B,39,E) WHERE: -100 OR LESS IS OVERSOLD (BULLISH) WHERE: +100 OR GREATER IS OVERBOUGHT (BEARISH) Note that B is just a constant for illustration purposes only. Advance Decline Line {To display the Advance Decline Line, create a composite security in The DownLoader of Advancing Issues minus Declining Issues. Open a chart of the composite and plot this formula} Cum(CLOSE) McClellan Oscillator {To display the McClellan Oscillator, create a composite security in The DownLoader of Advancing Issues minus Declining Issues. Open a chart of the composite and plot this custom indicator.} Mov(CLOSE,19,EXPONENTIAL) - Mov(CLOSE,39,EXPONENTIAL) mike arnoldi
CMO FILTER CMO Filtered: momu:=If(C>Ref(C,-1),C-Ref(C,-1),0); momd:=If(C<Ref(C,-1),Ref(C,-1)-C,0); A1:=Stdev(momu,100); A2:=Stdev(momd,100); Mup:=If(C-Ref(C,-1)>A1,C-Ref(C,-1),0); Mdn:=If(Ref(C,-1)-C>A2,Ref(C,-1)-C,0); Periods:=Input("Length",5,100,13); CMOF:=100*((Sum(Mup,Periods)-Sum(Mdn,Periods)) /(Sum(Mup,Periods)+Sum(Mdn,Periods))); Sig:=Mov(CMOF,10,S); Hist:=CMOF-Sig; Hist; Sig; CMOF; Thrust Oscilator: AI:= Security("D:\Stocks\Market Indicators\X.NASD-A",C); AV:= Security("D:\Stocks\Market Indicators\X.NASD-A",V); DecI:= Security("D:\Stocks\Market Indicators\X.NASD-D",C); DecV:= Security("D:\Stocks\Market Indicators\X.NASD-D",V); TO:=(((AI*AV)-(DecI*DecV))/((AI*AV)+(DecI*DecV)))*100; Periods1:=Input("length1",3,100,21); Periods2:=Input("length2",3,100,5); IND:=Mov(TO,Periods1,S); sig:=Mov(IND,Periods2,S); sig; IND; You will have to create securities of advancing issues,declining issues,advancing volume, declining volume first then type in the directory where they are located Henry kaczmarczyk THRUST OSCILLATOR the thrust osc, the metastock formula AI:= Security("D:\Stocks\Market Indicators\X.NASD-A",C); AV:= Security("D:\Stocks\Market Indicators\X.NASD-A",V); DecI:= Security("D:\Stocks\Market Indicators\X.NASD-D",C); DecV:= Security("D:\Stocks\Market Indicators\X.NASD-D",V); TO:=(((AI*AV)-(DecI*DecV))/((AI*AV)+(DecI*DecV)))*100; Periods1:=Input("length1",3,100,21); Periods2:=Input("length2",3,100,5); IND:=Mov(TO,Periods1,S); sig:=Mov(IND,Periods2,S); sig; IND; You will have to have created securities of advancing issues,declining issues,advancing volume, declining volume STOCHASTIC CROSS TRADING SYSTEM QUESTION How would I write a MetaStock System Tester for: Buy: stoch(12,3) has fallen below 36 and then crosses above its 6 day WMA. Sell: stoch(12,3) rises above 52 and then falls below its 3 day WMA OR 3 day WMA of stoch crosses above 55. ANSWER stoch(12,3)<36 and cross(stoch(12,3),mov(stoch(12,3),6,w)) stoch(12,3)>52 and cross(mov(stoch(12,3),3,w),stoch(12,3)) or mov(stoch(12,3),3,w)>55 TSI AND ERGODICS INDICATORS Contributed by Christian Baude BAUDECB@ix.netcom.com True Strength Index (TSI) - "Momentum, Direction and Divergence", William Blau, Pub: John Wiley& Sons (see also TASC Jan '93, "Stochastic Momentum" gives the formula for the true strength index. This article refers to an older article by Blau in the Jan '91 TASC "Double Smoothed Stochastics") TSI(close,r,s) = 100*EMA(EMA(mtm,r),s / EMA(EMA(ImtmI,r),s) >> Your formula expanded >> 100*(Mov(Mov(ROC(C,1,$),25,E),13,E)/Mov(Mov(Abs(ROC(C,1,$)),25,E),13,E)) Numerator: mtm = one-day momentum of close r-day EMA of mtm {25 day} s-day EMA {13 day double smoothing} Denominator: ImtmI = absolute value of mtm r-day EMA of ImtmI s-day EMA {double smoothing} TSI(close,25,13) Signal Line = EMA(TSI,7) thresholds at +25, 0, -25 5 day EMA of 20 day EMA of 1 day momentum {little lag Vs smoothing of price} Ergodic Oscillator = Ergodic + Signal line {TSI version of Slow Stochastic} Ergodic(close,r) = TSI(close,r,5) {double smoothing is fixed at 5} Signal Line(close,r) = EMA(TSI(close,r,5),5) r = 20days thresholds are +20, -20 Interesting comparison chart between 20 Slow Stochastic and 20 Erodic {more head room in oversold-bought areas} another chart showing Ergodic Osc = TSI(close,32,5) with 5-day EMA signal line
Trading Ergodics with the Trend - Rules 1. Enter or hold position only when slope of Ergodic Signal line has the same direction as the trend 2. Stand aside when slope of Ergodic Signal Line is in the opposite direction of trend 3. Enter or exit position when Ergodic and its Signal Line cross
Slow TSI Trend = TSI(close,64,64) {? weekly looking chart - very little lag} Thresholds set at +15 & -15 Trading Ergodics with Slow TSI Trend 1st window - Slow TSI Trend = TSI(close,64,64) 2nd window - Ergodic Osc = TSI(close,64,5) TRUE STRENGTH INDEX Walter Lake wlake@sprint.ca True Strength Index = TSI TSI(close,r,s) = 100*EMA(EMA(mtm,r),s / EMA(EMA(ImtmI,r),s) Numerator mtm = one-day momentum of close r-day EMA of mtm {25 day} s-day EMA {13 day double smoothing} Demoninator ImtmI = absolute value of mtm r-day EMA of ImtmI s-day EMA {double smoothing} TSI(close,25,13) Signal Line = EMA(TSI,7) thresholds at +25, 0, -25 - 0 - 5 day EMA of 20 day EMA of 1 day momentum {little lag Vs smoothing of price} - 0 - Ergodic Oscillator = Ergodic + Signal line {TSI version of Slow Stochastic} Erodic(close,r) = TSI(close,r,5) {double smoothing is fixed at 5} Signal Line(close,r) = EMA(TSI(close,r,5),5) r = 20days thresholds are +20, -20 interesting comparision chart between 20 Slow Stochastic and 20 Erodic {more head room in oversold-bought areas} another chart showing Ergodic Osc = TSI(close,32,5) with 5-day EMA signal line - 0 - Trading Ergodics with the Trend - Rules 1. Enter or hold position only when slope of Erogodic Signal line has the same direction as the trend 2. Stand aside when slope of Erogodic Signal Line is in the opposite diretion of trend 3. Enter or exit position when Erogodic and its Signal Line cross - 0 - Slow TSI Trend = TSI(close,64,64) {? weekly looking chart - very little lag} Thresholds set at +15 & -15 Trading Ergodics with Slow TSI Trend 1st window - Slow TSI Trend = TSI(close,64,64) 2nd window - Ergodic Osc = TSI(close,64,5) |