Limit Order Syntax

Questions about MultiCharts and user contributed studies.
momentum
Posts: 324
Joined: 23 Nov 2005
Has thanked: 9 times
Been thanked: 14 times

Limit Order Syntax

Postby momentum » 09 Jan 2008

I am re-writing my strategies for the forthcoming beta that supports limit orders.

Will the following send a LIMIT order to Interactivebrokers at the price of the close of the bar that met the condition:

If condition1 = true then BuyPoint = Close;
Buy 5 contracts next bar at BuyPoint Limit;

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 09 Jan 2008

Hi momentum,

What is the BuyPoint value if the condition is not satisfied?

momentum
Posts: 324
Joined: 23 Nov 2005
Has thanked: 9 times
Been thanked: 14 times

Postby momentum » 10 Jan 2008

There is no other value. Either it is filled or not at what was the closing porice of the bar when condition1 was met.

Will MC send a Limit order to IB at bar close if condition1 is met?

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 10 Jan 2008

Hi momentum,

As it is, only the second line of the code you posted will generate a limit order. This limit order will be generated on the next bar at a price of BuyPoint or lower.

If condition1 is met, it will simpy result in assigning the value equalling Close to the BuyPoint. This line of code does not affect generation of the order.

Regards.


Return to “MultiCharts”