Files

16 lines
360 B
Plaintext
Raw Permalink Normal View History

// Licensed under the Apache License, Version 2.0
// © mihakralj
2026-02-23 17:27:35 -08:00
// MEDPRICE: Median Price
// (High + Low) / 2
// TA-Lib compatible — equivalent to TBar.HL2
//@version=6
indicator("MEDPRICE: Median Price", overlay=true)
medprice(float h, float l) =>
(h + l) * 0.5
result = medprice(high, low)
plot(result, "MedPrice", color.new(color.orange, 0), 2)