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
Adaptive Trading System - Percent Winning Trades for the Last N-D...
Backtest different Segments in your Trading System
Vary the Start Date of a Trading System Simulation
Optimizable Fibonacci Long and Short 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
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
How to read the number of positions in trading system

Blog Posts
How to Optimize a Trading System with Thousands of Billions of Co...
Money Management: Optimize a trading system
How to Switch On/Off Trading Rules in Your Stock Trading System
Trading System Analysis: Backtesting report and custom measures
How to choose which technical indicators to use in your trading s...









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.