NChartProNChartProNChartPro
Experimental · Trading Horizon

ChartSchool strategies

Each one is a well-known rule from StockCharts ChartSchool. In Trading Horizon → Build Your Own, pick it from the strategy list under ChartSchool strategies. A second later the page buys on the strategy's own BUY signal, sells on its own EXIT signal, and shows what that would have earned or lost on the stock — after broker costs, T+2 and tax. Test a rule this way before you trust it.

What

What this page is

16 strategies, from Moving Momentum to Elder Impulse. Each one's buy rule reads its BUY signal and its sell rule reads its EXIT signal, including the strategy's own stop and target.

The signals come from the same engine that used to draw them on the chart. Trading Horizon then trades them like any other rule.

NEPSE is long-only, so every short-selling rule in the original closes the long position instead.

Why

Why it helps you

If you trade
Days to weeks · you care about timing and the crowd.
  • Look at Total return next to Buy & hold, and at Max drawdown. Many classic rules buy after a rise and sell after a fall; on a stock that moves sideways they lose money.
  • Run the same strategy on many stocks (MANY STOCKS) before you believe a good result on one.
If you invest
Months to years · you care about quality and price paid.
  • The slow rules — Golden Cross, Trend Quant, Last Stochastic — trade rarely and suit a holder better than the fast ones.
When · Where

When to use it, and where to find it

  • When you read about a rule and want to see what it did on a real NEPSE stock.
  • Before you follow a rule, to see its worst losing run.
How to

Try it — a short walkthrough

  1. 1
    Open Build Your Own
    Go to Experimental → Trading Horizon. Keep BUILD YOUR OWN selected at the top and pick a stock, for example NABIL.
  2. 2
    Pick a ChartSchool strategy
    Open the strategy list above the buy rules. Under ChartSchool strategies, pick Moving Momentum. The buy rule now reads its BUY signal and the sell rule its EXIT signal. The ⓘ beside the note opens the Basic, Advanced and Master card.
  3. 3
    Read the result
    There is no button to press: the result appears by itself about a second after you pick it. The chart shows each trade, and the cards show the return, the drawdown and the number of trades, next to simply buying and holding.
  4. 4
    Change its numbers
    Every input of the strategy is in the rule row — change one and run again. OPTIMISE can search for better values, and WALK-FORWARD tests them on years they never saw.
Detail

Reading the numbers

  • BUY signal: 1 on the day the strategy's buy rule was met, else 0. EXIT signal: 1 on the day its exit, stop or target was met.
  • Trend Quant has no BUY / EXIT; it gives an allocation line (0, 25, 50, 75 or 100 %). The sample buys at 75 % or more and sells at 25 % or less.
  • SMA: simple moving average. EMA: exponential moving average (more weight on recent days). R: the risk of a trade — entry minus stop.
Settings

Every strategy — Basic, Advanced, Master

The method — ChartSchool strategies

Source: StockCharts ChartSchool, Trading Strategies and Models.

How to use a ChartSchool strategy hereEach one is a published strategy from StockCharts ChartSchool. Pick it in the strategy list under "ChartSchool strategies". Its buy rule reads the strategy's own BUY signal, and its sell rule reads the strategy's own EXIT signal, including the strategy's own stop and target. Trading Horizon then trades those signals like any other rule: the fill you choose (next open or this close), NEPSE broker costs, T+2 and capital gains tax. A stop or target exit is filled the same way, not at the stop price. You can change every input of the strategy in the rule row, run it on many stocks at once, and search for better values. Look at the result before you trust a rule: many classic rules buy after a rise and sell after a fall, and lose money on a stock that moves sideways. NEPSE is long-only. Every short-selling rule in the original closes the long position instead. A result shows what the rule could have done on past bars. It is not advice and makes no promise.
The rules, in one line eachMoving Momentum: SMA20 > SMA150, Stochastic < 20, then MACD histogram > 0. RSI(2): close > SMA200 and RSI(2) ≤ 5; exit on close > SMA5. Stochastic Pop: Stoch(70) > 50, ADX < 20, Stoch(14) jumps above 80 on high volume. NR7: narrowest day of 7; buy a break of its high. Bollinger Squeeze: BandWidth at a 6-month low, then a close above the upper band. %B + MFI: %B > 0.8 and MFI > 80. CCI Correction: CCI(100) > +100, CCI(20) dips below −100 then crosses above 0. Ichimoku: above the cloud, dip below Kijun, cross back above Tenkan. MACD Zero + Swing: MACD and signal above 0, break of the last swing high. EMA 5-8-13: 5 crosses above 8, both above 13. Price × MA: a close across SMA 20 / 50 / 200. MA Pullback: SMA50 > SMA200, pullback to SMA50, bullish breakout; target 2R. Golden Cross (SMA): SMA50 crosses SMA200. Last Stochastic: Stoch(39) %K above 50 and a close above last week's highest close. Trend Quant: four PPOs counted 0–4, read as an allocation of 0–100 %. Elder Impulse: green, red or blue bars; buy only with a rising 65-day EMA.
Not used on NEPSE, and whyCVR3 needs the VIX, which NEPSE does not have. Pre-holiday and six-month cycle strategies are built on the US calendar. Faber sector rotation is a portfolio method — see Filter → Rotation. Gaps stays on the chart (Classic Methods → Gaps): it names gaps, it does not trade them.

How to judge a strategy's result — read this first

A strategy is only worth using if it did well on many stocks, after costs, with a loss you could live with.

