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.
When is MarketPosition_at_Broker_for_The_Strategy calculated [SOLVED]
Re: When is MarketPosition_at_Broker_for_The_Strategy calcul
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?
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?
- 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]
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.
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.