Current Value
Inside a CountTrue historical condition, hold this operand at its value now while checking historical observations. Outside a historical query it returns the operand normally. Wrap a complete stateful expression, rather than putting this binding inside its recurrence.
Current Value
Definition
Inside a CountTrue historical condition, hold this operand at its value now while checking historical observations. Outside a historical query it returns the operand normally. Wrap a complete stateful expression, rather than putting this binding inside its recurrence.
Parameters
One indicator
Example
CountTrue(Price(SPY) <= CurrentValue(SMA(SPY, 20, TradingDay)), 20 TradingDay): compare historical prices against today's moving average.
This operator transforms numeric inputs. Compare its result with another value to make an entry or exit condition; the expression alone does not specify a trade.
Full indicator reference