Click here to Login





                                                   Create OCA / Child orders

  0

0
Alexander Horn
2016-12-02 22:52:15


QS, can you give me an example of how to create an order with an attached OCA / Child order?

I was trying below, but obviously not right:

_TradingOrder Order = Orders.CloseMarketOrder(-1,5);
Order.AddLinkedOrder(false,FutureSym,Contracts ,Order);
Order.AddLinkedOrder(true,OptionSym,Contracts*10, Order);

Or do I have to submit first main order, and later catch it with Orders.GetPendingShortOrders and attach the child?

Also, would these orders in an ATS be submitted to IB? Or handled in QS?





QuantShare
2016-12-03 03:15:53

  0


Alexander Horn
2016-12-04 00:49:11

  0

Thanks, seems clear!


No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Ignore Orders for Recently Purshased Securities based on Return
Ignore Orders for Recently Sold Securities
Number of Buy Signals Over Time in a Simulation
Keltner Channel Breakout Strategy
Money Management System to Split Order Into Smaller Pieces

How-to Lessons
How to create a strategy-based portfolio
How to create a custom trendline
How to create a watchlist
How to get trading orders from a portfolio programmatically
How to create a moving average of an indicator

Related Forum Threads
Simulator: Different exit orders for different rules, partial exi...
Automatically create field names for columns in ASCII import
Can we create a custom database that without a Symbol relationshi...
Create and Export each database for each market
How to create a Trading Object

Blog Posts
Automatically create historical quotes charts
The Ultimate Guide to Create Trading Systems in QuantShare
Export Trading Orders from a Portfolio to a File
How to get buy and sell orders for a portfolio based on a trading...
Create a trading strategy using the money management tool - Part ...









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.