Click here to Login





                                                   Sort rules dynamically based on BuyInd performance

  0

0
Kiran
2015-05-26 19:09:14


I want to sort 40 rules in a rule-set dynamically (based on BuyInd(<rule>, 4,60) perfromance) and apply the rule with the best performance in the trading system simulation.
How do i do that in the Strategy Script? Not sure i came across a sorting function for rules .. Note, comp wont work here because comp compares across securities not against rules.

Optimize("ruleNo",0,ct-1,1);
rule1 = ApplyRule("", "ruleset filename", ruleNo);

// how do i now sort and apply the rule with the best BuyInd performance to the buy condition?

thanks
Kiran



QuantShare
2015-05-28 11:33:28

  0

You could use the "ApplyRule" function to test every rule then choose the one that performs best.

How do i now sort and apply the rule with the best BuyInd performance to the buy condition?
This can be done only using the money management script. And would probably take a lot of time to backtest.



Zoidberg
2015-08-08 13:51:27

  0

You could try CompRule which I uploaded yesterday: http://www.quantshare.com/item-1597-comprule

rule1 = CompRule("ruleset name", "", "BuyInd(rule, 4, 60)", "wmax");







Kiran
2019-05-06 01:07:11

  0

Thanks for pointing me to CompRule - I tried it but see one issue with the BuyInd. The rules i'm using is
comp(perf(close,per),"rank",1,1) < 11; (1 rule for each per: per = 20, 40, 60, 80, 100)

I want to pick the rule delivering the best portfolio performance of the 10 stocks picked by the rule (not stock performance).
BuyInd1( ) picks the rule delivering the best stock performance for each stock being evaluated.

Is there some way I can evaluate the portfolio performance of each rule, in order to pick the rule with the max portfolio performance?

thanks
Kiran



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 Rules based on the Relative Strength Index - RSI Indicato...
Money management to Reject Trading Positions Based on their Past ...
Relative Performance Chart - Dynamic assets and index
Market Composite Index based on the Sharpe Ratio
Ulcer Performance Index

How-to Lessons
How to create trading rules based on Put and Call volume data
How to dynamically change the number of positions in a portfolio?
How to quickly select stocks based on the last value of a databas...
How to improve the performance of QuantShare databases?
How to dynamically update the settings of an indicator

Related Forum Threads
Time stop based on stock performance over set period
dynamic position sizing based on stocks selected by the buy rules
Rotation of strategies based on their performance
Rules manager - comparing results - back testing vs rules analysi...
Ranking performance

Blog Posts
How to create buy and sell trading rules based on News Data
Rules performance for different volatility regimes
Improve your trading system performance by ranking stocks
Synchronize Buy/Sell List of Rules in the Trading System Optimize...
Trading System: Buy Stocks based on their Sharpe Ratio Rank









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.