PDA

View Full Version : Sequencing of OnBarUpdate() in custom indicators


DancesWithBears
08-23-2009, 05:25 PM
I have two Custom Indicators.

The first indicator does calculations needed by the second indicator when it gets called by OnBarUpdate()

The problem what I am having is that it looks like each indicator gets called with OnBarUpdate for all the bars,
then the Next indicator.

A:OnBarUpdate()
A:OnBarUpdate()

B:OnBarUpdate()
B:OnBarUpdate()

B needs to see A's state when it's OnBarUpdate is called.

How do I do this?

DancesWithBears
08-23-2009, 07:06 PM
Answered my own question, Strategy gets called after each indicators OnBarUpdate()

A:OnBarUpdate()

B:OnBarUpdate()

MyStrategy:OnBarUpdate()