New in the app · October 2026

Test a trading idea before you risk a coin.

Pro Chart puts 113 prebuilt strategies, a no-code strategy builder and a Pine Script editor on your phone. Every run draws its signals on the chart and shows a full backtest: return against buy and hold, win rate, profit factor and drawdown.

  • 113 strategies
  • 7 strategy groups
  • 15 Pine scripts
  • 10 free to start
Pro Chart running a Z-score strategy with Buy and Sell arrows and a backtest card
The strategy list sorted by return on the current chart
The Pine Script editor with line numbers
The no-code strategy builder with entry and exit rules
Picking an indicator for a rule
Three ways to test an idea

Pick one, build one, or write one.

Prebuilt strategies

Trend, momentum, mean reversion, breakout, volatility, volume and candle patterns. Change each setting with steppers, switch shorts on or off, and sort by what did best on this stock.

Build your own, no code

Rules like “EMA 9 crosses above EMA 21” or “RSI 14 is below 30”, joined by ALL or ANY, for long, short or both, with an optional stop-loss and target.

Pine Script editor

Write Pine Script v5 with line numbers, tap Check to see errors by line, then Save & run. Start from 15 ready-made scripts.

A backtest on every run

Signals drawn on the chart, an equity curve, and the numbers that matter, with 0.1% fees per side so results are not flattered.

The library

All 113 prebuilt strategies

Each one is a classic, well-documented rule, explained in plain words in the app.

Trend 27

  • SMA crossover FreeBuy when the fast SMA crosses above the slow SMA; sell when it crosses back below.
  • EMA crossover FreeBuy when the fast EMA crosses above the slow EMA; sell on the cross back below. Reacts faster than SMAs.
  • Triple EMA stackIn a trade while EMA fast > mid > slow (a stacked uptrend); out as soon as the stack breaks.
  • Golden / death cross FreeThe classic long-term signal: buy on the 50 SMA crossing above the 200 SMA (golden), sell on the death cross.
  • Supertrend FreeAn ATR band that trails price. Buy when price closes above it and it flips green; sell when it flips red.
  • Parabolic SAR flipFollows the SAR dots: buy when they flip below price, sell when they flip above.
  • ADX + DI trendBuy when +DI crosses above −DI while ADX shows a real trend (above the threshold); sell on the opposite cross.
  • Ichimoku TK crossBuy when the Tenkan line crosses above the Kijun line with price above the Kijun; sell on the cross back down.
  • Heikin-Ashi trendSmoothed candles: buy after two green Heikin-Ashi candles in a row, sell after two red ones.
  • Hull MA slopeBuy when the Hull moving average turns up, sell when it turns down. Hull reacts quickly with little lag.
  • Aroon crossAroon Up measures how recently the high was set, Aroon Down the low. Buy when Up crosses above Down, sell on the reverse.
  • Supertrend + EMA filterSupertrend direction, but only taken in the direction of the long EMA: long when Supertrend is green and price is above the EMA; out when Supertrend flips red.
  • Ichimoku cloud breakoutThe cloud is drawn from data 26 bars back. Buy when price closes above the top of the cloud; sell when it closes below the bottom.
  • DEMA crossoverDouble EMAs cut most of the lag of a plain EMA. Buy when the fast DEMA crosses above the slow one; sell on the cross back below.
  • TEMA crossoverTriple EMAs react even faster than DEMAs. Buy when the fast TEMA crosses above the slow TEMA; sell when it crosses below.
  • Hull MA crossoverTwo Hull moving averages: buy when the fast one crosses above the slow one, sell on the cross back down.
  • KAMA trendKaufman's adaptive average moves quickly in clean trends and stays still in chop. Buy when price closes above it, sell when it closes below.
  • Zero-lag EMA crossZero-lag EMAs remove the built-in delay of an EMA. Buy on the fast ZLEMA crossing above the slow one; sell on the reverse.
  • EMA ribbonSix EMAs spaced evenly apart. Buy when the whole ribbon fans out in order (fastest on top); sell as soon as the fastest EMA drops below the next one.
  • Vortex crossVI+ tracks upward movement, VI− downward movement. Buy when VI+ crosses above VI−; sell when it crosses below.
  • Long-term MA filterThe simplest trend rule: in while price is above its long moving average (by a small buffer), out when it closes below it.
  • Linear regression slopeFits a straight line through the last N closes. Buy when its slope turns positive, sell when it turns negative.
  • McGinley DynamicAn average that speeds up when price runs away from it and slows down in ranges. Buy on a close above it, sell on a close below.
  • Williams AlligatorThree shifted smoothed averages (jaw, teeth, lips). Buy when they open in order — lips above teeth above jaw — and sell when the lips cross back below the teeth.
  • Guppy multiple MAsCompares the average of six short EMAs (traders) with six long EMAs (investors). Buy when the short group crosses above the long group; sell on the reverse.
  • Parabolic SAR + ADXFollows SAR flips only when ADX says a real trend is running: buy when the dots are below price and ADX is above the threshold; sell when the dots flip above.
  • T3 slopeTillson's T3 is a very smooth average. Buy when it turns up, sell when it turns down.

