Hi,
Assume that I have 4 Strategy Parameters, and I would like to print the `preferred values` of this strategy parameters set, using a sort of a loop.
I cant recall where, but I found this piece of code that supposedly captures the values of the strategy parameter window for the given strategy:
CODE:
Please log in to see this code.
However, this code prints not the preferred values of the strategy parameters, but rather, the default values of each strategy parameter.
i.e. if the default values of 2 strategy parameters are, say (1,2) and the preferred values are, say, (11,12),
- this loop prints `(1,2)`
- but, what I am after is the preferred values of the strategy parameters, i.e. `(11,12)`
- as when I printDebug(strategyParameter1.ValueInt), it returns, correctly, `11`.
**
How should I modify the code piece presented above so that I can, say at the end of the strategy code, capture (not the default values but) the preferred values of the strategy's strategyparameters, so that I can use this string at whereever I want? (Such as printing this string onto the ChartPanes, or, inserting into the database, or, as signalname etc?)
Thanks in advance for your interest and time.
Best regards,
Aykut