Simple moving average Experimental
thinkScript → Cuprel · converter thinkscript 0.1.0 · converted · 5 lines out
Source (thinkScript)
declare lower; input length = 20; plot SMA = Average(close, length);
Converted (Cuprel)
indicator("Converted indicator", edition = 1, overlay = false)
input length: int = 20, name = "length"
let tmp_1 = tech.sma(close, length)
plot(tmp_1, name = "SMA")
Known differences
- the study has no title in a form this converter reads: it is called "Converted indicator" (rename it in the editor)
- the platform recalculates the forming bar on every tick; the converted indicator follows the product language (the forming bar can differ)
- Average: the bars before the window is full are not documented; the converted indicator follows the product language (no value there)
Experimental means: the converter reads a thin, tested slice, adds warnings, and says no when it is unsure. Run the converted program on your own data before relying on it.
Open in the converter thinkScript → Cuprel route All examples