Click here to Login





                                                   How to "OR" 20+ Buy rules from a Ruleset?

  0

0
Kiran
2015-05-18 12:15:44


I have a ruleset of 20-30 rules.
How do i Or them in the Strategy script or using Masks?

This approach below isn't elegantwith 20+ rules and I have to keep changing the strategy script when i add/delete a rule in the Ruleset.

R1 = ApplyRule("..", 1);
R2 = ApplyRule(.., 2);
...
...
buy = R1 or R2 or ... R25


thanks,
Kiran



QuantShare
2015-05-19 13:46:36

  0

Unfortunately there is no other way to do that.


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
How far are the close prices from the support line
Trading Strategy based on the Number of Buy Signals
Trading Rules to use with the Trading System Optimizer
The Best trading rules for the ADX technical indicator
Lagged Data From a Custom Database

How-to Lessons
How to generate buy/sell signals from a trading system
How to get trading orders from a portfolio programmatically
How to create trading rules based on Put and Call volume data
How to import trading items from other accounts
How to add trades from one portfolio to another one

Related Forum Threads
dynamic position sizing based on stocks selected by the buy rules
Buy and Sell rules combination in Optimizer.
Backtest, if number of buy is more than open positions, how QS se...
How do I Import Tick Data from a CVS file
How to edit a trading system i've downloaded from shared server?

Blog Posts
How to create buy and sell trading rules based on News Data
Trading System: Moving average crossover and few others buy and s...
How to Backtest a Strategy from a Chart
Buy the best/top rated stocks or how to create powerful rank base...
How to get buy and sell orders for a portfolio based on a trading...









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.