Boolean Strategy Parameters & DataSeries
Author: ronc
Creation Date: 2/10/2013 1:56 PM
profile picture

ronc

#1
Can Strategy Parameters and Data Series be boolean? I want to vary/optimize some logical conditions so only need booleans for such cases. So far I have been creating them as double (values 0.0 and 1.0) since that seems to be what the the software requires, but it seems wasteful of resources when a boolean would suffice. Can I use booleans as Data Series and Strategy Params and if so how?
Thanks,
Ron
profile picture

Eugene

#2
Strategy parameters can be double or integer.
DataSeries can have values of type double.
This is the way it works.
profile picture

Cone

#3
Integer 0 or 1 works well for an optimizable boolean condition.

You don't need to use DataSeries if you don't actually need double value or any of the associated DS operations; just use good old arrays -

CODE:
Please log in to see this code.
profile picture

Eugene

#4
ronc asked in a duplicate thread:

I am using integers (0,1) as strategy parameters to simulate booleans. I am using genetic optimization. Will the genetic optimizer optimize such parameter values correctly?
profile picture

Eugene

#5
Is there a catch in your question? Yes, any optimizer (not just the Genetic) will handle such parameter values correctly if you defined everything properly.
profile picture

akuzn

#6
Ronc, just an example i use:
CODE:
Please log in to see this code.

USE_DELTA_NORM parameter works fine.
You may do some experiments with StrategyParameters arrayes creating their objects depending on some conditions.
I think it is possible. I ve done some experiments.


Btw, Eugene, what do you think about:
CODE:
Please log in to see this code.

Is it possible to ask you or developers to create method wich can draw signals from such or similar serie?
At the present moment if i need to plot such signals i use transformation to DataSeries and PlotSeries.
May be it ll be possible to create faster drawing methods?
Really not sure because WPF seems needs something like arrayes of doubles but if you use transformation from DataSeries to arrayes may be my transformation from enums (boolean) to DataSeries will be unneded.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).