Total return vs Buy & holdIf simply buying and holding the stock did better, the strategy added nothing on that stock.
Max drawdownThe biggest fall from a peak of your money to a later low. Ask: could I live through this loss without giving up?
Number of tradesFewer than about 10 trades is too few to trust. Many trades mean many costs.
Average win vs average lossA rule that wins 70 % of the time can still lose money if its losses are much bigger than its wins.
Many stocksRun it with MANY STOCKS. A good result on one stock and a bad one on most is luck, not a method.
NEPSE rulesEvery trade pays NEPSE broker costs and tax, and a buy settles T+2, so a sale comes only after the shares arrive. A very short strategy can behave differently here than in the book.

Moving Momentum

Buy pullbacks in an up trend: SMA20 above SMA150, the Stochastic dips below 20, then the MACD histogram (5,35,5, the ChartSchool setting) turns positive.

Diagram: Moving Momentum
BasicIn the backtest: this rule's own BUY signal is the buy rule, and its own EXIT signal (a stop or target exit included) is the sell rule. Trading Horizon then fills the orders with NEPSE costs and T+2. Moving Momentum buys a dip inside an up trend. The trend is up when the 20-day average is above the 150-day average. The dip is when the Stochastic falls under 20. BUY comes when the MACD histogram turns positive again. EXIT comes after the Stochastic goes above 80 and the MACD histogram turns negative, or when the trend ends.
AdvancedThe dip and the turn must come within 20 days. A buy at a 10 % up-circuit day may not be filled. In a weak trend the 20/150 averages cross often and the strategy exits early.
MasterTrend: SMA(mmFast) > SMA(mmSlow). Arm: StochClose %K(20, smoothed 5) < osLevel, within armBars. Trigger: MACD-Histogram(5,35,5) crosses from ≤ 0 to > 0. Exit: %K > obLevel arms, then histogram crosses below 0; or SMA20 < SMA150. ChartSchool uses MACD-Hist(5,35,5) and StochClose(20,5,5); plan text said 12,26,9 — the ChartSchool numbers are the defaults, both are settable. Labels: BUY, EXIT. Signal delay (no look-ahead): 0 bars. Its inputs (default, range), which you can change in the rule: Fast SMA 20 (5–100): Uptrend = this SMA above the slow SMA; Slow SMA 150 (50–300): The 150-day SMA; Stoch length 20 (5–50): Stochastic look-back (20); Stoch smoothing 5 (1–10): %K smoothing (StochClose 20,5,5); Oversold 20 (5–40): Stochastic below this arms the BUY; Overbought 80 (60–95): Stochastic above this arms the EXIT; MACD fast 5 (2–30): MACD-Histogram(5,35,5), ChartSchool's setting; MACD slow 35 (10–60): MACD slow EMA; MACD signal 5 (2–20): MACD signal EMA; Wait bars 20 (3–60): Bars after the oversold dip to wait for the histogram to turn up.

Moving Momentum — how to use it

What it means, how to use it, and a worked example with simple numbers.

When it works bestOn a stock in a steady up trend that pulls back now and then. It waits for a dip (Stochastic under 20) and buys when momentum turns up again (MACD histogram back above 0).
Stop and exitIts EXIT comes after the Stochastic goes above 80 and then the MACD histogram turns negative, or when the 20-day average falls under the 150-day. Add a stop under the dip low in STOPS AND LIMITS if you want a fixed limit on the loss.
Common mistakesUsing it on a flat stock: the 20/150 averages cross often and the rule exits early. Forgetting that the dip and the turn must come within 20 days.
Settings to tryWait bars 10 to 30. Oversold 15 to 30. Keep MACD at 5, 35, 5 (ChartSchool) or test 12, 26, 9.
Worked exampleA stock trades at Rs 600 with its 20-day average above the 150-day. It dips to Rs 560; the Stochastic falls to 12. Six days later the MACD histogram turns positive at Rs 575: BUY. Weeks later at Rs 650 the Stochastic passes 80, and then the histogram turns negative at Rs 640: EXIT. Gain about Rs 65 a share before costs.

RSI(2)

Larry Connors' RSI(2): in a long up trend (close above SMA200), buy when the 2-day RSI falls to 5 or lower; exit on a close above SMA5.

Diagram: RSI(2)
BasicIn the backtest: this rule's own BUY signal is the buy rule, and its own EXIT signal (a stop or target exit included) is the sell rule. Trading Horizon then fills the orders with NEPSE costs and T+2. RSI(2) is a very short RSI. When a stock in an up trend (above its 200-day average) has a sharp short drop, RSI(2) falls to 5 or lower. That is the BUY. The EXIT is the first close above the 5-day average.
AdvancedThis is a short trade, often 2 to 5 days. A dip while the 200-day average itself is falling is weak. A close only just above the 200-day average is also noted.
MasterBUY: close > SMA(trendLen) and Wilder RSI(rsiLen) ≤ buyLevel on a traded bar. EXIT: first later close > SMA(exitLen). RSI departs from TA-Lib only on a flat window (50, not 0). No stop (Connors uses none). cl.weak_trend when SMA200 is lower than 20 bars ago. Labels: BUY, EXIT. Signal delay (no look-ahead): 0 bars. Its inputs (default, range), which you can change in the rule: RSI length 2 (2–5): Connors' 2-period RSI; Buy at or below 5 (1–20): RSI(2) at or below this, above the 200-day SMA, is the BUY; Trend SMA 200 (50–300): The close must be above this SMA; Exit SMA 5 (2–20): EXIT on the first close above this SMA.

RSI(2) — how to use it

What it means, how to use it, and a worked example with simple numbers.

