TradingCharts
Creator

Riken Mehta

RIKE70Joined 13 Nov 2026

  • 4Chart Ideas
  • 5Scripts

9 Posts by Riken Mehta

CandleTools

Candle anatomy and simple two-bar pattern helpers for your own scripts. Each function works on every bar and returns a number or true/false. bodyPct(): candle body as a percentage of the full high-low range. upperWickPct() and lowerWickPct(): wick size as a percentage of the range. bullEngulf() and bearEngulf(): true when the candle fully engulfs the previous one in that direction. insideBar(): true when the bar's range sits inside the previous bar's range. How to use: import g_T9PHE3Z1/CandleTools/1 as ct body = ct.bodyPct() bull = ct.bullEngulf() inside = ct.insideBar() Call each function once per bar at the top level of your script (not inside if or for). Check the candle rules against your own definition before trading on them.

Library
Open source

TAPlusCore

Extra building blocks for your own scripts: Double EMA, Triple EMA, Stochastic RSI, Donchian Channel and Z-score. Each function works on every bar and returns plain values (or a small list of values), so you can plot them or use them in a strategy. How to use: import g_T9PHE3Z1/TAPlus/1 as tp fast = tp.dema(close, 20) slow = tp.tema(close, 50) [k, d] = tp.stochRsi(close, 14, 14, 3, 3) [upper, lower, mid] = tp.donchian(20) z = tp.zscore(close, 20) Call each function once per bar at the top level of your script (not inside if or for). Values were checked against hand-written versions of the same formulas.

Library
Open source

COFORGE: cup and handle on the daily, rim around 2,115

Been watching Coforge for a few weeks now and the daily chart is shaping up like a textbook cup and handle. The left rim is the early Sept high near 2,014. It…

IdeaCOFORGE · D
Views19

PriceStats

Simple price-statistics helpers for trend, volatility and position in range. Each function works on every bar and returns one number. normalize(src, len): where src sits in its len-bar low-high range, scaled 0 to 100. atrPct(len): ATR as a percentage of close, so volatility can be compared across stocks. trendEfficiency(src, len): net move divided by total path travelled, from 0 (choppy) to 1 (clean trend). rangePos(len): where the close sits inside the len-bar high-low range, 0 to 100. How to use: import g_T9PHE3Z1/PriceStats/2 as ps eff = ps.trendEfficiency(close, 20) vol = ps.atrPct(14) pos = ps.rangePos(50) Call each function once per bar at the top level of your script (not inside if or for). Values were checked against hand-written versions of the same formulas.

Library
Open source

Volatility Regime Meter

This indicator shows how volatile a stock is right now compared with its own recent history. It ranks ATR as a percentage of price on a 0–100 scale over the last 120 bars. Each bar is labelled Compressed (20 or below), Normal, or Expanded (80 or above). When a compression of at least 5 bars ends, it prints a triangle: green if price is above EMA 20, red if below. A small table shows the current regime, ATR % and percentile. It has alerts for the release signals and for expansion. It does not predict direction on its own, so pair it with a trend or breakout tool.

Indicator
Protected

RSI-2 Trend Pullback

This strategy buys sharp short-term dips inside a long-term uptrend. It enters when price is above the 200 SMA and RSI(2) falls below 10. It exits on a bounce, either price closing back above the 5 SMA or RSI(2) recovering above 70. It also has a time stop and a wide ATR stop. It suits daily charts of liquid stocks and indices. It is long-only by default, and mirrored shorts are optional.

Strategy
Protected