Skip to content
TotalFinance

Chart technical indicators

Overlay moving averages or Bollinger Bands and add RSI or MACD on your own price data, with honest warmup.

Run it

Live, in your browser. Nothing leaves this page.

Local

Daily OHLC bars, oldest first. Paste or upload CSV/TSV with date, open, high, low, close (volume optional).

Synthetic uptrend with pullbacks (seed 7, not market data)

250 bars · 2025-01-02 → 2025-12-17

Synthetic
Preview rows
dateopenhighlowclosevolume
2025-01-02100.83101.2699.82100.04894440
2025-01-03100.32100.6598.799.291908571
2025-01-0699.65101.0999.2100.762282565
… 245 more rows …
2025-12-16135.29137.27134.61136.231345301
2025-12-17135.54135.95133.05133.921105532
20

bars · integer

2

standard deviations

14

bars · integer

Change any input; everything updates.

Last close
133.92
2025-12-17
Bollinger middle (SMA 20)
145.85
warmup: 19 bars
Band width
0.17628
(upper − lower) ÷ middle
RSI 14
32.3285
0–100 · warmup: 14 bars
Bollinger Bands and RSISynthetic uptrend with pullbacks (seed 7, not market data). Gaps at the start of each indicator are warmup, not zeros.
  • Up bar (hollow)
  • Down bar (filled)
  • Bollinger middle (SMA 20)
  • 2σ band