When it works bestOn a stock above its 200-day average that has a sharp 2 to 3 day drop. It is a short trade, often 2 to 5 days.
Stop and exitEXIT on the first close above the 5-day average. Connors used no stop; on NEPSE add one in STOPS AND LIMITS (for example 8 %) to limit a bad loss.
Common mistakesUsing it when the 200-day average itself is falling — the dip often keeps going. Expecting it to work the same after costs: many trades are small, so costs matter.
Settings to tryBuy at or below 5 to 10. Exit SMA 3 to 7. Keep the trend SMA at 200.
Worked exampleA stock at Rs 800 is above its 200-day average (Rs 720). It falls three days to Rs 760 and RSI(2) drops to 4: BUY at Rs 760. Four days later it closes at Rs 785, above its 5-day average: EXIT. About 3 % before costs.

Stochastic Pop

A break out of a quiet range: long Stochastic above 50, ADX below 20 (no trend), then the 14-day Stochastic jumps above 80 on high volume.

Diagram: Stochastic Pop
BasicIn the backtest: this rule's own BUY signal is the buy rule, and its own EXIT signal (a stop or target exit included) is the sell rule. Trading Horizon then fills the orders with NEPSE costs and T+2. Stochastic Pop buys a breakout from a quiet market. The long Stochastic must be above 50. ADX must be below 20, which means a flat market. Then the short Stochastic jumps above 80 on high volume. EXIT comes when the short Stochastic falls below 50.
AdvancedThe stop is the lowest low of the 20 days before the pop. A pop without strong volume is not taken. A wide stop (more than 10 %) is noted.
MasterStoch(longK, kSmooth) %K > 50; ADX(adxLen) < adxMax; Stoch(shortK, kSmooth) %K crosses above popLevel; volume > average of the previous volLenPop traded bars (needs half). Stop = lowest low of consBars bars before; exit on %K crossing below exitLevel or the stop. Labels: BUY, EXIT, STOP; line stop. Signal delay (no look-ahead): 0 bars. Its inputs (default, range), which you can change in the rule: Long Stoch 70 (20–120): Stoch(70,3) above 50 = the bigger trend is up; Short Stoch 14 (5–30): Stoch(14,3) popping above the pop level is the trigger; Stoch smoothing 3 (1–5): %K smoothing for both stochastics; ADX length 14 (5–30): ADX length; ADX below 20 (10–40): ADX under this = a flat, consolidating market; Pop level 80 (60–95): Short Stoch crossing above this is the pop; Exit level 50 (20–70): EXIT when short Stoch falls below this; Volume average 250 (20–250): The pop bar's volume must beat this average; Range bars 20 (5–60): Stop = lowest low of this many bars before the pop.

Stochastic Pop — how to use it

What it means, how to use it, and a worked example with simple numbers.

When it works bestOn a stock that has gone quiet in a range (ADX under 20) inside a bigger up trend (long Stochastic above 50), just as it bursts out on high volume.
Stop and exitThe stop is the lowest low of the 20 days before the pop. EXIT when the short Stochastic falls below 50.
Common mistakesTaking a pop on weak volume (the rule refuses it). Ignoring a stop more than 10 % away — the card notes it; size the trade smaller.
Settings to tryADX below 15 to 25. Pop level 75 to 85. Volume average 50 for a stock with a short history.
Worked exampleA stock moves between Rs 300 and Rs 320 for a month; ADX is 16. One day it jumps to Rs 328 on three times normal volume and the 14-day Stochastic crosses 80: BUY at Rs 328. Stop at Rs 298, the 20-day low. Two weeks later the Stochastic falls below 50 at Rs 352: EXIT.

NR7 / NR4

The narrowest-range day of the last 7 (NR7) or 4 (NR4) days, and a buy when the next bar breaks above its high. Stop at its low.

Diagram: NR7 / NR4
BasicIn the backtest: this rule's own BUY signal is the buy rule, and its own EXIT signal (a stop or target exit included) is the sell rule. Trading Horizon then fills the orders with NEPSE costs and T+2. NR7 is the day with the smallest high-low range of the last 7 days. A very quiet day often comes before a bigger move. BUY when the next day goes above the NR7 high. The stop is the NR7 low.
AdvancedOnly the next day counts. If it does not break the high, the setup is over. A no-trade day (range 0) is never an NR7. The trade closes after 5 days if the stop is not hit.
MasterNR7: range(i) < range of each of the previous nrLen-1 traded, non-zero-range bars. Entry = max(open, NR high) on bar i+1 if high(i+1) > NR high. Stop = NR low (checked from the bar after entry; stop wins over target on the same bar). Time exit after holdBars (0 = off). NR4 optional (useNr4). Labels: NR7 (or NR4, above the bar), BUY, EXIT, STOP; line stop. Signal delay (no look-ahead): NR mark 0 bars; BUY on the next bar, the moment its high clears the NR day's high. Its inputs (default, range), which you can change in the rule: Narrow range days 7 (4–10): Today's range smaller than the previous N-1 days = NR7; Also NR4 0 (0–1): 1 = also mark and trade NR4 days; Hold bars 5 (0–30): EXIT at the close after this many bars (0 = only the stop).

NR7 / NR4 — how to use it

What it means, how to use it, and a worked example with simple numbers.

When it works bestAfter a very quiet day (the smallest range of the last 7), when the next day breaks above its high. Quiet days often come before bigger moves.
Stop and exitThe stop is the NR7 day's low. If the stop is not hit, the trade closes after 5 days (Hold bars).
Common mistakesBuying when the next day does NOT break the high — the setup is then over. A no-trade day is never an NR7.
Settings to tryHold bars 3 to 10. Also NR4 = 1 for more (weaker) setups.
Worked exampleAn NR7 day has a high of Rs 410 and a low of Rs 402. Next day the high reaches Rs 413: BUY at Rs 410 or the open if higher. Stop Rs 402. Five days later the close is Rs 425: EXIT.

Bollinger Squeeze

