Click here to Login





                                                   Genetic Algos Optimization

  0

0
Husain
2010-09-16 10:59:21


So I have made a strategy and ran a GA to determine the best parameters defined by the best fitness function.

I had two questions .

When running the GA on a trading system made up through the rules analyzer , it defaults the number of positions to 4 or 5 ( not sure ) .
How do I have a rule to have no more than 2 positions at a time . Something like the Strategy Simulator .. ?

Also lets say the entry functions and the exit functions are like as below

Entry = Rule ( a) && Rule(b) && Rule (c)
Exit =Rule(a) || Rule(b) || Rule(c)

How do I setup when I run the GA on it that the a , b , c ( parameters which will be optimized ) have the same values in both the entry and exit .

So lets say if entry a = 5 , then exit a = 5 as well?




QuantShare
2010-09-16 14:18:04

  0

For the first question: In the Settings tab, in the Optimizer, click on "Optimization", select "Number of Symbols" under the "Variables" column and set the min and max values to 2.

For the second question. I am not sure I understand exactly what you want.

Here is an example of buy rule:
Buy = rsi(14) > 50 && close > sma(20);

Please give me an example of a sell rule.



Husain
2010-09-16 14:40:52

  0

Thanks

Sell = rsi(14)< 50 || close < sma(20);

where 50 and 20 is what you have obtained from your GA which applies to your entries as well.



QuantShare
2010-09-16 16:56:52

  0

Best Answer
In order to perform this, we will add an option (in the next release) that instructs the application to select sell rules based on the index of buy rules.

Example List of Rules1:
rsi(14) > 50
rsi(2) > 70
close > sma(20)

Example List of Rules2:
rsi(14) < 50
rsi(2) < 70
close < sma(20)

If the optimizer select rsi(2) > 70, then it will automatically select rsi(2) < 70 as a sell rule because it has the same index (which is 2 here)



Husain
2010-09-16 17:34:25

  0

Great . Thanks for the awesome support.

Looking forward to the next release. ( When is it planned ? )



QuantShare
2010-09-17 03:40:24

  0

Between 2 and 3 weeks


QuantShare
2010-10-11 15:21:05

  0

The synchronization feature was implemented in version 1.9.1
Right click on a sell rule to enable it.



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
Minimum Variance Optimization with Solver V1.1- AMM
Strategy Optimization on Random in-sample and out-of-sample Perio...
Choose function
Global Market Rotation Strategy V1.1
Butler Adaptive Asset Allocation Model V1.0

How-to Lessons
How to optimize a neural network using a genetic algorithm
How to optimize the number of positions in a trading system
How to improve the performance of QuantShare databases?
How to create a volatility-based Stop - Dynamic stop based on the...
How to optimize an indicator in your trading system

Related Forum Threads
Ranking System optimization - how to interpret?
In-Sample and Out-Of-Sample Dates for Optimization
Exporting optimization results
Genetic Algorithm (GA) vs Population-Based Incremental Learning (...
AI Optimization of Ranking

Blog Posts
Optimization of trading rules
Optimization of a trading system
Trading Optimization
Optimization in the statistical data analysis tool
QS Trading Software: Database Optimization









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.