Momentum 22

  • MACD signal cross FreeBuy when the MACD line crosses above its signal line; sell when it crosses below.
  • MACD zero lineBuy when MACD crosses above zero (fast EMA above slow), sell when it drops below zero.
  • RSI 50 trend FreeUses RSI as a trend filter: in a trade while RSI is above 50, out when it slips below.
  • Stochastic crossBuy when %K crosses above %D below the oversold line; sell when it crosses below %D above overbought.
  • Rate of changeMomentum in percent over N bars. Buy when it crosses above zero, sell when it crosses below.
  • TRIX signalTRIX is the rate of change of a triple-smoothed EMA. Buy when it crosses above its signal line, sell below.
  • Momentum + trend filterBuy when the close makes a new N-bar high while above the 100 EMA; exit on a close below the 20 EMA.
  • Stochastic RSIA stochastic of RSI itself, so it swings fast. Buy when %K crosses above %D while %D is oversold; sell when it crosses below while overbought.
  • Know Sure ThingKST blends four smoothed rates of change into one momentum line. Buy when it crosses above its signal line, sell below.
  • Awesome Oscillator zero crossThe Awesome Oscillator is a 5-bar minus 34-bar average of the bar midpoints. Buy when it crosses above zero, sell when it crosses below.
  • Awesome Oscillator saucerA "saucer" above zero: two falling AO bars followed by a rising one — a dip inside momentum. Buy on a bullish saucer; sell on a bearish saucer or a drop below zero.
  • Elder RayBull power = high − EMA, bear power = low − EMA. Buy when the EMA is rising and bear power is negative but recovering; sell when the EMA is falling and bull power is positive but fading.
  • Elder Impulse systemA bar is green when both the 13 EMA and the MACD histogram rise, red when both fall. Buy when bars turn green; sell on the first red bar.
  • MACD histogram reversalBuy when the MACD histogram turns up while still below zero (selling is easing); sell when it turns down while above zero.
  • True Strength IndexTSI double-smooths price momentum. Buy when it crosses above its signal line, sell when it crosses below.
  • Coppock curveA slow momentum curve built from two rates of change. Buy when it turns up while below zero; sell when it falls back below zero.
  • Schaff Trend CycleA MACD run through a double stochastic, scaled 0–100. Buy when it rises above 25, sell when it falls below 75.
  • Fisher transformTurns price into sharper turning points. Buy when the Fisher line crosses above its trigger from below the level; sell when it crosses below from above.
  • Relative Vigor IndexIn up moves closes tend to finish above opens. RVI measures that. Buy when it crosses above its signal line, sell when it crosses below.
  • CCI trend breakoutUses CCI as a momentum burst: buy when CCI breaks above +100, exit when it falls back below the exit level.
  • RSI divergenceBullish divergence: price makes a lower swing low but RSI makes a higher one. Buy once that swing is confirmed; sell on a bearish divergence, when RSI falls back below 50, or on a close under that swing low.
  • QstickQstick is the average of close − open over N bars: positive when candles are mostly green. Buy when it crosses above zero, sell when it crosses below.