Bollinger BandWidth at its 6-month low (a squeeze), then a close above the upper band is a BUY; a break below the lower band is an EXIT.

Diagram: Bollinger Squeeze
BasicIn the backtest: this rule's own BUY signal is the buy rule, and its own EXIT signal (a stop or target exit included) is the sell rule. Trading Horizon then fills the orders with NEPSE costs and T+2. When the Bollinger Bands become very narrow, the price is resting. This is a squeeze (SQZ). A close above the upper band after a squeeze is a BUY. A close below the lower band is an EXIT.
AdvancedThe squeeze is the narrowest band width of about 6 months. A breakout long after the squeeze, or on low volume, is less reliable and is noted. A breakout up in a long-term down trend is also noted.
MasterBandWidth = (U − L)/M × 100 with BB(bbLen, bbMult), population σ. Squeeze: BW ≤ lowest BW of sqLook bars; SQZ on the first bar of each squeeze run. BUY: close crosses above upper band within sqArm bars of the last squeeze bar. EXIT: close crosses below lower band. Labels: SQZ, BUY, EXIT. Signal delay (no look-ahead): 0 bars. Its inputs (default, range), which you can change in the rule: Band length 20 (10–50): Bollinger Band SMA length; Band width 2 (1–3): Bands at this many standard deviations; Squeeze look-back 125 (40–250): BandWidth at its lowest of this many bars (about 6 months) = squeeze; Wait bars 20 (5–60): Bars after the squeeze in which a close above the upper band counts.

Bollinger Squeeze — how to use it

What it means, how to use it, and a worked example with simple numbers.

When it works bestAfter the bands become the narrowest of about 6 months (SQZ), when a close breaks above the upper band soon after.
Stop and exitEXIT on a close below the lower band. That can be far away; add a stop under the squeeze low in STOPS AND LIMITS.
Common mistakesBuying a break long after the squeeze, or on low volume — both are noted as weaker. A break up inside a long down trend often fails.
Settings to trySqueeze look-back 60 to 125. Wait bars 10 to 30.
Worked exampleBandWidth falls to its lowest in 125 days: SQZ. Eight days later the close is Rs 520, above the upper band at Rs 515: BUY. Two months later a close of Rs 560 falls under the lower band: EXIT.

%B + MFI

Strength confirmed by money flow: %B above 0.8 with MFI above 80 is a BUY; %B below 0.2 with MFI below 20 is an EXIT.

Diagram: %B + MFI
BasicIn the backtest: this rule's own BUY signal is the buy rule, and its own EXIT signal (a stop or target exit included) is the sell rule. Trading Horizon then fills the orders with NEPSE costs and T+2. This uses %B and the Money Flow Index. %B shows where price is inside the Bollinger Bands. MFI is like RSI but uses volume too. BUY when %B is above 0.8 and MFI is above 80: strong price with strong buying. EXIT when %B is below 0.2 and MFI is below 20.
AdvancedThis follows strength, it does not buy dips. A buy in a long-term down trend is noted. MFI needs volume, so it is empty on days with no trades.
MasterEdge-triggered: BUY on the first bar where %B > pbHigh and MFI(mfiLen) > mfiHigh; EXIT on the first bar where %B < pbLow and MFI < mfiLow. MFI departs from TA-Lib only when no money flowed in the window (NaN, not 0). Labels: BUY, EXIT. Signal delay (no look-ahead): 0 bars. Its inputs (default, range), which you can change in the rule: Band length 20 (10–50): Bollinger Band SMA length; Band width 2 (1–3): Bands at this many standard deviations; MFI length 14 (5–30): Money Flow Index length; %B above 0.8 (0.5–1.2): BUY needs %B above this ; MFI above 80 (50–95): ... and MFI above this; %B below 0.2 (-0.2–0.5): EXIT needs %B below this ; MFI below 20 (5–50): ... and MFI below this.

%B + MFI — how to use it

What it means, how to use it, and a worked example with simple numbers.

When it works bestOn a stock that starts a strong move with real money behind it: price near the top of its bands (%B above 0.8) and strong buying (MFI above 80).
Stop and exitEXIT when %B falls below 0.2 and MFI below 20. Add your own stop, because that exit can come late.
Common mistakesTreating it as a dip-buying rule — it buys strength. A buy in a long down trend is noted as weak.
Settings to try%B above 0.7 to 1.0. MFI above 70 to 85.
Worked exampleA stock rises to Rs 450 near its upper band (%B 0.9) and MFI reaches 84: BUY. Weeks later %B falls to 0.15 and MFI to 18 at Rs 470: EXIT.

CCI Correction

Buy a dip in a strong trend: the long CCI(100) above +100, the short CCI(20) dips below −100, then crosses back above zero.

Diagram: CCI Correction
BasicIn the backtest: this rule's own BUY signal is the buy rule, and its own EXIT signal (a stop or target exit included) is the sell rule. Trading Horizon then fills the orders with NEPSE costs and T+2. The long CCI (100 days) sets the trend. Above +100 the trend is up. In an up trend, the short CCI (20 days) dipping below -100 is a correction. BUY when the short CCI comes back above zero.
AdvancedThe up trend lasts until the long CCI falls below -100, so a small dip in the long CCI does not end it. EXIT when the trend turns down, or when the short CCI goes above +100 and then falls back below zero.
MasterBias state: +1 after CCI(cciLong) > biasLevel, -1 after < -biasLevel (hysteresis). Arm: CCI(cciShort) < dipLevel in bull bias. BUY: short CCI crosses above trigLevel. EXIT: bias turns -1, or short CCI > -dipLevel then crosses below -trigLevel (the entry mirrored). Labels: BUY, EXIT. Signal delay (no look-ahead): 0 bars. Its inputs (default, range), which you can change in the rule: Long CCI 100 (50–200): CCI(100) sets the bias: bullish above +100 until it falls below -100; Short CCI 20 (5–50): CCI(20) finds the correction; Bias level 100 (50–200): Bias turns bullish above +this, bearish below -this; Dip level -100 (-300–-50): Short CCI below this arms the BUY; Trigger level 0 (-100–100): BUY when short CCI crosses back above this.

