Keeping Limit Orders Active After New Bar

Questions about MultiCharts and user contributed studies.
flipflopper
Posts: 261
Joined: 28 Feb 2008
Has thanked: 2 times
Been thanked: 1 time

Keeping Limit Orders Active After New Bar

Postby flipflopper » 07 Oct 2010

I am using 5 minute bars to trigger a limit order. If that order is not filled within the next 5 minutes the order is canceled.

How do I prevent that order from being canceled until it is either filled or a new trigger creates a new order?

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 489 times

Re: Keeping Limit Orders Active After New Bar

Postby Dave Masalov » 08 Oct 2010

Dear flipflopper,

If the order is not filled within specified bar, it is canceled, unless exactly the same order (quantity and price) is sent on the next bar (then the order is not cancelled and stays active at broker).

If you want to prevent the order from being canceled you need to send exactly the same order on the next bar.

flipflopper
Posts: 261
Joined: 28 Feb 2008
Has thanked: 2 times
Been thanked: 1 time

Re: Keeping Limit Orders Active After New Bar

Postby flipflopper » 08 Oct 2010

Any suggestions on how to accomplish this?

gregorio123456
Posts: 117
Joined: 08 Nov 2005
Been thanked: 3 times

Re: Keeping Limit Orders Active After New Bar

Postby gregorio123456 » 08 Oct 2010

if condition =true then buy next bars at XXX limit:

(if condition is true when bars is close then order is send for next bars.....)

jo

flipflopper
Posts: 261
Joined: 28 Feb 2008
Has thanked: 2 times
Been thanked: 1 time

Re: Keeping Limit Orders Active After New Bar

Postby flipflopper » 08 Oct 2010

Thanks! I think I know what to do.


Return to “MultiCharts”