PremiumDiscount

forge.taclassSince Forge API 1
Signaturepython
forge.ta.PremiumDiscount(**inputs: Any) -> None

The upper and lower halves of the active swing range, split at equilibrium.

Inputs

NameTypeDefaultRange
swing_lenint52 to 100

Indicator: Premium and discount

Swings are found as in market structure with swing_len. The active range runs from the lowest low since the latest swing low to the highest high since the latest swing high.

equilibrium is its middle. premium is the upper half, from equilibrium to the top, and discount the lower half, from the bottom to equilibrium. They show once both swings exist.