hi, what is the setup in IOG to allow many buy and sell signals by bar ? (renko resolution ticks)
i have only 1 buy and 1 sell , even with many trigger signals.
thanks
Multi IN/OUT setup in one Bar
- Polly MultiCharts
- Posts: 206
- Joined: 20 Jul 2022
- Has thanked: 1 time
- Been thanked: 56 times
Re: Multi IN/OUT setup in one Bar
Hello Smoky,
You can allow your strategy to send different amounts of orders depending on the selected IOG mode in Format->Signal->Properties tab. Please find the screenshot attached for reference.
For more info about IOG settings please refer to this page.
You can allow your strategy to send different amounts of orders depending on the selected IOG mode in Format->Signal->Properties tab. Please find the screenshot attached for reference.
For more info about IOG settings please refer to this page.
- Attachments
-
- Format Signal IOG.png
- (13.58 KiB) Not downloaded yet
- Smoky
- Posts: 519
- Joined: 03 Dec 2010
- Location: Thailand
- Has thanked: 99 times
- Been thanked: 123 times
Re: Multi IN/OUT setup in one Bar
Of course, but this setup don't work.Hello Smoky,
You can allow your strategy to send different amounts of orders depending on the selected IOG mode in Format->Signal->Properties tab. Please find the screenshot attached for reference.
For more info about IOG settings please refer to this page.
Easy to reproduce, try this code :
Code: Select all
[IntrabarOrderGeneration = True];
var: intrabarpersist OrderName1("NB1"), intrabarpersist OrderName2("NB2");
var: intrabarpersist Tick(0);
if barstatus=0 then
begin
Tick=0;
end;
Tick=Tick+1;
if Tick = 100 then
begin
sellshort (OrderName1) 1 share next bar at market;
messagelog("Sending Order 1 ",OrderName1);
end;
if Tick = 200 then
begin
sellshort (OrderName2) 1 share next bar at market;
messagelog("Sending Order 2 ",OrderName2);
end;
Result : only sending the first trade
may be i forget something ?
- Polly MultiCharts
- Posts: 206
- Joined: 20 Jul 2022
- Has thanked: 1 time
- Been thanked: 56 times
Re: Multi IN/OUT setup in one Bar
Smoky,
To allow multiple same-direction entry orders you might try checking the 'Allow up to N entry orders in the same direction as the currently held position' checkbox in Format->Signal->Strategy Properties->Properties tab->Position limit section.
For more info about these settings please refer to this page.
To allow multiple same-direction entry orders you might try checking the 'Allow up to N entry orders in the same direction as the currently held position' checkbox in Format->Signal->Strategy Properties->Properties tab->Position limit section.
For more info about these settings please refer to this page.