Technical Indicator Calculator: RSI, MACD & ATR
Indicator values worked out from your own price file, with the formulas.
Try before you buy.
- Free preview: the latest value of your first indicator in full, with the first rows of each table (up to 3) and a watermarked chart; every other figure is hidden.
- Locked until you unlock it: download and copy.
- Unlock: Premium pass, ₹799 for 30 days, a one-time payment that never renews.
Ways to unlock shows how to get the full result.
Printing this result is locked in the free preview.
Your price file
Indicators
Tick the ones you want; every setting is yours. Levels of your own are drawn and counted, never read for you.
-
The average close of the last n bars.
-
An average that weights recent closes more, by 2 ÷ (n + 1).
-
An average with weights 1, 2 … n, the latest close weighted n.
-
Average gains against average losses, on a scale of 0 to 100.
-
The gap between a fast and a slow EMA, with an EMA of that gap.
-
An SMA with bands k standard deviations above and below it.
-
The average size of a bar’s full range, gaps included, in price units.
-
Where the close sits in the range of the last n bars, from 0 to 100.
-
The average price weighted by volume, from the start of each day or from a bar you pick.
StartFrom the first bar on or after this date. -
A running total of volume, added on up closes and taken off on down closes.
-
+DI and −DI compare up and down moves; ADX averages their difference.
-
The highest high and lowest low of the n bars before each bar.
-
How far the typical price is from its average, in units of mean deviation.
-
Where the close sits below the highest high of the last n bars, from 0 to −100.
Charts
Every value per bar
How this was calculated
Locked in the free preview. Opens the ways to unlock this result.
Locked in the free preview. Batch runs unlock with a pass.
Locked in the free preview. Query results unlock with a pass.
For education only, not investment advice: no tool here tells you what to buy, sell or hold. Results use only the figures you enter, the files you load (read in your browser, never uploaded) and the published rules each page names. Check them against your broker's or exchange's own figures, and consider a licensed or registered adviser for advice on your situation.
About the Technical Indicator Calculator: RSI, MACD & ATR
Load a price file you exported — a CSV or Excel file of dates with opens, highs, lows, closes and volumes, from your broker, exchange or charting app — and pick the indicators you want: moving averages (SMA, EMA and WMA, several periods at once), RSI, MACD, Bollinger Bands, ATR, the stochastic oscillator, VWAP, OBV, ADX with +DI and −DI, Donchian channels, CCI and Williams %R. Every parameter is yours, and every value is worked out bar by bar with the published formula, shown under the result.
You get the latest value of each indicator, a chart of the prices with the overlays and a pane for each oscillator, a table of every value per bar, and a CSV of the lot. Add your own levels — for example 70 and 30 on the RSI — and the tool draws them as lines marked “your level” and counts the bars on each side of them.
It works for shares, indices, futures, currency pairs and coins in any market, daily or intraday: dates, decimal commas and time zones are read as your file writes them, and a mapping panel lets you check every column. The file is read in your browser and never uploaded. The tool describes your prices; it labels no level as a signal and says nothing about where a price will go.
How to use it
- From your broker, exchange or charting app, export the prices of one instrument as a CSV or Excel file (date, open, high, low, close and volume), and choose it here — or try the sample file of the fictional DEMO share.
- Check the columns panel: the date, open, high, low, close and volume columns, the decimal mark, the date order and the time zone.
- Tick the indicators you want and set their parameters; add your own levels where you want the bars on each side of a value counted.
- Read the latest values, the charts and the table; choose which indicator leads the result and how many bars the charts show.
- Copy the summary or download every value per bar as a CSV — with a pass, or after unlocking this result.
Examples
Closes round(100 + 10·sin(t/3) + 0.2t, 4) for t = 0…39; opens the previous close; highs and lows one point either side; volume 1,000 + 10t
SMA(5) 105.3393 · EMA(5) 106.6328 · RSI(14) 64.05 · ATR(14) 4.2466
MACD(12, 26, 9) and Bollinger(20, 2), last bar
MACD 0.7196, signal 0.4287, histogram 0.2909 · bands 93.6242 / 106.1282 / 118.6322
Stochastic(14, 1, 3); VWAP over all 40 bars as one session; OBV
%K 85.10, %D 65.68 · VWAP 103.9236 · OBV 3,780
RSI(14) with your levels 70 and 30
The RSI has a value on 26 bars; the tool counts how many were above and below each of your levels, and draws both as “your level” lines
Common uses
- Check the RSI, MACD or ATR your charting app shows against the published formula, on your own prices.
- Work out ATR or Bollinger Bands for an instrument your platform does not chart, from a file you exported.
- Count how often an oscillator sat above or below a level you set, over the history in your file.
- Get every indicator value per bar into a spreadsheet as a CSV.
The formulas
- SMA = the average of the last n closes. EMA uses the multiplier 2 ÷ (n + 1) and starts from the SMA of the first n closes; WMA weights the closes 1, 2 … n, the latest n (moving averages).
- RSI (J. Welles Wilder, New Concepts in Technical Trading Systems) = 100 − 100 ÷ (1 + RS), RS = average gain ÷ average loss over n changes; the first averages are simple averages of the first n changes, then ((n − 1) × previous + current) ÷ n. With no losses RSI is 100; with no change at all, 50 (RSI).
- ATR: the true range is the largest of high − low, |high − previous close| and |low − previous close| (high − low on the first bar); the first ATR is the mean of n true ranges, then Wilder’s smoothing (ATR).
- MACD = EMA(fast) − EMA(slow); the signal line is an EMA of the MACD line; the histogram is MACD − signal (MACD).
- Bollinger Bands = SMA(n) ± k × the standard deviation of the same n closes, the population formula (divided by n) (Bollinger Bands, standard deviation).
- Stochastic: %K = 100 × (close − lowest low) ÷ (highest high − lowest low) over n bars, smoothed by an SMA (1 = none, 3 = the slow stochastic); %D = an SMA of %K (stochastic oscillator).
- VWAP = Σ(typical price × volume) ÷ Σ volume, typical price = (high + low + close) ÷ 3, from the first bar of each day or from the bar you anchor it to (VWAP).
- OBV adds the volume on an up close, subtracts it on a down close and keeps it on an unchanged close (OBV).
- ADX (Wilder): +DM and −DM from each bar’s move against the one before, smoothed over n bars with the true range into +DI and −DI; DX = 100 × |+DI − −DI| ÷ (+DI + −DI); ADX is Wilder’s average of DX (ADX).
- Donchian channels: the highest high and the lowest low of the n bars before each bar, and their midpoint (price channels).
- CCI = (typical price − its n-bar SMA) ÷ (0.015 × the mean deviation) (CCI); Williams %R = −100 × (highest high − close) ÷ (highest high − lowest low) (Williams %R).
Reading the results
- The latest value is the indicator at the last bar of your file that has one. The first bars of every indicator are empty while it warms up: an RSI(14) needs 15 bars, MACD(12, 26, 9) 34, ADX(14) 28.
- Values that start from an average (EMA, RSI, ATR, ADX) depend a little on where the file starts, so a longer file gives values closer to those of a platform that has more history — StockCharts, for one, works out its RSI from at least 250 bars before the first date it charts.
- Your levels are yours: the tool counts the bars above and below each one and draws it as a line marked “your level”. It never labels a value as a signal.
What it leaves out
Anything that is not in your file: other instruments, prices before its first row, dividends or splits that are not in the prices (use adjusted closes if your platform exports them), and gaps it does not fill. It draws no conclusion from any value: what an indicator means for a decision is for you to judge.
Limitations
- One instrument per file; up to 50,000 rows.
- VWAP and OBV need a volume column; ATR, the stochastic oscillator, ADX, Donchian channels, CCI and Williams %R need highs and lows.
- Values that start from an average differ slightly from a platform with a longer history of the same instrument.
- It uses no market data: it reads the file you load and nothing else.
Privacy
Everything happens in your browser. What you enter or open here is not uploaded or stored by MySmartCoPilot.
Frequently asked questions
What do I get without a pass?
Without a pass, Technical Indicator Calculator: RSI, MACD & ATR shows the latest value of your first indicator in full, with the first rows of each table (up to 3) and a watermarked chart; every other figure is hidden. Until you unlock it, the result can’t be downloaded or copied. A Premium or Ultimate pass, a one-time payment that never renews, unlocks the full result. The pricing page lists the passes and their prices.
Which files can I load?
Any CSV or Excel file with a header row and a date and close column — open, high, low and volume too for the indicators that need them — including the MetaTrader 5 bars export and MetaTrader 4 history files. Commas or semicolons, decimal points or commas and dates in any order are read; the columns panel shows what was read and lets you change it.
Why is my RSI a little different from my platform’s?
Wilder’s RSI starts from the average gain and loss of its first 14 changes and then smooths, so its value depends slightly on where the price history begins. A platform with years of history and a file that starts last month give slightly different values that come closer as the file gets longer. Some platforms also use a simple instead of Wilder’s average: this tool uses Wilder’s, as published.
What are “your levels”?
Numbers you type for an indicator, such as 70 and 30 for the RSI. They are drawn as lines marked “your level”, and the tool counts the bars above and below each one, for example “RSI(14) was above your 70 on 12 of 250 bars”. It does not suggest levels and gives no reading of them.
Can I use intraday, forex or crypto files?
Yes. Times of day are read in the file’s time zone (you can set it in the columns panel), and the daily VWAP restarts at the first bar of each day in that zone. Currency pairs and coins keep the decimals they are written with.
Why are the first values empty?
Each indicator needs a number of bars before its first value: a 20-bar SMA has none for the first 19 bars, MACD(12, 26, 9) has its signal line from the 34th bar. The tool leaves those bars empty instead of guessing.
Is my file uploaded?
No. It is read in your browser and nothing is sent to our server.
Does it say when to trade?
No. It works out the indicator values of your own prices with published formulas and counts bars around the levels you choose. Every decision is yours.