mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-18 02:28:05 +00:00
Co-authored-by: mihakralj <31756078+mihakralj@users.noreply.github.com>
16 lines
360 B
Plaintext
16 lines
360 B
Plaintext
// Licensed under the Apache License, Version 2.0
|
|
// © mihakralj
|
|
// 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)
|