Mean reversion 20

  • RSI 30 / 70 FreeBuy when RSI climbs back above 30 (leaving oversold); sell when it falls back below 70 (leaving overbought).
  • Williams %RBuy when %R rises back above −80 (oversold), sell when it drops back below −20 (overbought).
  • CCI ±100Buy when CCI comes back up through −100, sell when it comes back down through +100.
  • Bollinger reversion FreeBuy when price closes back inside the lower band; sell when it reaches the middle band.
  • Z-score reversionMeasures how many standard deviations price is from its average. Buy below −2, exit when it returns to 0.
  • VWAP reversionBuy when price stretches a set percent below VWAP and turns up; exit when it gets back to VWAP.
  • RSI(2) pullbackA short-term pullback rule: in an uptrend (above the 200 SMA), buy when 2-period RSI drops under 10; sell when it tops 70.
  • Bollinger %B%B shows where the close sits inside the bands (0 = lower band, 1 = upper). Buy when %B drops below the low level; sell when it rises above the high level.
  • Keltner reversionBuy when price closes back above the lower Keltner channel (EMA − ATR); take profit at the middle EMA. The mirror rule shorts the upper channel.
  • MA envelope reversionBands a fixed percent above and below an SMA. Buy when price closes below the lower envelope; sell when it gets back to the SMA.
  • Connors RSIConnors RSI averages a 3-bar RSI, an RSI of the up/down streak and the rank of today's change. Buy when it drops below the low level, sell above the high level.
  • Ultimate OscillatorBlends buying pressure over three windows (7, 14, 28). Buy when it climbs back above 30, sell when it falls back below 70.
  • Chande Momentum ±50CMO compares the sum of up moves with down moves (−100 to +100). Buy when it rises back above −50, sell when it falls back below +50.
  • Internal bar strengthIBS is where the close sits in the bar's range (0 = at the low, 1 = at the high). Buy after a close near the low; sell after a close near the high.
  • Donchian channel reversionBuy a green bar that tags the bottom of the N-bar channel; take profit at the channel midline. The mirror rule shorts a red bar at the top.
  • Linear regression channelA regression line with bands N standard errors away. Buy when price closes back above the lower band; take profit at the line.
  • Pivot point bounceFloor pivots from the previous session. Buy when price dips to S1 and closes back above it; exit at the pivot (or below S2). The mirror rule shorts R1.
  • Fibonacci 61.8% bounceAfter an up-swing (low first, then high) over the lookback, buy when price pulls back to the 61.8% retracement and closes above it; exit at the swing high or below the 78.6% level.
  • Gap fillFades a gap: after a bar opens a set percent below the prior close and stays below it, buy for a move back to that close; exit there or after N bars.
  • Three lower closesIn an uptrend (above the long SMA), buy after N closes in a row each lower than the last; sell on the first close above the 5 SMA.

Breakout 11

  • Donchian / Turtle FreeThe Turtle rule: buy on a close above the highest high of the last 20 bars, sell on a close below the lowest low of the last 10.
  • Keltner breakoutBuy when price closes above the upper Keltner channel (EMA + ATR); exit when it closes back below the middle EMA.
  • Inside bar breakoutAfter an inside bar (range inside the bar before it), buy a close above the mother bar's high; sell a close below its low.
  • NR7 breakoutNR7 is the narrowest range of the last 7 bars — a quiet spell. Buy the next close above its high; exit after N bars or below its low.
  • Gap and goBuy when a bar opens a set percent above the previous close and closes higher than it opened; exit on the first red bar.
  • Opening range breakoutThe first N bars of each trading day set a range. Buy a close above its high, short a close below its low; every trade closes at the start of the next day.
  • Previous day high / lowBuy when price closes above the previous session's high; sell (or short) when it closes below the previous session's low.
  • Pivot R1 / S1 breakoutBuy when price closes above the previous session's R1 pivot; exit when it falls back to the central pivot. The mirror rule shorts a break of S1.
  • Bollinger band breakoutTreats a close outside the bands as strength, not stretch: buy a close above the upper band, exit on a close back below the middle band.
  • Fractal breakoutA fractal is a swing high or low with lower highs (or higher lows) on both sides. Buy a close above the latest up-fractal; sell a close below the latest down-fractal.
  • Consolidation box breakoutWhen the last N bars fit in a tight box (high − low under a few ATRs), buy a close above the box; exit on a close below the N-bar EMA.

Volatility 9

  • Bollinger squeezeWhen the bands get unusually narrow (a squeeze), buy a close above the upper band; exit below the middle band.
  • ATR trailing stopEnter on a close above the 20 EMA; a stop trails N × ATR below the highest close and exits the trade when hit.
  • Chandelier exitLong stop hangs N × ATR below the highest high; short stop above the lowest low. Buy when price clears the short stop, sell when it breaks the long stop.
  • ATR range expansionBuy a green bar whose range is more than N × ATR (a burst of buying); exit when price closes below the bar's midpoint.
  • Squeeze momentumA squeeze is when the Bollinger Bands sit inside the Keltner Channel. When it releases, trade in the direction of momentum; exit when momentum starts to fade.
  • Volatility breakoutA Larry Williams–style rule: buy when the close jumps more than N × ATR above the previous close; sell when it drops more than N × ATR below it.
  • Sigma spike fadeMeasures each bar's change in standard deviations of recent changes. After an unusually large drop (beyond −N σ), buy for a rebound and exit after a set number of bars.
  • EMA cross + chop filterAn EMA crossover that only enters when the Choppiness Index says the market is trending (below the threshold); exits on the cross back.
  • Williams VIX FixA home-made fear gauge: how far the low is below the recent highest close. Buy when a fear spike (above its upper band) ends; exit after a set number of bars.

