Click here to Login





                                                   Default Value in Optimization

  0

0
Dave W.
2013-07-10 01:18:32


I'm writing a trading system and would like to have some optimization variables. I'd like to set a DEFAULT value for the optimization variables so I don't have to mess with the code when I'm not in the process of optimizing. I didn't see a way, though, to set a default value for an optimization statement -- the paramaters appear to only allow min, max, and step. If that's the case and there is not a special parameter for a default value, will QuantShare use the min value as the default?

Thanks,
Dave



QuantShare
2013-07-10 03:04:51

  0

Best Answer
Yes, QuantShare will use the min value.

What you can do is comment the optimize function. Example:

//Optimize("test", 1, 10, 1);
test = 5;



Dave W.
2013-07-10 03:16:11

  0

Great. It is just easier to know it will use the min value. Saves me time having to comment-out code.

Thank you.



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
Random Bar Value
Horizontal Line - Changes by Value and Percentage
Value At Risk Measure
% Invested Capital by Value of Index
Random Value for Each Trading Bar

How-to Lessons
How to quickly select stocks based on the last value of a databas...
How to optimize the number of positions in a trading system
How to import trades into a portfolio
How to create a volatility-based Stop - Dynamic stop based on the...
How to change volume bar colors when the price closes down

Related Forum Threads
In-Sample and Out-Of-Sample Dates for Optimization
Trailing stop value with Intraday data
Optimization report - summary export
Compare an indicators current value to past values
Watchlist and adding a Value

Blog Posts
Optimization of trading rules
Optimization in the statistical data analysis tool
Trading Optimization
Optimization of a trading system
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.