StrategyCoder History

← Examples

Two moving averages Experimental

Other platform v5/v6 → Cuprel · converter door 0.1.0 · converted · 11 lines out

Source (Other platform v5/v6)
//@version=5
indicator("Two averages", overlay=true)
fastLen = input.int(10, "Fast length")
slowLen = input.int(30, "Slow length")
plot(ta.sma(close, fastLen), "Fast")
plot(ta.sma(close, slowLen), "Slow")
Converted (Cuprel)
// converted by cuprel-convert 0.1.0 from a source written for another charting platform (format v5); original notices above unchanged

indicator "Two averages"
    edition = 1
    display = price

input fastLen: int = 10, "Fast length"
input slowLen: int = 30, "Slow length"
plot(tech.sma(close, fastLen), "Fast")
plot(tech.sma(close, slowLen), "Slow")
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 Other platform v5/v6 → Cuprel route All examples