CCI Correction — how to use it

What it means, how to use it, and a worked example with simple numbers.

When it works bestIn a strong up trend (CCI 100 above +100), after a short pullback (CCI 20 below −100), when the short CCI comes back above zero.
Stop and exitEXIT when the long CCI falls below −100, or when the short CCI goes above +100 and then falls back below zero. Add a stop under the pullback low.
Common mistakesUsing it in a flat market, where the long CCI moves around zero.
Settings to tryDip level −150 to −80. Long CCI 50 to 150.
Worked exampleCCI(100) is +130. A pullback takes CCI(20) to −140 at Rs 690. Three days later CCI(20) crosses above 0 at Rs 705: BUY. It later rises above +100 and falls back below 0 at Rs 760: EXIT.

Ichimoku

Price above the cloud; a pullback below the Kijun (26) line, then a cross back above the Tenkan (9) line is a BUY. Stop under the low before the signal.

Diagram: Ichimoku
BasicIn the backtest: this rule's own BUY signal is the buy rule, and its own EXIT signal (a stop or target exit included) is the sell rule. Trading Horizon then fills the orders with NEPSE costs and T+2. Ichimoku shows trend with a cloud. When price is above the cloud, the trend is up. A pullback below the Kijun (base line) is a dip. BUY when price closes back above the Tenkan (conversion line). The stop is the lowest low of the dip.
AdvancedA thin cloud gives weak support and is noted. EXIT when price closes below the cloud. The cloud used on each day is the one drawn 26 days earlier, so nothing from the future is used.
MasterTenkan = mid of tenkanLen range, Kijun = mid of kijunLen, Span A = (T+K)/2, Span B = mid of spanBLen, both shifted cloudShift bars ahead (the cloud at bar i is the span computed at i-26). Trend flag set by a close above the cloud top, cleared by a close below the bottom. Arm: close < Kijun. BUY: close crosses above Tenkan; stop = lowest low since arming. Labels: BUY, EXIT, STOP; line stop. Signal delay (no look-ahead): 0 bars. Its inputs (default, range), which you can change in the rule: Tenkan 9 (3–30): Conversion line: middle of the 9-bar range; Kijun 26 (10–60): Base line: middle of the 26-bar range. A close below it is the pullback; Span B 52 (20–120): Slow cloud edge: middle of the 52-bar range; Cloud shift 26 (10–60): The cloud is drawn this many bars ahead of where it is computed.

Ichimoku — how to use it

What it means, how to use it, and a worked example with simple numbers.

When it works bestOn a stock trading above the cloud, after a pullback below the Kijun (base line), when price closes back above the Tenkan (conversion line).
Stop and exitThe stop is the lowest low of the pullback. EXIT on a close below the cloud.
Common mistakesTrusting a thin cloud — the card notes it as weak support. Forgetting that the cloud used each day was computed 26 days earlier (no future data).
Settings to tryKeep 9, 26, 52, 26 as published; test a shorter Kijun (20) for faster trades.
Worked examplePrice is above the cloud. It dips below the Kijun to Rs 480. Next week it closes at Rs 498, above the Tenkan: BUY. Stop Rs 478. Months later a close below the cloud at Rs 560: EXIT.

MACD Zero + Swing

MACD and its signal both above zero, then a break above the last swing high is a BUY; a trailing stop follows each new swing low.

Diagram: MACD Zero + Swing
BasicIn the backtest: this rule's own BUY signal is the buy rule, and its own EXIT signal (a stop or target exit included) is the sell rule. Trading Horizon then fills the orders with NEPSE costs and T+2. When MACD and its signal line are both above zero, the trend is up. BUY when the close breaks above the last swing high. The stop is the last swing low. Each new higher swing low moves the stop up.
AdvancedThe stop only moves up, never down. A breakout on low volume is noted. A stop far below the entry (more than 10 %) is noted.
MasterFractal pivots, swingBars each side, confirmed swingBars later. BUY: MACD(12,26,9) line > 0 and signal > 0 and close crosses above the last confirmed swing high (each swing high is used once). Stop = last confirmed swing low; ratchets up on each new confirmed swing low below the close. Exit only by the stop. Labels: BUY, STOP; lines stop (one per level). Signal delay (no look-ahead): 0 bars; each swing high / low is used only from the bar that confirms it (swingBars later). Its inputs (default, range), which you can change in the rule: MACD fast 12 (2–50): MACD fast EMA; MACD slow 26 (5–100): MACD slow EMA; MACD signal 9 (2–50): MACD and its signal must both be above zero; Swing bars 3 (1–10): A swing high / low needs this many bars on each side.

MACD Zero + Swing — how to use it

What it means, how to use it, and a worked example with simple numbers.

When it works bestIn an up trend where MACD and its signal are both above zero, when the close breaks above the last swing high.
Stop and exitThe stop is the last swing low and moves up with each new higher swing low (it never moves down). The trade ends only at the stop.
Common mistakesBuying a breakout with a stop more than 10 % away (noted); size it smaller. Expecting a target — this rule rides the trend until the stop.
Settings to trySwing bars 2 to 5. A larger number gives fewer, more important swings and wider stops.
Worked exampleMACD and signal are above zero. The last swing high is Rs 610; a close at Rs 615 breaks it: BUY. Stop at the last swing low, Rs 570. New swing lows lift the stop to Rs 600, then Rs 640. Price falls to Rs 640: the stop ends the trade.

