Posted 1/18/2010 05:19:59
|
|
|
|
Hi, Let's say I'm sending a market order if the latest Tick is over my trigger: public override void NewTick(BarData partialBar, TickData tick) { if (tick.price > longTrigger){ OpenPosition(PositionType.Long, OrderType.Market); } } In the properties of the strategy I set: Max Open/symbol = 1 Assume that my broker for some reason uses some time before the marketorder is filled. While the marketorder is pending, a new tick comes in above my trigger. What happens now? will RE rel.2 send a new order? I guess what I can rephrase the question as: Does the "Max Open/symbol" also count in pending positions? Chris..
|
|
Posted 1/18/2010 07:52:52
|
|
|
|
| Yes, pending positions are counted in the max open count. So your second order should be rejected by PositionManager.
|
|
Posted 1/18/2010 11:21:16
|
|
|
|
Great !
Here is another question:
In the properties of the strategy I set: Max Open/symbol = 2
My first fill is a Long position, while the long position is open I get a Short fill. Will RE handle this as two separate position(and the target/stop orders for each position will still be active)? Or will RE acknowledge that the total position for this symbol is flat, and e.g. cancel all stop/target orders?
Chris..
|
|
Posted 1/18/2010 13:35:01
|
|
|
|
It's actually up to you whether pending positions are counted against the max open. The "Restrict Orders Sent" setting in the system properties controls this. I believe it is off by default.
In your example, you would have 2 positions- one long and one short. RightEdge wouldn't cancel them out.
Thanks,
Daniel
|
|
Posted 1/18/2010 15:39:59
|
|
|
|
|
|
|
|