Click here to Login





                                                   Under-exposure due to multi-day Limit orders

  0

0
Kiran
2016-06-23 03:12:28


I place multi-day Limit orders that are valid for 5 days (code below), and noticed I get only 48% exposure, even though I have only 5 positions
and a universe of S&P500 stocks (and the signals fire quite liberally) - my hold period is ~6 days.

It seems as though once 5 Buy Limit orders are fired and active, no more orders are triggered until the active orders are filled, and these orders may wait for 5 days and expire unfilled.
What makes this worse is if there are 3 positions and 2 active orders, no more orders are triggered.

Is there some way the system can fire all the orders signalled (could be 15) but fill only the first 5 and cancel the rest once the portfolio is full no remaining cash?
This would be expected in a live trading system.
- If not what's a work-around to get 100% exposure?

thanks
Kiran

Buy = r>ref(r,1) && uptrend;
//SetSimTiming(_Buy,_Close,-1);
SetSimTiming(_Buy,_Limit,0);
BuyPrice(r*(1-lt*brick/100), 5);

Sell = r<ref(r,1) || f;
//SetSimTiming(_Sell,_Close,-1);
SetSimTiming(_Sell,_Limit,0);
SellPrice(r*(1+lt*brick/200), 5);



QuantShare
2016-06-23 19:34:01

  0

Hi Kiran,

"This would be expected in a live trading system."

This needs to be implemented in a money management script. This is not a default behavior.
If you want the system to fill all positions no matter whether there are pending limit orders or not, edit your trading system, select "Settings -> Capital" then put "All Orders" next to "Pending Orders"



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
Transform any order into a limit order selectively based on a tra...
Ignore Orders for Recently Purshased Securities based on Return
Ignore Orders for Recently Sold Securities
Opening and Closing Crosses - Share Volume
Stop Trading Based on Your Portfolio Equity Return

How-to Lessons
How to get trading orders from a portfolio programmatically
How to optimize the stop limit of a trading system
How to dynamically change the number of positions in a portfolio?
How to generate buy/sell signals from a trading system
How to set order type of a trading system programmatically

Related Forum Threads
Filter out limit orders that doesn't trade through limit price
Question on limit buys
Simulator: Different exit orders for different rules, partial exi...
Trade Orders Monitor
Add Skipped Trades Due to Margin Constraints to Trade Log

Blog Posts
Limit and Market orders
Trading Orders - Part 1
Trading orders - Part 2
How to get buy and sell orders for a portfolio based on a trading...
Export Trading Orders from a Portfolio to a File









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.