EMA 5-8-13

The 5-day EMA crosses above the 8-day with both above the 13-day: BUY. The 5 crosses back under the 8: EXIT.

Diagram: EMA 5-8-13
BasicIn the backtest: this rule's own BUY signal is the buy rule, and its own EXIT signal (a stop or target exit included) is the sell rule. Trading Horizon then fills the orders with NEPSE costs and T+2. Three short averages: 5, 8 and 13 days. BUY when the 5-day crosses above the 8-day and both are above the 13-day. EXIT when the 5-day falls back under the 8-day.
AdvancedThis is a fast, short-term method. It gives many signals. In a sideways market many of them fail quickly. Test the rule on a sideways stock to see the cost. A buy under the 200-day average is against the long trend and is noted.
MasterEMA(5), EMA(8), EMA(13), SMA-seeded. BUY: EMA5 crosses above EMA8 with EMA5 > EMA13 and EMA8 > EMA13 on a traded bar. EXIT: EMA5 crosses below EMA8. cl.whipsaw = the BUY came ≤ 5 bars after the last EXIT. Labels: BUY, EXIT. Signal delay (no look-ahead): 0 bars. Its inputs (default, range), which you can change in the rule: Fast EMA 5 (2–30): The 5-day EMA; Middle EMA 8 (3–50): The 8-day EMA. Fast crossing above it is the trigger; Slow EMA 13 (5–100): The 13-day EMA. Both faster EMAs must be above it to buy.

EMA 5-8-13 — how to use it

What it means, how to use it, and a worked example with simple numbers.

When it works bestOn a stock with short, clean swings. It is fast and gives many signals.
Stop and exitEXIT when the 5-day EMA crosses back under the 8-day.
Common mistakesUsing it on a flat stock: many quick buy-and-exit pairs, each paying costs (a BUY within 5 days of the last EXIT is noted as a whipsaw). Buying under the 200-day average, against the long trend.
Settings to trySlower: 8, 13, 21. Run it on a sideways stock to see the cost of whipsaws.
Worked exampleThe 5-day EMA crosses above the 8-day at Rs 350, with both above the 13-day: BUY. Twelve days later it crosses back under at Rs 372: EXIT.

Price × MA

A full candle closes across the moving average (SMA 20, 50 or 200 — your choice): above is BUY, below is EXIT.

Diagram: Price × MA
BasicIn the backtest: this rule's own BUY signal is the buy rule, and its own EXIT signal (a stop or target exit included) is the sell rule. Trading Horizon then fills the orders with NEPSE costs and T+2. BUY when the close moves above the chosen average (20, 50 or 200 days). EXIT when the close moves below it. Only full candle closes count, not a touch during the day.
AdvancedA cross while the average is still falling is weaker. Many quick crosses mean the market is flat. Test the rule on a sideways stock to see the cost. A small filter % can remove tiny crosses.
MasterSMA(maLen). BUY: close > SMA × (1 + crossPct/100) on bar i and not on bar i-1. EXIT: close < SMA × (1 − crossPct/100) on bar i and not on i-1. Labels: BUY, EXIT. Signal delay (no look-ahead): 0 bars (after a full candle close). Its inputs (default, range), which you can change in the rule: SMA length 50 (5–250): Price crossing this SMA (20, 50 or 200 usual); Filter % 0 (0–5): Close must clear the SMA by this % (0 = any close above).

Price × MA — how to use it

What it means, how to use it, and a worked example with simple numbers.

When it works bestOn a trending stock, with the 50-day or 200-day average. Only full closes count.
Stop and exitEXIT on a close back below the average.
Common mistakesUsing the 20-day average on a flat stock — it crosses back and forth. A cross while the average is still falling is weaker.
Settings to trySMA length 20, 50 or 200. Filter % 1 to 2 removes tiny crosses.
Worked exampleThe 50-day average is Rs 500. A close at Rs 506 crosses above it: BUY. Weeks later a close at Rs 540 falls under the average at Rs 545: EXIT.

MA Pullback

In an up trend (SMA50 above SMA200), price pulls back to the 50-day average and a bullish candle breaks out: BUY. Stop below the averages; target 2R.

Diagram: MA Pullback
BasicIn the backtest: this rule's own BUY signal is the buy rule, and its own EXIT signal (a stop or target exit included) is the sell rule. Trading Horizon then fills the orders with NEPSE costs and T+2. In an up trend (50-day above 200-day), price often comes back to the 50-day average. BUY when a strong green candle closes above the day before's high after that touch. The stop is under the pullback low. The target is two times the risk.
AdvancedThe buy must come within 10 days of the last touch. If the close falls under the 200-day average, the trade ends with EXIT. A green candle on low volume is noted.
MasterUp: SMA(pbFast) > SMA(pbSlow) and close > SMA(pbSlow). Touch: low ≤ SMA(pbFast) × (1 + touchPct/100). Trigger within armBars of the last touch: close > open and close > previous high. Stop = min(pullback low, SMA50) × (1 − stopBufPct/100). Target = entry + rrTarget × (entry − stop). Stop wins over target on the same bar. Labels: BUY, STOP, TARGET, EXIT; lines stop, target. Signal delay (no look-ahead): 0 bars. Its inputs (default, range), which you can change in the rule: Trend SMA 50 (10–100): Price pulls back to this SMA (50-day); Long SMA 200 (50–300): Uptrend = trend SMA above this SMA and close above it; Touch zone % 1 (0–5): A low within this % above the trend SMA counts as a touch; Wait bars 10 (2–30): Bars after the last touch to wait for the breakout candle; Stop buffer % 1 (0–5): Stop sits this % under the pullback low / the SMA; Target (R) 2 (1–5): Target = entry + this many times the risk.

