Click here to Login

Trading Software Trading objects Features How-to Blog Search


                                                   Momemtum Strategy

  0

0
Husain
2010-08-04 14:53:45


Lets say I have a list of Symbols ( ABC , XYZ , DEF , LMN , UVW etc ) and I want to write a back test strategy in selecting the best performing symbol ( in terms of
absolute return ) in the last 1 month and sell if there is a new symbol which has the maximum return ( out of all the other ones ) or it meets a certain minimum return requirement.

How would I achieve that ?




QuantShare
2010-08-05 05:09:13

  0

Do you want to keep symbols for a minimum number of bars or sell them directly when new symbols rank better than them in terms of last month return?



Husain
2010-08-05 10:57:44

  0

I would like to sell them directly when new symbols rank better than them in terms of last month return .




QuantShare
2010-08-05 11:14:31

  0

Best Answer
The best way to do this is to use the Composite function.

Buy Rule:
comp(perf(close, 25), "rank", 1, close > 2) <= 10

- Buy the top 10 stocks that have the highest perf(close, 25) value.
- Filter stocks using the following rule: close > 2

Sell Rule:
comp(perf(close, 25), "rank", 1, close > 2) > 10

- Sell stocks that are no longer in the top 10



Husain
2010-08-05 16:10:18

  0

That was what I was looking for.Thanks


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
Reverse Collar Option Strategy
Correlation Filter Money Management Strategy
5x5 SMA & RSI Forex Strategy
Cross Above 200 SMA on Average Volume Strategy
Trading Strategy based on the Sharpe Ratio Metric

How-to Lessons
Difference between the watchlist and the screener tools
How to create a strategy-based portfolio
How to create a trading system
How to generate buy/sell signals from a trading system
How to create and trade a Neural Network model

Related Forum Threads
Pair Trading Strategy would be nice!
Place a profit stop through Money management strategy
Neural Network Strategy error
Language for Strategy Development
Need Simple Example of Ranking Stocks Implemented in Trading Syst...

Blog Posts
Create a trading strategy using the money management tool - Part ...
Create a trading strategy using the money management tool - Part ...
Optimize a trading strategy using the Sharpe ratio
Create a Trading Strategy using Portfolio123 Ranking Systems
How to turn any ordinary trading strategy into a very profitable ...









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 © 2012 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items