RSI 142025-01-022025-03-312025-06-252025-09-192025-12-16
Show data (250 rows)
DateOpenHighLowCloseBollinger middle (SMA 20)2σ band upper2σ band lowerRSI 14: RSI 14
2025-01-02100.83101.2699.82100.04Not definedNot definedNot definedNot defined
2025-01-03100.32100.6598.799.29Not definedNot definedNot definedNot defined
2025-01-0699.65101.0999.2100.76Not definedNot definedNot definedNot defined
2025-01-07100.52102.65100.49101.93Not definedNot definedNot definedNot defined
2025-01-08102.33102.91101.22102.36Not definedNot definedNot definedNot defined
2025-01-09102.08104.2101.84104.13Not definedNot definedNot definedNot defined
2025-01-10104.37104.99103.92104.89Not definedNot definedNot definedNot defined
2025-01-13104.94106.64104.94106.28Not definedNot definedNot definedNot defined
2025-01-14106.04107.63105.64107.36Not definedNot definedNot definedNot defined
2025-01-15107.4111.72107.39111.46Not definedNot definedNot definedNot defined
2025-01-16111.73114.08111.3113.75Not definedNot definedNot definedNot defined
2025-01-17113.39114.11111.23111.83Not definedNot definedNot definedNot defined
2025-01-20111.8112.96110.32111.56Not definedNot definedNot definedNot defined
2025-01-21111.16111.9111.16111.68Not definedNot definedNot definedNot defined
2025-01-22112.18112.94110.94112.05Not definedNot definedNot defined83.5662
2025-01-23111.99112.4111.09111.3Not definedNot definedNot defined79.9564
2025-01-24111.29112.1110.57111.82Not definedNot definedNot defined80.5827
2025-01-27112.02114.12111.44113.75Not definedNot definedNot defined82.7385
2025-01-28114.11114.68112.75113.09Not definedNot definedNot defined79.4884
2025-01-29112.87114.11112.47114.06108.17118.28198.057780.689
2025-01-30114.03114.31113.28113.61108.848118.49799.198778.3964
2025-01-31113.08113.83112.64113.32109.55118.317100.78276.8804
2025-02-03113.12113.79111.92112.99110.161118.053102.26975.1007
2025-02-04112.82113.08111.49111.93110.661117.616103.70669.5326
2025-02-05111.87112.39111.61111.61111.123116.947105.367.8961
2025-02-06112.23112.49111.43111.67111.5116.36106.64168.0479
2025-02-07111.73111.86109.41109.64111.738115.655107.82158.0443
2025-02-10109.23110.7109.2110.12111.93115.055108.80559.5582
2025-02-11110.09110.22108.54109.77112.05114.592109.50957.9171
2025-02-12110.11110.52108.46108.55111.905114.864108.94652.4881
2025-02-13108.71112.23108.3111.89111.812114.648108.97662.7757
2025-02-14111.26113.37111.15112.64111.853114.711108.99464.6279
2025-02-17112.5113.78112.07113.31111.94114.864109.01666.2437
2025-02-18113.2113.35111.44111.74111.943114.866109.0259.3966
2025-02-19111.63112.14110.71111.7111.926114.85109.00159.2286
2025-02-20111.5113.9110.85112.99112.01114.955109.06562.875
2025-02-21113.06113.44110.77112.19112.029114.973109.08459.3311
2025-02-24112.25113.76112.06113.08111.995114.875109.11561.9037
2025-02-25112.96115.68112.52114.64112.073115.143109.00265.9673
2025-02-26113.96114.14113.73113.97112.068115.127109.00962.8658
2025-02-27113.72114.05113.16113.48112.062115.108109.01560.6209
2025-02-28113.46114.13113.14113.66112.078115.15710961.1695
2025-03-03113.37113.75111.96113.1112.084115.169108.99958.442
2025-03-04113.04114.53109.25112.07112.091115.175109.00753.6992
2025-03-05112.03112.65110.88111.2112.071115.173108.96850.0077
2025-03-06110.57111.6110.25111.51112.063115.17108.95551.2926
2025-03-07111.47112.64111.17112.37112.199115.102109.29654.7659
2025-03-10112.84112.87109.43109.69112.178115.147109.20844.1904
2025-03-11109.62110.89108.79110.04112.191115.119109.26345.666
2025-03-12109.92110.77109.72110.75112.301114.808109.79448.6331
2025-03-13110.53111.82110.43110.7112.242114.84109.64348.4325
2025-03-14110.43111.34110.08111.15112.167114.801109.53350.4147
2025-03-17111.25113.28111.02112.95112.149114.756109.54257.4587
2025-03-18112.8113.34112.46113.08112.216114.846109.58657.9236
2025-03-19113.14113.5112.29113.09112.286114.931109.6457.9617
2025-03-20113.12113.81111.21111.82112.227114.859109.59551.5809
2025-03-21112.21113.56111.37113.2112.277114.943109.61257.1065
2025-03-24112.87117.09112.59116.23112.435115.598109.27266.2215
2025-03-25116.53116.86114.08114.21112.414115.521109.30657.4557
2025-03-26114.49114.57113.39113.67112.398115.479109.31855.3466
2025-03-27113.81116.35113.77115.86112.518115.923109.11261.5166
2025-03-28116.18116.48115.14115.19112.594116.163109.02558.838
2025-03-31114.93115.81114.81115.63112.72116.524108.91760.0677
2025-04-01115.14116.97113.4116.45112.94117.059108.8262.3265
2025-04-02116.22116.63114.91115.14113.137117.282108.99156.7989
2025-04-03114.76117.39113.38115.74113.348117.57109.12658.6095
2025-04-04115.95116.05115.39115.43113.501117.792109.2157.2739
2025-04-07114.88118.44114.66117.74113.904118.199109.60863.8795
2025-04-08118.14119.33118.13118.76114.34118.747109.93266.3531
2025-04-09119.15121.04117.97120.29114.817119.614110.01969.7046
2025-04-10120.21126.36119.58125.17115.54121.783109.29777.4275
2025-04-11124.95125.63122.92123.69116.167123.01109.32471.4764
2025-04-14123.64125.46123.18124.6116.75124.341109.15872.8578
2025-04-15124.98127.19124.97126.8117.436125.994108.87775.8969
2025-04-16127.11130.4126.86130.29118.296128.274108.31779.7672
2025-04-17129.92133.24129.6133.01119.355130.757107.95382.1701
2025-04-18133.05133.27132.17132.3120.31132.65107.9779.5154
2025-04-21132.38132.52130.17130.33121.015133.94108.0972.515
2025-04-22130.32131.15128.04128.46121.728134.644108.81166.5277
2025-04-23128.37133.3127.58132.66122.677135.874109.4872.0997
2025-04-24132.9133.75128.12129.1123.339136.429110.24962.5891
2025-04-25129.49129.57124.25124.64123.811136.362111.26153.1331
2025-04-28124.05125.51120.73120.94124.077136.139112.01546.8143
2025-04-29121.93124.66120.24123.6124.434135.984112.88551.2984
2025-04-30124.27127.17122.1124.89124.922135.656114.18853.3525
2025-05-01124.77124.9121.13122.15125.242135.216115.26948.6582
2025-05-02121.82122.75119.75120.9125.516134.664116.36846.642
2025-05-05121.01123.88118.83122.63125.761134.306117.21549.7456
2025-05-06122.18123.81121.04123.45125.995134117.9951.1947
2025-05-07123.28124.12118.95120.02125.982134.025117.93845.3094
2025-05-08120.52121.48116.28117.42125.594134.461116.72741.4222
2025-05-09117.77118.43116.09116.72125.245134.898115.59340.4168
2025-05-12116.59118.71113.65115.82124.807135.299114.31439.1027
2025-05-13114.98117.97114.28115.92124.263135.393113.13239.3387
2025-05-14116.56117.11112.75112.92123.394135.198111.5934.9613
2025-05-15112.84115.55109.99110.96122.292134.412110.17132.4229
2025-05-16110.93113.21110.36112.63121.308133.211109.40536.6438
2025-05-19112.32112.41110.08110.47120.315132.354108.27633.7109
2025-05-20110.94111.72109.93111.7119.477131.465107.48936.8124
2025-05-21111.76111.88111.49111.82118.435129.221107.64937.1215
2025-05-22111.28111.6109.91110.14117.487127.673107.30134.5718
2025-05-23110.04112.46110.01112.3116.87126.738107.00240.2539
2025-05-26111.72115.77111.62114.68116.557126.285106.82945.8355
2025-05-27115.7115.82111.16113.1116.032125.306106.75842.9658
2025-05-28112.44116.08109.99113.86115.481123.849107.11244.7575
2025-05-29113.84114.96112.11112.67115.007122.869107.14442.5059
2025-05-30112.7113.58112.37113.15114.619122.033107.20543.7354
2025-06-02112.77115.03112.76114.88114.232120.677107.78648.0477
2025-06-03114.54115.05113.85114.69113.794118.674108.91347.616
2025-06-04114.44114.93113.13113.89113.487117.448109.52645.7523
2025-06-05114.1114.59113.92114.36113.334116.892109.77647.0633
2025-06-06114.06115.32113.49115.09113.253116.562109.94349.1199
2025-06-09114.81116.87114.67116.86113.305116.801109.80853.806
2025-06-10116.2116.29115.3115.71113.294116.76109.82850.5485
2025-06-11115.01117.31114.65116.99113.497117.312109.68353.8944
2025-06-12116.51118.86116.35118.38113.869118.05109.68757.275
2025-06-13118.63118.78117.64117.86114.13118.612109.64855.6316
2025-06-16118.08120.83117.54119.89114.601119.413109.78960.4076
2025-06-17119.4120.47118.9119.92115.012120.156109.86860.4753
2025-06-18119.82119.9118.33118.6115.351120.502110.255.9418
2025-06-19118.78120.5118.6120.12115.85120.816110.88459.6892
2025-06-20119.86120.23117.44117.56116.113120.851111.37551.7116
2025-06-23117.63118117.47117.72116.265121.004111.52652.1422
2025-06-24116.99117.82116.34117.49116.484121.019111.9551.4323
2025-06-25117.23118.39117.18118.13116.698121.119112.27753.336
2025-06-26118.12120.38117.99120.13117.071121.325112.81758.7743
2025-06-27120.51120.85117.72117.9117.309121.173113.44451.5592
2025-06-30117.73119.99117.25119.24117.527121.31113.74355.1241
2025-07-01119.63119.65118.88119.08117.746121.35114.14254.6074
2025-07-02119.09122.68118.73122.47118.175121.882114.46862.6061
2025-07-03122.64122.82121.65122.59118.587122.336114.83762.8556
2025-07-04122.6126.74122.42126.72119.168124.015114.32170.2204
2025-07-07126.38127.27124.32125.67119.609125.095114.12266.6047
2025-07-08125.76127.22125.57127.22120.184126.293114.07569.1315
2025-07-09127.31127.63125.37126.09120.639127.076114.20265.255
2025-07-10125.64126.08124.05124.77120.959127.548114.36960.9552
2025-07-11125.66126.61125.38126.43121.387128.224114.5564.1541
2025-07-14126.53129.05126.42128.24121.805129.22114.38967.2999
2025-07-15127.87131.36127.74130.01122.309130.478114.1470.0665
2025-07-16130.16130.46128.23128.72122.815131.252114.37865.7035
2025-07-17129.4129.45127.9128.57123.238131.934114.54165.1952
2025-07-18128.86129.25126.21126.64123.691132.099115.28458.8825
2025-07-21126.23126.74124.3125.5124.081132.055116.10655.4661
2025-07-22125.52126.99124.5124.72124.442131.822117.06253.1921
2025-07-23124.19127.19123.99126.09124.84131.653118.02756.5608
2025-07-24126.8127.46126.01126.64125.166131.662118.66957.8716
2025-07-25126.62127.08125.86126.12125.577131.158119.99556.1465
2025-07-28126.05126.24124.35125.06125.867130.646121.08952.6981
2025-07-29125.13125.36124.04124.48126.138129.84122.43550.8574
2025-07-30124.61127.12124.22126.18126.323129.622123.02455.7374
2025-07-31126.53127.44124.46125.17126.452129.332123.57252.4076
2025-08-01125.11125.86125.04125.45126.389129.298123.47953.2416
2025-08-04124.93125.14123.8124.31126.321129.355123.28649.4429
2025-08-05124.22125.72124.11125.6126.239129.26123.21953.487
2025-08-06125.35125.6124.54125.05126.188129.252123.12351.5921
2025-08-07125.21127.68125.13127.48126.323129.365123.28158.575
2025-08-08127.73128.73125.93126.42126.323129.364123.28154.8576
2025-08-11125.84127.36125.4127.34126.278129.23123.32557.3854
2025-08-12126.86127.36126.65127.07126.131128.573123.68856.3875
2025-08-13126.8130.23126.4130.21126.205129.021123.38964.1875
2025-08-14130.69131.56129.93130.33126.293129.485123.10164.4491
2025-08-15131.01131.07129.34129.79126.45129.987122.91462.245
2025-08-18129.75130.85129.58130.53126.702130.627122.77764.059
2025-08-19130.96131.59130.67131.41127.037131.35122.72366.1423
2025-08-20130.82132.73130.66132.47127.355132.246122.46568.5101
2025-08-21131.65131.89130.78131.04127.575132.708122.44362.1914
2025-08-22130.59133.68129.9133.15127.927133.552122.30267.0242
2025-08-25133.08134.56132.61134.37128.392134.51122.27569.4553
2025-08-26134.57136.5134.5136.15128.976135.687122.26572.6262
2025-08-27136.55138.92135.75138.03129.569137.215121.92275.5172
2025-08-28137.82138.96137.29137.71130.196138.337122.05474.083
2025-08-29137.28142.14137.21141.99131.023140.343121.70279.6498
2025-09-01142.28143.28142.25142.76131.945142.045121.84580.4628
2025-09-02142.71143.08142.09142.44132.787143.424122.1579.0493
2025-09-03142.36142.81141.42141.9133.63144.351122.90876.6038
2025-09-04141.44141.46140.21140.33134.272144.982123.56269.839
2025-09-05140.34143.44139.97143.02135.102145.822124.38274.065
2025-09-08143.37143.87142.92143.67135.919146.637125.274.9774
2025-09-09144.41144.84143.32143.85136.758147.198126.31775.2372
2025-09-10143.84146.39143.81145.79137.537148.228126.84577.9003
2025-09-11145.94146.58142.74143.32138.186148.623127.74967.8894
2025-09-12143.52146.63143.41145.94138.994149.204128.78371.9998
2025-09-15146.22147.23142.57144.51139.693149.391129.99466.9616
2025-09-16145.08145.93144.15145.92140.418149.691131.14569.2467
2025-09-17145.94146.28144.79145.64141.077149.856132.29768.2373
2025-09-18145.98149.74145.86147.73141.911149.848133.97471.5686
2025-09-19147.77148.48145.06145.29142.518149.479135.55763.2309
2025-09-22144.87147.54144.46147.48143.174149.369136.97866.9523
2025-09-23147.38148.13144.94145.68143.65149.022138.27861.4475
2025-09-24145.48147.18144.25147144.099148.996139.20163.7982
2025-09-25146.53147.82146.08147.48144.587148.729140.44564.6424
2025-09-26147.95148.43146.86148.23144.899149.15140.64865.9775
2025-09-29147.55152.42146.5151.14145.318150.242140.39470.614
2025-09-30150.84151.5150.39151.02145.747151.072140.42270.1892
2025-10-01150.51152.29150.5151.8146.242151.876140.60871.3938
2025-10-02151.7155.81150.65155.57147.004153.315140.69376.3648
2025-10-03156.15157.34149.32149.72147.339153.478141.259.1795
2025-10-06150.16152.69149.26152.32147.772154.033141.5163.1488
2025-10-07152.14153.3148.75149.37148.048154.075142.0256.4426
2025-10-08149.17149.76145.76146.77148.097154.066142.12751.2742
2025-10-09146.93147.87145.82146.2148.241153.871142.6150.1892
2025-10-10146.01150.11143.68147.36148.311153.86142.76352.3969
2025-10-13146.57149.75146.47148.35148.503153.771143.23654.2602
2025-10-14148.19151.57147.64149.97148.706153.871143.54157.2116
2025-10-15150.27151.13142.93144.08148.628154.018143.23845.6724
2025-10-16142.99143.48141.81142.58148.37154.366142.37543.2784
2025-10-17141.04141.86138.88140.39148.125154.948141.30339.9832
2025-10-20139.44142.27137.81141.68147.835155.213140.45842.7484
2025-10-21141.5143.19139.14139.28147.515155.745139.28639.1357
2025-10-22139.11141.7138.29141.14147.222155.909138.53643.1459
2025-10-23142.87143.8137.18138.69146.783156.23137.33639.458
2025-10-24138.27139.37134.9135.14146.128156.816135.44134.8145
2025-10-27135.54136.77135.42135.66145.354156.7134.00936.0025
2025-10-28135.74140.04131.76136.53144.63156.282132.97838.0373
2025-10-29137.19139.56135.71138.27143.954155.432132.47542.0085
2025-10-30138.06138.16135.04135.96142.973153.636132.3138.4824
2025-10-31135.99137.46135.4137.29142.352152.816131.88741.5257
2025-11-03136.34138.66136137.41141.606151.213131.99941.8055
2025-11-04138.21138.95136.3138.68141.072150.061132.08244.8145
2025-11-05138.52140.81138.33140.55140.761149.361132.1648.9963
2025-11-06140.87140.91140.14140.16140.459148.691132.22648.1764
2025-11-07140.54146.15139.96145.77140.379148.37132.38858.8453
2025-11-10145.65149.22145.22148.3140.377148.358132.39562.5861
2025-11-11148.22148.52147.77148.48140.302147.944132.6662.8448
2025-11-12148.49149.53145.55146.33140.415148.337132.49257.7106
2025-11-13147.01148.75142.56143.57140.464148.452132.47651.854
2025-11-14143.29143.56141.87142.12140.551148.571132.5349.0384
2025-11-17142.39146.91141.95145.75140.754149.079132.42955.546
2025-11-18145.56152.28144.84151.53141.367150.885131.84863.5315
2025-11-19150.92153.19150.49152.92141.956152.721131.1965.1527
2025-11-20152.52153.9151.71152.91142.666154.317131.01665.1303
2025-11-21153.14153.89151.21151.35143.477155.176131.77861.569
2025-11-24152.87153.36149.15149.86144.187155.623132.75158.2905
2025-11-25150.23153.4149.18151.22144.921156.182133.66160.3651
2025-11-26151.26156.03149.91155.14145.765157.426134.10465.6659
2025-11-27154.75155.35153.95155.13146.724158.152135.29565.6418
2025-11-28154.95156.75149.82150.44147.381158.051136.71155.3702
2025-12-01150.63150.94148.98149.33147.977157.636138.31853.2465
2025-12-02149.68151.79143.34144.9148.288157.093139.48345.7113
2025-12-03144.48150.12143.72149.3148.726156.787140.66452.8486
2025-12-04150.1150.34148.03148.7149.153156.194142.11151.8476
2025-12-05148.52150.45146.16146.47149.188156.168142.20748.1939
2025-12-08146.07146.71144.2144.71149.008156.251141.76545.4704
2025-12-09145.81145.9142.51142.99148.734156.437141.0342.9179
2025-12-10142.8143.17140.59140.73148.454156.861140.04639.7596
2025-12-11141.5142.15139.61140.44148.297157.166139.42839.3593
2025-12-12141.22141.75137.23138.06148.094157.676138.51236.1436
2025-12-15138.48139.11135.16135.18147.566158.654136.47732.6656
2025-12-16135.29137.27134.61136.23146.801158.766134.83535.1169
2025-12-17135.54135.95133.05133.92145.85158.706132.99532.3285

