mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-07-27 17:27:43 +00:00
14 lines
324 B
Plaintext
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)
|