{ "provenance": { "method": "Hand-checked rational examples; expected constants are not generated by the implementation under test.", "ema": "https://raw.githubusercontent.com/TA-Lib/ta-lib/v0.6.4/src/ta_func/ta_EMA.c", "rsi": "https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/relative-strength-index-rsi", "atr": "https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/average-true-range-atr", "policies": "Our flat RSI defaults to 50 explicitly; this is not claimed as a universal convention. ATR previous-close seed skips the first bar, while high-low seed includes it." }, "ema": { "period": 3, "prices": [1, 2, 3, 4, 5, 6], "smaSeed": [2, 3, 4, 5], "firstSeed": [1, 1.5, 2.25, 3.125, 4.0625, 5.03125] }, "rsi": { "period": 3, "prices": [10, 11, 13, 12, 14, 13, 15], "values": [75, 85.71428571428571, 64.86486486486487, 79.6875], "check": "First average gain=1 and loss=1/3. Next three gain/loss ratios are 6, 24/13, 51/13." }, "atr": { "period": 3, "bars": [ { "high": 12, "low": 8, "close": 10 }, { "high": 15, "low": 11, "close": 14 }, { "high": 14, "low": 10, "close": 11 }, { "high": 18, "low": 15, "close": 16 }, { "high": 17, "low": 13, "close": 14 }, { "high": 15, "low": 10, "close": 12 } ], "trueRanges": [4, 5, 4, 7, 4, 5], "highLowSeed": [4.333333333333333, 5.222222222222222, 4.814814814814815, 4.876543209876543], "previousCloseSeed": [5.333333333333333, 4.888888888888889, 4.925925925925926], "check": "High-low series: 13/3, 47/9, 130/27, 395/81. Previous-close series: 16/3, 44/9, 133/27." } }