Volume 15

  • OBV trendOn-balance volume adds volume on up bars and subtracts it on down bars. Buy when OBV crosses above its 20 EMA, sell below.
  • Money Flow IndexA volume-weighted RSI. Buy when MFI rises back above 20, sell when it falls back below 80.
  • Volume breakoutBuy a close at a new 20-bar high on volume at least N × its 20-bar average; exit on a close below the 10 EMA.
  • VWAP trendUses VWAP as the day's fair price: long while price is above VWAP, out (or short) when it closes below.
  • Chaikin Money FlowCMF weighs volume by where each bar closes in its range. Buy when it rises above +threshold (buying pressure), sell when it falls below −threshold.
  • Accumulation / DistributionThe A/D line adds volume when bars close near their highs and subtracts it near their lows. Buy when it crosses above its EMA, sell when it crosses below.
  • Chaikin oscillatorThe 3-bar minus 10-bar EMA of the A/D line — momentum of money flow. Buy when it crosses above zero, sell when it crosses below.
  • OBV breakoutBuy when on-balance volume makes a new N-bar high while price is above its EMA (volume leading price); exit when OBV drops below its own EMA.
  • VWMA vs SMAWhen the volume-weighted average rises above the plain average, heavier volume is coming in on higher prices. Buy on that cross, sell on the reverse.
  • Elder Force IndexForce = price change × volume, smoothed with an EMA. Buy when it crosses above zero, sell when it crosses below.
  • Ease of MovementShows how easily price moves for the volume traded. Buy when it crosses above zero (rising on light volume), sell when it crosses below.
  • Price volume trendLike OBV but adds volume in proportion to each bar's percent change. Buy when PVT crosses above its EMA, sell when it crosses below.
  • Negative Volume IndexNVI only changes on quieter-volume bars, where steadier money is said to move. Buy when it rises above its long EMA, sell when it falls below.
  • Klinger oscillatorCompares volume flowing in on up bars with volume on down bars over a fast and slow window. Buy when it crosses above its signal line, sell below.
  • Momentum + volumeBuy a green bar when N-bar momentum is positive and volume is at least M × its average (the move has participation); exit when momentum turns negative.

Patterns 9

  • Engulfing candles FreeBuy after a bullish engulfing candle (a green body that swallows the prior red one); sell after a bearish engulfing.
  • Three soldiers / crowsBuy after three green candles, each closing higher (three white soldiers); sell after three falling red ones (three black crows).
  • Hammer / shooting starBuy after a hammer (long lower wick, small body near the top) below the 20 SMA; sell after a shooting star above it.
  • Piercing line / dark cloudBuy after a piercing line (a green bar that closes above the middle of the prior red body); sell after a dark cloud cover (the mirror).
  • Morning / evening starThree bars: a large red candle, a small-bodied pause, then a green candle closing past the first bar's midpoint (morning star, buy). The evening star mirror sells.
  • HaramiA small candle whose body sits inside the prior large body, in the opposite colour — a pause in the move. Buy a bullish harami, sell a bearish one.
  • Outside bar reversalAn outside bar has a higher high and a lower low than the bar before. Buy when it closes green above the prior close; sell when it closes red below it.
  • Tweezer bottom / topTwo bars with almost the same low (within a fraction of ATR), red then green: a tweezer bottom, buy. The same at the highs, green then red, is a tweezer top: sell.
  • Three inside up / downA harami confirmed by a third bar: red bar, small green bar inside it, then a close above the first bar's open (buy). The mirror, three inside down, sells.
Pine Script

Write a script on your phone and see it on the chart.

A practical subset of Pine Script v5 runs right in the app. This is the library's EMA crossover:

//@version=5
strategy("EMA Crossover", overlay=true)
fastLen = input.int(9, "Fast EMA", minval=2, maxval=100)
slowLen = input.int(21, "Slow EMA", minval=3, maxval=300)
fast = ta.ema(close, fastLen)
slow = ta.ema(close, slowLen)
plot(fast, "Fast EMA", color=color.blue)
plot(slow, "Slow EMA", color=color.orange)
if ta.crossover(fast, slow)
    strategy.entry("Long", strategy.long)
if ta.crossunder(fast, slow)
    strategy.close("Long")

