Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Is it possible in strategy optimization to input easy language code to toggle certain conditions on and off. Say I am interested in running a scenario of approximately 14 conditions. Condition1, Condition2, etc. But at some point their are going to be too many so I would like to be able to turn conditions on and off to test the multiple combinations of conditions all while doing optimization.
Thanks
Can you help answer these questions from other members on NexusFi?
Just use the "and" operator and comment out the conditions you want to skip for a certain test run. For example,
If condition1
// and condition2
and condition3 then
action
would perform the action (buy, sell, ... etc) if conditions 1 and 3 were met. "//" takes the "and condition2" out of the picture. I think that should work. There are much more efficient ways of doing this, but I think this is the simplest.
Yes that would work but it is too labor intensive to try to go through all the possible combinations which is why I was trying to toggle between condition on/off through some type of optimization code