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!
Intra-Bar Order Generation [SOLVED]
- 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
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
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
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Intra-Bar Order Generation
Yes, correct.
IOG = off;
next bar = next bar;
this bar = this bar;
IOG = on;
next bar = next tick;
this bar = this bar;
IOG = off;
next bar = next bar;
this bar = this bar;
IOG = on;
next bar = next tick;
this bar = this bar;
- Smoky
- Posts: 507
- Joined: 03 Dec 2010
- Location: Thailand
- Has thanked: 97 times
- Been thanked: 115 times
Re: Intra-Bar Order Generation
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]
-
- Posts: 742
- Joined: 09 Apr 2010
- Location: Texas
- Has thanked: 483 times
- Been thanked: 274 times
- Contact:
Re: Intra-Bar Order Generation
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 ?
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 ?
-
- Posts: 401
- Joined: 19 Jan 2011
- Location: Netherlands
- Has thanked: 85 times
- Been thanked: 124 times
Re: Intra-Bar Order Generation
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.
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Intra-Bar Order Generation [SOLVED]
Thank you, corrected.Sorry
IOG = ON;
next bar = next tick;
this bar = this bar;
Unfortunately it is is static for a signal, you cannot change it "on the run".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 suggested a good solution.