Assumptions & conventions

What the calculation assumed, echoed by the library rather than hidden.

overlay.indicator
bbands
overlay.period
20
overlay.standardDeviation
2
overlay.middle
simple moving average
oscillator.indicator
rsi
oscillator.period
14
oscillator.smoothing
Wilder
input
closing prices, oldest first

Diagnostics & warnings

No warnings. Engine, method and convergence details:

warmupBars.overlay
19
warmupBars.oscillator
14
dataNotice
Synthetic sample data, not market history.

Use it in your project

Every indicator returns an ordinary array aligned to the input: one value (or one named record, for Bollinger Bands and MACD) per bar, with NaN during warmup. This example prints the last value of each.

Sample inputs

250 bars from: Synthetic uptrend with pullbacks (seed 7, not market data). Preview: the first three bars. Copy setup + call includes every bar.

Preview
[
  {
    "date": "2025-01-02",
    "open": 100.83,
    "high": 101.26,
    "low": 99.82,
    "close": 100.04,
    "volume": 894440
  },
  {
    "date": "2025-01-03",
    "open": 100.32,
    "high": 100.65,
    "low": 98.7,
    "close": 99.29,
    "volume": 1908571
  },
  {
    "date": "2025-01-06",
    "open": 99.65,
    "high": 101.09,
    "low": 99.2,
    "close": 100.76,
    "volume": 2282565
  }
]
Complete setup · included when you copy
First call
const overlay = bbands(closes, { period: 20, standardDeviation: 2 });
const oscillator = rsi(closes, { period: 14 });
const result = {
  overlay: overlay.at(-1),
  oscillator: oscillator.at(-1),
};
console.log(result);
Output of this example
{
  "overlay": {
    "upper": 158.70575180616854,
    "middle": 145.85049999999998,
    "lower": 132.99524819383143,
    "bandwidth": 0.17627984554277915,
    "percentB": 0.03596786045547622
  },
  "oscillator": 32.32846917998053
}
Reproduce this entire calculator
Full result object

