StrategyCoder History

← Examples

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

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