CalculateOnBarClose
Previous Topic  Next Topic 

Definition

If true, OnBarUpdate() is called on the close of each bar otherwise it is called on each incoming tick. This property should ONLY be set in an Initialize() method and be the last statement within that method.



Property Value

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


Syntax

CalculateOnBarClose


Property Of

Custom Indicator, Custom Strategy


Examples

// Calculate on the close of each bar
CalculateOnBarClose = true;


Tips
1. Calculating indicators or systems 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.