Click here to Login





                                                   Long vs Short trades in a Long-Short system

  0

0
Kiran
2016-03-08 20:37:25


Hi,
I have a Long/Short ranking system (below) and the Long-Short categories are merged in the Settings.
I consistently see 90% of trades are long and only 10% short, even though the signals seem to be evenly distributed (i.e. 1/2 the symbols have +ve sharpe and trigger Buy signals whereas other half trigger Short signals.

Is my script below causing some issues or bias toward Long trades?

thanks
Krian

///script ...
sharpRank = comp(absolute(sharpe(close,60), "rank", 1,1);


SetSimTiming(_buy,_close,-1);
SetSimTiming(_short,_close,-1);
SetSimTiming(_sell,_close,-1);
SetSimTiming(_cover,_close,-1);

Buy = sharpRank<rankTh && sharp>0.2;
Short = sharpRank<rankTh && sharp<-0.2;

Sell = sharpRank>(rankTh+15) || sharp<0.2;
Cover = sharpRank>(rankTh+15) || sharp>-0.2;



QuantShare
2016-03-09 03:54:23

  0

If you are getting more longs than shorts then this probably means that sharp is more often higher than 0.2 than lower than -0.2.

If you want evenly distributed long/short trades then do not merge the long and short categories.



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
Optimizable Fibonacci Long and Short Trading System
Long Term Up Trend with Short term re-entery Signals
Short Term Trading System with RSI Ratios
Forex Long to Short Position Ratios
Drawdown: Long and Short

How-to Lessons
How to generate buy/sell signals from a trading system
How to add trades from one portfolio to another one
How to import trades into a portfolio
How to set order type of a trading system programmatically
How to add a metric in the trading system simulation report

Related Forum Threads
Trading System using multiple time frames
Ranking System Help
no trades in simulation
Trading System time period not including start day
Ranking System Optimization

Blog Posts
How to combine long, short and custom portfolio strategies within...
5 position sizing techniques you can use in your trading system
Long Term Trading with Technical Analysis
Troubleshooting a Trading System
How to Switch On/Off Trading Rules in Your Stock Trading System









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.