Click here to Login

                                                   ApplyRule example in trading system


2014-08-24 12:26:01

Quantshare Language manual documents the ApplyRule("category_name", "list_rules_name", 1).
The general manual, in the Rule Manager section, mentions "When creating a trading system, you can define already created rules as buy, sell, and short or cover

I would like to reference an existing Rule List, called "ROC", which has three rules within it. I want to call these rules with a strategy system
(and ideally also within a custom function), but I could not get the syntax to work.

Could you please give the an example of that.


2014-08-25 08:32:31


Best Answer

2014-08-25 08:38:05


I missed that example, thanks.

No more messages


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"


Trading Items
Intraday Trading System with Daily Ranking
Historical trading volatility-based system to adjust trade sizes
Backtest different Segments in your Trading System
Vary the Start Date of a Trading System Simulation
Trading System Based on the CloseHL Percent Rank Oscillator

How-to Lessons
How to optimize the number of positions in a trading system
How to add custom position-based metrics to your trading system
How to optimize an indicator in your trading system
How to debug a trading system using the money management tool
How to set order type of a trading system programmatically

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

Blog Posts
Example of a trading system implemented in QuantShare Software
Optimization of a trading system
How to Switch On/Off Trading Rules in Your Stock Trading System
9 mistakes you should avoid when backtesting an end-of-day stock ...
How to choose which technical indicators to use in your trading s...

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2024
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
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.