Click here to Login





                                                   Optimize ranking system within a trading system?

  0

0
Kiran
2015-04-29 13:10:35


I have a ranking system of 2 factors with parameters (e.g. sharpe(close, per) where per needs to be optimized from (10,70,10).
If i define it through the Ranking System Manager and include it through the Ranking menu in the Trading System control, it doesn't let me specify the per as a optimizable parameter.
- is there a way to do this without writing Strategy script?

If not, here's the Strategy script i wrote - challenge is it's very slow to optimize (each backtest takes >10minutes) as it has to calculate 3 different composite functions and each function has a BuyRule (60 different combinations)?
Is there a more performant way of implementing this? I've seen the PBIL breeze through this level of complexity when there's no ranking function involved.

// 95 symbols, intraday 10-minute period test running for 3 months
// buyRule - one of a list of 60 different buy rules
// pick Entry rules
ct = ApplyRule("", "LongEntry_concise", -1); // Return number of rules
Optimize("a", 0, ct - 1, 1); // Optimize variable "a" from 0 to Number of rules -1
buyRule = ApplyRule("", "LongEntry_concise", a);

// Ranking system of 2 factors
Optimize("sharpePer",10,70,20);
Optimize("rsiPer",3,12,3);
sharpeRank = comp(sharpe(close,sharpePer),"rank",1,buyRule);
rsiRank = comp((rsi(rsiPer)+rsi(2*rsiPer)+rsi(3*rsiPer)+rsi(4*rsiPer))/4,"rank",1,buyRule);
avgRank = comp((sharpeRank+rsiRank)/2,"rank",1,1);



QuantShare
2015-04-30 03:57:11

  0

No, it wouldn't be possible to do that without a strategy's formula.

Your formula looks correct.
Make sure, "Load quotes in memory when performing simulations" is checked in "Accounts -> Application Settings -> Memory Management"

You can also use PBIL optimizer to optimize this trading system.
Create a new optimizer, select "PBIL/Trading System" then in the trading system screen, check "Using optimize variables in a formula".



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
Trading System with Sharpe-Based Ranking
Sharpe Ratio Ranking System to Lower Trading Strategies Volatilit...
Intraday Trading System with Daily Ranking
Trading System Based on the CloseHL Percent Rank Oscillator
Backtest different Segments in your Trading System

How-to Lessons
How to optimize an indicator in your trading system
How to optimize the number of positions in a trading system
How to optimize the stop limit of a trading system
How to add custom position-based metrics to your trading system
How to add a metric in the trading system simulation report

Related Forum Threads
Need Simple Example of Ranking Stocks Implemented in Trading Syst...
Ranking System with Trading System Help, Revisited
Trading system on ranks ruleset but doesn't optimize
Trading a Ranking System
Trading System Simulation Errors

Blog Posts
How to Optimize a Trading System with Thousands of Billions of Co...
Money Management: Optimize a trading system
Improve your trading system performance by ranking stocks
How to Backtest an Intraday Stock Trading System with EOD Ranking
How to combine long, short and custom portfolio strategies within...









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.