Supported: inputs, var and :=, if/else, for loops, history like close[1], 30+ ta.* functions, plot, hline, plotshape and strategy.entry / close / exit. Read the Pine Script guide.

15 ready-made scripts

  • EMA Crossover strategyGoes long when the fast EMA crosses above the slow EMA, and exits on the cross back down.
  • RSI Reversal strategyBuys when RSI climbs back above the oversold line and sells when it drops below overbought.
  • MACD Signal Cross strategyTrades the MACD line crossing its signal line, long and short.
  • Bollinger Mean Reversion strategyBuys a close below the lower band and exits when price returns to the middle band.
  • Supertrend Flip strategyFollows the Supertrend: long while it sits under price, short while it sits above.
  • Donchian Breakout strategyBuys a new N-bar high and exits on a new shorter-period low — the classic turtle idea.
  • Golden Cross strategyThe 50/200 SMA cross that long-term investors watch. Holds until the death cross.
  • ATR Trailing Stop strategyEnters above the 20 EMA and protects the trade with a stop that trails price by a multiple of ATR.
  • VWAP with Bands indicatorVolume-weighted average price for each day, with a one standard-deviation envelope.
  • Stochastic %K %D indicatorWhere the close sits inside the recent high-low range, with a smoothed signal line.
  • Momentum (ROC) indicatorRate of change over N bars — positive means price is higher than it was N bars ago.
  • Volume Spike Finder indicatorMarks bars whose volume is far above its recent average — often where news or big orders hit.
  • CCI Zones indicatorCommodity Channel Index with the ±100 zones that mark unusually strong moves.
  • Pivot Highs & Lows indicatorLabels swing highs and lows — bars that are the extreme of the bars on both sides.
  • ADX Trend Filter strategyOnly takes DI crossovers when ADX says a trend is actually present.
Reading a backtest

What each number on the backtest card means

Net return vs buy & hold

What the strategy made on this chart's bars after 0.1% fees per side, next to simply holding the stock.

Win rate

The share of closed trades that made money. A low win rate can still be fine if the wins are big.

Profit factor

Money won ÷ money lost. Above 1 means the wins outweighed the losses on this test.

Max drawdown

The deepest fall from a high point of the equity curve: how painful the strategy was to hold.

Average trade

The mean return per trade, after fees. Small numbers here are easily erased by real-world costs.

Time in market

How much of the period the strategy held a position. Less time in the market means less exposure.

Every strategy here is a white box: its rules are visible and every signal is drawn. Black box vs white box AI trading, explained →

A backtest shows how a rule behaved on past bars of one stock. It does not predict future moves. Use it to learn how strategies behave, never as a buy or sell signal.

Pro Chart lives in the StockYatra app.

Open the side menu and tap Pro Chart. It works on NEPSE, NSE and US stocks, from 1-minute to daily bars.

  • 113 strategies with live settings and a shorts switch
  • Your own no-code builds and Pine scripts, saved on your phone
  • See how you trade yourself in My Analysis: score, equity curve and habits
Questions

Pro Chart FAQ

Is Pro Chart free?

You can start free: 10 classic strategies (marked Free below), one no-code build and one Pine script, with full backtests. StockYatra Pro (Rs 199 a month or Rs 1,499 a year) unlocks all 113 strategies, unlimited builds and scripts, Auto-tune and risk rules. Trading is always on virtual coins.

Where do I find it?

Open the StockYatra app, open the side menu and tap Pro Chart. Pick a stock and a time frame, then a strategy, a build of your own or a Pine script.

Which prices are the backtests run on?

On the bars of the chart you are looking at: StockYatra's practice-market prices, a simulation that moves around each stock's real-world level. They are for learning and are not official exchange quotes.

Does a good backtest mean the strategy will make money?

No. A backtest shows how a rule would have behaved on past bars of one stock. Markets change, real trading has costs and slippage, and a rule tuned to the past often fails later. Use it to understand ideas, not as a signal.

How much Pine Script does it support?

A practical subset of Pine Script v5: inputs, variables with var and :=, if/else, for loops, history like close[1], 30+ ta.* functions (sma, ema, rsi, macd, bb, atr, supertrend, stoch, vwap, crossover and more), plot, hline, plotshape and strategy.entry / close / exit. Errors are shown by line number.

Is this investment advice?

No. StockYatra is an education app, not a broker or adviser. Strategies and scripts are teaching tools; nothing on this page is a recommendation to buy or sell any security.

More: the strategy guide · build your own · My Analysis · black box AI, explained · algo trading · learn algo trading · changelog