Files
QuanTAlib/lib/core/typprice/typprice.pine
T

16 lines
390 B
Plaintext

// Licensed under the Apache License, Version 2.0
// © mihakralj
// 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)