Click here to Login





                                                   Trading system on ranks ruleset but doesn't optimize

  0

0
Kiran
2015-04-17 20:34:32


I have a simple trading system based on a ruleset with 30 rank-metrics, and need to iterate through these - I have set to 10 positions, Stop 5-bar, Trailing Stop 10%.

The system simulates fine, but when i optimize, it only runs through 1 iteration.
What's wrong with my code below to iterate through the various rank-metrics? I used the simple example from http://www.quantshare.com/sa-586-let-me-show-you-how-to-create-hundreds-of-profitable-trading-systems


ctRank = ApplyRule("", "Ranking_rules", -1); // Return number of rank-metrics in ruleset
Optimize("rankIndex", 0, ctRank - 1, 1);
rankMetric = ApplyRule("", "Ranking_rules", rankIndex); //rank metric in each iteration

rank1 = comp(rankMetric, "percentile"); //
SetSimLongRank(rank1);
buy = 1;



QuantShare
2015-04-18 02:41:58

  0

Make sure a list of rules whose name is "Ranking_rules" exists.


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 Based on the CloseHL Percent Rank Oscillator
Backtest different Segments in your Trading System
Vary the Start Date of a Trading System Simulation
Trading System Template: Position Sizing Techniques
Historical trading volatility-based system to adjust trade sizes

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 a metric in the trading system simulation report
How to add custom position-based metrics to your trading system

Related Forum Threads
Optimize ranking system within a trading system?
Need Simple Example of Ranking Stocks Implemented in Trading Syst...
Trading System Simulation Errors
Simulator Trading System Report
Comp Function in Trading System Rules

Blog Posts
Money Management: Optimize a trading system
How to Optimize a Trading System with Thousands of Billions of Co...
Optimization of a trading system
How to Switch On/Off Trading Rules in Your Stock Trading System
How to Select the Best Market Indicator for your 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.