CalculateOnBarClose
Previous Topic  Next Topic 

Definition

If true, the indicator value is calculated on the close of each bar otherwise it is calculated on each incoming tick.


Property Value

This property returns true if the indicator value is calculated on the close of each bar; otherwise, false. Default set to false.


Syntax

CalculateOnBarClose


Examples

// Indicator value is calculate on the close of each bar
CalculateOnBarClose = true;

Tips

1. Calculating indicators for each incoming tick can be CPU intensive. Only calculate indicators on each incoming tick if you have a requirement to calculate it intra bar.