Intra-Bar Order Generation  [SOLVED]

Questions about MultiCharts and user contributed studies.
ivanyu
Posts: 31
Joined: 24 Jul 2013
Has thanked: 3 times
Been thanked: 1 time

Intra-Bar Order Generation

Postby ivanyu » 15 Aug 2013

When I have Intra-Bar Order Generation = on, does it matter any more whether my order instruction is

1) buy on this bar close
2) buy on next bar market

Does my order instruction need to be "on this bar close" for intra bar order generation to take effect?

Thank you very much!

User avatar
ABC
Posts: 718
Joined: 16 Dec 2006
Location: www.abctradinggroup.com
Has thanked: 125 times
Been thanked: 408 times
Contact:

Re: Intra-Bar Order Generation

Postby ABC » 15 Aug 2013

With intrabar order generation "next bar" will be the next tick.
To answer your question, it does matter and you need to use "next bar" to have the orders triggered on the next tick (with IOG enabled).

Regards,
ABC

ivanyu
Posts: 31
Joined: 24 Jul 2013
Has thanked: 3 times
Been thanked: 1 time

Re: Intra-Bar Order Generation

Postby ivanyu » 15 Aug 2013

Thank you for the reply.

So if I have my order instruction as "buy this bar close", then it will still buy at bar close?

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: Intra-Bar Order Generation

Postby Andrew MultiCharts » 15 Aug 2013

Yes, correct.

IOG = off;
next bar = next bar;
this bar = this bar;

IOG = on;
next bar = next tick;
this bar = this bar;

User avatar
Smoky
Posts: 507
Joined: 03 Dec 2010
Location: Thailand
Has thanked: 97 times
Been thanked: 115 times

Re: Intra-Bar Order Generation

Postby Smoky » 15 Aug 2013

Yes, correct.

IOG = off;
next bar = next bar;
this bar = this bar;

IOG = off;
next bar = next tick;
this bar = this bar;

Sorry ;)

IOG = ON;
next bar = next tick;
this bar = this bar;[/quote]

sptrader
Posts: 742
Joined: 09 Apr 2010
Location: Texas
Has thanked: 483 times
Been thanked: 274 times
Contact:

Re: Intra-Bar Order Generation

Postby sptrader » 15 Aug 2013

IOG Question (since we're on the topic)..
Can IOG on and off be used more than once in a signal ?
Such as, IOG OFF for signal entry and IOG ON for stoploss ? or do they have to be two separate signals ?

evdl
Posts: 401
Joined: 19 Jan 2011
Location: Netherlands
Has thanked: 85 times
Been thanked: 124 times

Re: Intra-Bar Order Generation

Postby evdl » 15 Aug 2013

I don't know if it is possible to set the status of IOG multiple times in one strategy. But to get the same result, I use the barstatus(1) = 2 comment. This will take the next bar of the closing tick of a bar (of the chart timeframe) for my entries and the stoploss is based on IOG.

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: Intra-Bar Order Generation  [SOLVED]

Postby Andrew MultiCharts » 16 Aug 2013

Sorry ;)

IOG = ON;
next bar = next tick;
this bar = this bar;
Thank you, corrected. ;-)
IOG Question (since we're on the topic)..
Can IOG on and off be used more than once in a signal ?
Such as, IOG OFF for signal entry and IOG ON for stoploss ? or do they have to be two separate signals ?
Unfortunately it is is static for a signal, you cannot change it "on the run".
Evdl suggested a good solution.


Return to “MultiCharts”