RecalculateMeAlways

Sets the indicator to be recalculated on every tick.

Syntax

RecalculateMeAlways(): void

Parameters

This method does not take any parameters.

Return Value

This method does not return a value.

Description

The RecalculateMeAlways method configures the indicator to be recalculated on every tick, rather than only when a new bar forms. This is useful for indicators that need to update their values continuously, such as those that depend on the current price. If this setting is not used, each buffer index will be calculated only once for resource saving, but some indicators may be calculated inaccurately. If calculations do not significantly load the processor, we recommend using it always.

Example

// Set the indicator to recalculate on every tick
this.api.RecalculateMeAlways();

Last updated