Placing an exceptional intrabar order even with IOG = false  [SOLVED]

Questions about MultiCharts and user contributed studies.
lois77
Posts: 23
Joined: 05 Aug 2012
Has thanked: 7 times

Placing an exceptional intrabar order even with IOG = false

Postby lois77 » 08 Oct 2012

Hi.

I would like to know if is possible to code an intrabar order even with IOG = false.
I mean, all my strategy is calculated on a closing basis and all orders are placed only after a new bar is generated. But there is one rare case, after knowing that the Opening price meets certain criteria, I would like to immediately place an order. According to my knowledge of MC, I guess I would have to check On the IOG option, but that would cause a big mess on my strategy.

Could MC explain if is possible?

Kind regards.

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

Re: Placing an exceptional intrabar order even with IOG = fa  [SOLVED]

Postby Henry MultiСharts » 08 Oct 2012

Hello lois77,

You can add a separate study that will be running with IOG = On alongside your regular signals.
Or make all your non-IOG code run only when barstatus=2.

lois77
Posts: 23
Joined: 05 Aug 2012
Has thanked: 7 times

Re: Placing an exceptional intrabar order even with IOG = fa

Postby lois77 » 09 Oct 2012

Hi Henry.

Thanks for the help. I will try those code options you mentioned.

Kind regards.


Return to “MultiCharts”