Click here to Login





                                                   OCO

  0

0
Jim Harrison
2011-11-29 14:28:44


I need to accomodate an OCO (one cancels the other) as an order type in simulation/portfolio

Please advise.



QuantShare
2011-11-30 10:44:59

  0

Jim,

OCO order type can be simulated using the money management tool.

To get all buy orders:

_TradingOrder[] orders = Orders.GetPendingBuyOrders();

To cancel an order:

orders[0].CancelOrder();




Jim Harrison
2011-11-30 11:03:14

  0

Best Answer
Thanks. I was getting there...


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
Reinvest Dividends in Your Trading System
Industry Fundamental Data
Parallel Resistance and Support Lines
Dividend Yield Watchlist
Equity Data to Ticker Symbol

How-to Lessons
How to automatically start a downloader every few minutes?
How to export trading data to a CSV file
How to create a strategy-based portfolio
How to display Forex economic calendar data in a chart
How to screen for stocks having a high correlation with the Dow J...

Related Forum Threads
Trading System Target Profit and Loss prices
Data time-frame
Conversion error importing data
How to get the last day of the month in C#
AMM scripting - error and some questions

Blog Posts
Composite Indicators
Backtesting Process
Short Index - Part 2
Stock split & dividend
Trading orders - Part 2









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.