MA Pullback — how to use it

What it means, how to use it, and a worked example with simple numbers.

When it works bestIn an up trend (50-day above 200-day), when price pulls back to the 50-day average and then a green candle closes above the day before's high.
Stop and exitStop = 1 % under the lower of the pullback low and the 50-day average. Target = 2 times the risk. A close under the 200-day average also ends the trade (EXIT).
Common mistakesBuying a touch with no green breakout candle. A green candle on low volume is noted as weak.
Settings to tryTarget (R) 1.5 to 3. Touch zone % 1 to 2 for a jumpy stock.
Worked exampleThe 50-day average is Rs 400. Price dips to Rs 402 and a green candle then closes at Rs 412, above the day before's high: BUY at Rs 412. The lower of the pullback low (Rs 402) and the average (Rs 400) is Rs 400, so the stop is 1 % under it: Rs 396. Risk Rs 16. Target = 412 + 2 × 16 = Rs 444.

Golden Cross (SMA)

The 50-day SMA crosses above the 200-day SMA (Golden Cross, BUY) or below it (Death Cross, EXIT).

Diagram: Golden Cross (SMA)
BasicIn the backtest: this rule's own BUY signal is the buy rule, and its own EXIT signal (a stop or target exit included) is the sell rule. Trading Horizon then fills the orders with NEPSE costs and T+2. Golden Cross: the 50-day average crosses above the 200-day average. It marks a possible long-term up trend. Death Cross is the opposite, and the long position is closed.
AdvancedA Golden Cross with a flat 200-day average is not a textbook signal. These signals are slow and often late. This uses simple averages; DecisionPoint's version uses exponential averages.
MasterSMA(gcFast) crosses SMA(gcSlow). cl.flat_ma200 when |SMA200 change over 20 bars| < 1 %. cl.whipsaw when the opposite cross was ≤ 10 bars before. Labels: BUY (Golden Cross), EXIT (Death Cross). Signal delay (no look-ahead): 0 bars. Its inputs (default, range), which you can change in the rule: Fast SMA 50 (10–100): The 50-day SMA; Slow SMA 200 (50–400): The 200-day SMA. Fast above it = Golden Cross (BUY).

Golden Cross (SMA) — how to use it

What it means, how to use it, and a worked example with simple numbers.

When it works bestFor long-term holders. It trades rarely and catches big trends, but late.
Stop and exitEXIT on the Death Cross (50-day under 200-day). That exit is slow; a holder may add a wider stop.
Common mistakesTrusting a cross with a flat 200-day average (noted). Expecting an early entry — the cross often comes after a big part of the move.
Settings to tryFast 20 to 50, slow 100 to 200.
Worked exampleThe 50-day average crosses above the 200-day at Rs 520: BUY. Eight months later it crosses back below at Rs 640: EXIT.

Last Stochastic

The 39-day Stochastic %K crosses above 50 and the close beats the previous week's highest close: BUY. The mirror is EXIT.

Diagram: Last Stochastic
BasicIn the backtest: this rule's own BUY signal is the buy rule, and its own EXIT signal (a stop or target exit included) is the sell rule. Trading Horizon then fills the orders with NEPSE costs and T+2. BUY when the 39-day Stochastic has just crossed above 50 and the close is above the highest close of last week. EXIT when it has just crossed below 50 and the close is below last week's lowest close.
AdvancedBoth parts must agree within a few days. Last week means the previous calendar week, which is always finished. This avoids buying on momentum alone.
MasterRaw Stoch %K(lsK, 1). BUY edge: %K > 50, the 50-cross ≤ lsArm bars old, close > highest close of the previous calendar (Sunday-start) week. EXIT mirror with the lowest close. Labels: BUY, EXIT. Signal delay (no look-ahead): 0 bars. Its inputs (default, range), which you can change in the rule: Stoch length 39 (10–80): Raw Stoch(39,1) %K crossing 50; Cross window 5 (1–15): The 50-cross must be at most this many bars old.

Last Stochastic — how to use it

What it means, how to use it, and a worked example with simple numbers.

When it works bestWhen momentum turns (39-day Stochastic crossing 50) and price confirms by closing above last week's highest close.
Stop and exitEXIT on the mirror: the Stochastic crosses below 50 and the close falls below last week's lowest close.
Common mistakesBuying on the Stochastic alone. Both parts must agree within a few days (Cross window).
Settings to tryStoch length 20 to 60. Cross window 3 to 10.
Worked exampleThe 39-day Stochastic crosses 50 on Monday. Last week's highest close was Rs 455. On Wednesday the close is Rs 458: BUY.

Trend Quant

Four PPO readings (20, 40, 60 and 80 against 150) counted 0 to 4. Each positive one is a 25 % step. Marks each change in the count.