Both examples use the inputs of the last successful calculation. Displayed metrics are rounded; copied programs keep exact values. Every copy on this page is type-checked and executed against the packed package in CI.

Ask your AI agent

With the TotalFinance MCP server connected, your agent runs this calculation with the totalfinance_technical_analysis_calculate tool (on by default). The prompt below uses your current inputs.

Prompt

Use the TotalFinance MCP tool totalfinance_technical_analysis_calculate on my bars for Bollinger Bands (20 bars, 2 standard deviations) and RSI (14 bars). Tell me how many warm-up bars have no value and what the latest readings are. [Paste your daily OHLCV CSV here: date, open, high, low, close, volume]

Connect Claude, Cursor, VS Code, Codex or ChatGPT

What this calculates

Every indicator is a function from a series to an ordinary array aligned with it: one value per bar, or one named record for multi-output indicators such as Bollinger Bands (upper, middle, lower, bandwidth, percentB) and MACD (macd, signal, histogram). Parameters are named, and indicators with industry-standard defaults resolve them when you omit them.

Warmup is not zero

An indicator cannot have a value before it has enough history. Those leading entries are NaN, and the chart leaves them blank. They are not zeros and not signals; a strategy should treat them as "no position". The warmup guide lists the warmup of every registered indicator.

Bring your own bars

Paste or upload OHLC data in the panel. Indicators here use closing prices; the library also offers high/low/volume indicators, streaming updates and snapshots for live charts. Browse the indicator registry and the live charting guide.

Edit this page on GitHub ↗Every code block on this site is executed in CI against the library.