RightEdge Forums
Main     Home          Members     Calendar     Who's On

Welcome Guest
        



Max Open Positions / Symbols Expand / Collapse
Message
Posted 1/18/2010 05:19:59 Post #10527
 

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

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 Post #10530
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
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 Post #10531
 

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member
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 Post #10533
 

DeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloper
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 Post #10535
 

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member
Thank you !!!
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: billb, young, dplaisted

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 7:03pm

2005-2007 © RightEdge Systems