Hi,
I have a question.
In Optimizer/GA, I try to optimize a list buy ruless and a list of sell rules.
I want see the relation between rules and the result of diferent combination of rules. (buy= rule1 and rule2...; buy =rule1 or rule2....; etc)
The problem is that the optimizer only analize the combination of buy rules with the operator AND,
but in the sell rules allways use the operator OR.
How to see all possible combinations?, ie using AND and OR in both types of rules (rules of buying and selling)
Buy rules always use the AND operator and sell rules uses the OR operator. Currently, it is not possible to change that.
It is however possible to use the OR operator with buy rules and AND operator with sell rules by using the "ApplyRule" function.
- You have to optimize a trading system ("using optimize variables in a formula")
- Set up your formula like the following:
c1 = ApplyRule("", "List of rules 1", -1); // Get number of rules
c2 = ApplyRule("", "List of rules 2", -1); // Get number of rules
c3 = ApplyRule("", "List of rules 3", -1); // Get number of rules
I can`t use "optimize variables in a formula" because the system crash (the system is frozen).
I think that I have too many variables or optimizations.
Try reducing the number of rules in your list of rules.
If this doesn't work, please send your optimize item file to support@quantshare.com. We will check it.
Select "Help -> Trading Object Paths" to get the file location
Also, send the last trace files (You can find them in "Trace" directory)
In the example,
C1 = ApplyRule("", "List of rules 1", -1); // Get number of rules c2 = ApplyRule("", "List of rules 2", -1); // Get number of rules c3 = ApplyRule("", "List of rules 3", -1); // Get number of rules
Hello QuantShare,
Are there any other compiler or systems editor?
When I call the optimize method more the seven-nine times the system can`t compile and the system crash.
Besides, when I use applyrule method using a list of rules with optimizable variables the system also crash.
However,
In the AI>optimizer>Tranding system>Using buy and sell rules (GA)
I canīt using ilimitades optimizations.
However, in this way can not be used to cover short rules.Besides, the rules always use the operator Buy and sell rules and using the OR operator.
I suggest removing these limitations. This would be a very powerful tool.
Set as the best answer
However,
In the AI>optimizer>Tranding system>Using buy and sell rules (GA)
I can use ilimitades optimizations.
However, in this way can not be used to cover short rules.Besides, the rules always use the operator Buy and sell rules and using the OR operator.
I suggest removing these limitations. This would be a very powerful tool.
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.