Diagram: Trend Quant
BasicIn the backtest: the allocation line (0, 25, 50, 75 or 100 %) is something you can test. The sample buys when it reaches 75 % or more and sells when it falls to 25 % or less. Change both numbers in the rule. Four PPO lines (20, 40, 60 and 80 days, each against 150 days) measure the trend. Each positive line adds 25 %. ALLOC 100 % means all four are positive: a strong up trend. ALLOC 0 % means none are positive.
AdvancedThis is a way to size a position, not a single buy or sell. Steps up show the trend getting stronger. Steps down show it getting weaker. It is never a sell signal on its own; at 0 % a long-only investor holds cash.
MasterPPO = (EMAf − EMA150)/EMA150 × 100, each EMA SMA-seeded on its own (StockCharts PPO, not TA-Lib's SMA PPO). Count of PPO > 0 over the four fast lengths; a point on every change after all four exist (bar 149). Labels: ALLOC 0%, ALLOC 25%, ALLOC 50%, ALLOC 75%, ALLOC 100% (dir +1 when it rose, -1 when it fell). Signal delay (no look-ahead): 0 bars. Its inputs (default, range), which you can change in the rule: Slow EMA 150 (50–300): Every PPO compares a fast EMA with this slow EMA; PPO fast 1 20 (5–100): First PPO's fast EMA; PPO fast 2 40 (5–120): Second PPO's fast EMA; PPO fast 3 60 (5–140): Third PPO's fast EMA; PPO fast 4 80 (5–160): Fourth PPO's fast EMA.

Trend Quant — how to use it

What it means, how to use it, and a worked example with simple numbers.

When it works bestAs a way to size a long-term position, not as a single buy. Four PPO lines (20, 40, 60, 80 days against 150) each add 25 % when positive.
Stop and exitThe sample sells when the allocation falls to 25 % or less. At 0 % a long-only investor holds cash.
Common mistakesReading a step down as a sell signal on its own. It needs 150 bars of history before the first value.
Settings to tryBuy level 50 to 100 %, sell level 0 to 50 % in the rule. Slow EMA 100 to 200.
Worked exampleTwo PPO lines are positive: ALLOC 50 %. A week later three are positive: 75 % — the sample buys. Months later only one is positive: 25 % — the sample sells.

Elder Impulse

Elder's Impulse colours: green when the 13-day EMA and the MACD histogram both rise, red when both fall, blue otherwise. Buys only when the 65-day EMA rises.

Diagram: Elder Impulse
BasicIn the backtest: this rule's own BUY signal is the buy rule, and its own EXIT signal (a stop or target exit included) is the sell rule. Trading Horizon then fills the orders with NEPSE costs and T+2. The Elder Impulse System colours each bar. Green: the 13-day average and the MACD histogram both rise. Red: both fall. Blue: mixed. BUY when the colour turns green while the 65-day average rises. EXIT when it turns red.
AdvancedThe 65-day average acts like the weekly trend. Green bars in a falling 65-day trend are not bought. Red means momentum is falling; it closes the long.
MasterGreen: EMA(impEma) > previous and MACD-Hist(12,26,9) > previous; red: both lower; else blue. BUY on a change to green when EMA(impTrend) > previous; EXIT on a change to red. showColors adds a point on every colour change. Labels: BUY, EXIT, optional G / R / B. Signal delay (no look-ahead): 0 bars. Its inputs (default, range), which you can change in the rule: Impulse EMA 13 (5–50): Its slope is half of the Impulse colour; Trend EMA 65 (20–200): BUY only while this EMA rises (about 13 weeks); MACD fast 12 (2–50): MACD fast EMA; the histogram slope is the other half; MACD slow 26 (5–100): MACD slow EMA; MACD signal 9 (2–50): MACD signal EMA; Colour marks 0 (0–1): 1 = also mark every colour change (G / R / B).

Elder Impulse — how to use it

What it means, how to use it, and a worked example with simple numbers.

When it works bestWhen the 65-day EMA rises (the bigger trend is up) and the bar turns green (13-day EMA and MACD histogram both rising).
Stop and exitEXIT when the bar turns red (both falling). Blue bars are mixed: hold.
Common mistakesBuying green bars while the 65-day EMA falls (the rule refuses them). Reading blue as a sell.
Settings to tryTrend EMA 50 to 100. Colour marks = 1 to see every colour change.
Worked exampleThe 65-day EMA is rising. After two blue bars, a bar turns green at Rs 300: BUY. Three weeks later a red bar at Rs 330: EXIT.
Honest limits

What it does not do

  • A result shows what a rule could have done on past bars. It is not advice, and past results do not repeat by themselves.
  • A strategy's own stop or target ends the trade through its EXIT signal; the sell is filled the way you set Fill (next open or this close), not at the stop price.
  • Not used on NEPSE: CVR3 (needs the VIX), pre-holiday and six-month cycles (US calendar), Faber sector rotation (see Filter → Rotation).
FAQ

Questions people ask

Why are these not on the chart any more?

On the chart a BUY arrow looks like advice, but many of these rules lose money on NEPSE. Here you see what each one really did, with costs, before you trust it.

Why is there no SELL SHORT?

NEPSE has no short selling. Where the original rule goes short, the strategy closes the long position instead.

Can I add my own stop to a strategy?

Yes. STOPS AND LIMITS work as for any rule. Leave them empty to test the strategy exactly as published.

Which strategy is the best?

None is best everywhere. A trend rule does well on a trending stock and badly on a flat one; a dip-buying rule is the opposite. Run several on MANY STOCKS and compare Total return, Max drawdown and the number of trades.

Why does a fast strategy lose money even when most trades win?

Every trade pays broker costs, and small wins can be wiped out by a few big losses. Look at the average win against the average loss, not only the win rate.

Why was a BUY on an up-circuit day not filled?

On a day locked at the 10 % up limit, there are often no sellers. With Fill = next open, the buy is filled the next day at its open, which can be higher.

Can OPTIMISE make a bad strategy good?

It can make it look good on the past. Always check the result with WALK-FORWARD, which tests the chosen numbers on years they never saw. If it fails there, the good result was luck.

Why does Trend Quant never give a single BUY?

It gives an allocation from 0 to 100 %, not a signal. The sample turns it into a rule: buy at 75 % or more, sell at 25 % or less. Change both numbers in the rule.


Market Closed
--:--:--NPT
○FollowerData updated: --:--:--