StrategyCoder History

← Examples

Ichimoku conversion and base lines Experimental

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

Source (Other platform v5/v6)
//@version=5
indicator("Ichimoku lines", overlay=true)
conv = input.int(9, "Conversion")
base = input.int(26, "Base")
mid(len) => (ta.highest(high, len) + ta.lowest(low, len)) / 2
plot(mid(conv), "Conversion line")
plot(mid(base), "Base line")
Converted (Cuprel)
// converted by cuprel-convert 0.1.0 from a source written for another charting platform (format v5); original notices above unchanged

indicator "Ichimoku lines"
    edition = 1
    display = price

input conv: int = 9, "Conversion"
input base: int = 26, "Base"
fn mid(len) = (tech.highest(high, len) + tech.lowest(low, len)) / 2
plot(mid(conv), "Conversion line")
plot(mid(base), "Base line")
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