RightEdge Forums
Main     Home          Members     Calendar     Who's On

Welcome Guest
        


««12

How to place a simple trailing stop? Expand / Collapse
Message
Posted 3/23/2009 07:38:22 Post #7971
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
It's getting attention. There will be another build out shortly to address some of the high priority issues.
Posted 3/24/2009 07:58:05 Post #7978
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
Who is your broker? IB doesn't support % trailing stops. We're working to beef up support for trailing stops so that we can manage them when the broker can't.

lksf (3/23/2009)
Is there a way to submit a TrailingStop close position order on OrderFilled that will activate at X% above the entry price and will trail Y% below that.

e.g. I bought ABC @ 100, I want that if it goes up 10% I will have a trailing stop of 1% less. So if it hits 110 a TrailingStop order should be activated with stop price of 109 (or is it 108.9? doesn't really matter for me)

I don't think I can use the default TrailingStop settings of the system because I want this order to be valid for one bar only, later every bar I re-evaluate the postion and decide if I want to resubmit the same order (for one more bar) or submit different (market/limit) order to close it.

I noticed there's some TrailingStop settings on OrderSetting object but am unsure of how to use them.

Thanks
Posted 3/24/2009 13:24:19 Post #7983
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
I am using IB indeed, although hardly ever tried them manually so I didn't know they dont support %Trailing stop (Ameritrade do)

I can have my code calculate the % and submit it with numbers, still I am not sure on the OrderSettings object where (in my example above) would I put the 110 and where the 108.9 and (if any) other settings
Posted 3/24/2009 14:04:18 Post #7989
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
Set the LimitPrice value and StopPrice properties. Looking at the code, I don't think you're going to have a lot of success with Edition 2, IB and trailing stop orders.

lksf (3/24/2009)
I am using IB indeed, although hardly ever tried them manually so I didn't know they dont support %Trailing stop (Ameritrade do)

I can have my code calculate the % and submit it with numbers, still I am not sure on the OrderSettings object where (in my example above) would I put the 110 and where the 108.9 and (if any) other settings
Posted 4/1/2009 09:50:32 Post #8078
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
No luck with ED 1 as well...orders are not submitted
Posted 4/8/2009 10:04:51 Post #8115
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
Any suggestion of how to deal with the issue that the orders are not being submitted?
Posted 4/8/2009 10:18:05 Post #8116
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
You'd have to handle it manually. We have an open case to add support for trailing stops where the broker doesn't support them.

lksf (4/8/2009)
Any suggestion of how to deal with the issue that the orders are not being submitted?
Posted 4/8/2009 12:26:31 Post #8118
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
what do you mean by "the broker doesn't support them" ?

I can set trailing stops in TWS
Posted 5/1/2009 11:52:51 Post #8275
 

DeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloper
As far as opening a position with a trailing stop order, I've added support for this.  PositionSettings now has an OpenOrder property, which is the order that will be submitted to open a position.  So you can set the type to trailing stop and set the stop value appropriately.

Thanks,
Daniel

Posted 5/3/2009 07:12:07 Post #8288
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
It appears TWS has had a bug for sometime on trailing stops on Buy orders. There is a thread on the TWS bulletin board that suggests the bug is fixed in TWS build 894. I have not experienced a problem with trailing stops on sell orders.

-Pete
(See also rightedge-ats Yahoo group )

« Prev Topic | Next Topic »

««12

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 6:35am

2005-2007 © RightEdge Systems