Files
2026-02-23 17:27:35 -08:00

14 lines
324 B
Plaintext

// TYPPRICE: Typical Price
// (High + Low + Close) / 3
// TA-Lib compatible — equivalent to TBar.HLC3
//@version=6
indicator("TYPPRICE: Typical Price", overlay=true)
typprice(float h, float l, float c) =>
(h + l + c) / 3.0
result = typprice(high, low, close)
plot(result, "TypPrice", color.new(color.green, 0), 2)