When is MarketPosition_at_Broker_for_The_Strategy calculated  [SOLVED]

Questions about MultiCharts and user contributed studies.
wilkinsw
Posts: 662
Joined: 21 Apr 2013
Has thanked: 154 times
Been thanked: 104 times

When is MarketPosition_at_Broker_for_The_Strategy calculated

Postby wilkinsw » 25 Apr 2013

Hi,

If i code:

If "marketposition<>MarketPosition_at_Broker_for_The_Strategy then" in the strategy. When will this be calculated with no IOG?

If I turn on the "recalculate on broker events" option does this effect when the above is calculated with no IOG?

Ie is it possible to calculate this intrabar and pick up on any mismatches before the close of the candle with no IOG?

Thanks.

wilkinsw
Posts: 662
Joined: 21 Apr 2013
Has thanked: 154 times
Been thanked: 104 times

Re: When is MarketPosition_at_Broker_for_The_Strategy calcul

Postby wilkinsw » 25 Apr 2013

Additionally,

Are any values updated intrabar when live without IOG (e.g. marketposition, entryprice, marketposition at broker etc)?

What does "recalculate on broker events" actually change without IOG?

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: When is MarketPosition_at_Broker_for_The_Strategy calcul  [SOLVED]

Postby Henry MultiСharts » 26 Apr 2013

Hello wilkinsw,

When IOG is disabled - the script is calculated on the bar close. How Signals are Calculated
If you have the option "recalculate on broker events" enabled - it will trigger study recalculation upon selected broker events.
If study is recalculated then all code is executed, all values are updated, except order generation.
The orders that were generated during such calculation are memorized and if they are still valid on the bar close calculation-they are sent to broker.

If you want orders to be sent intra bar-you need to enable IOG for your signal.


Return to “MultiCharts”