CreateParameter.Reset
Author: Rebelion
Creation Date: 4/6/2013 3:04 PM
profile picture

Rebelion

#1
Hello, guys.

I have a question about CreateParameter method. What's the method of dynamic limit values setting through the CreateParameter? Is it possible to update values of variables in the visual part (left bottom corner) if I change StrategyParameter variable through Start and Stop properties?

Thanks.
profile picture

Eugene

#2
Please clarify what are you trying to achieve by that.

P.S. And just to be on the safe side: you're not dragging the sliders in Multi-Symbol mode, don't you? This will not execute the Strategy (by design).
profile picture

Rebelion

#3
For example, I need to optimize my strategy using different size of renko candles. But I don't know at first the instrument I will use for this. It may costs for 100$ or 1$. I wanna write uniform strategy (using MSVS) which self adapting to the current price (for example, getting price step through max and min prices on the time horizont). How it possible to do? I know I can change StrategyParameter properties in my code, but I don't know how to renew data which visualised in the left bottom corner...
profile picture

Eugene

#4
I still don't see absolutely any connection to manipulating the bottom left corner and executing or optimizing your strategy using standard means.
profile picture

Rebelion

#5
Okay, let's divide this question for 2.

1) Is it any way to create dynamic strategy parameter different than the method of changing Start, Stop and Step properties of StrategyParameter object? Will the strategy recalculate the count of steps it will need to pass with new parameters?

2) When I open a strategy with the same parameters, I get left bottom corner window with these parameters placed on the default values. Is it possible to change them through the code? Cause when I optimized strategy and double click on the row with parameters I need, I have no reaction in this window (but if I not recreate StrategyParameter objects, It works well). What should I do for a) changing the default value visualized in this windows, b) changing values on the optimized values I've got earlier by optmization?

Thnxs.

Sorry for my bad English. :(
profile picture

Rebelion

#6
Sorry, guys, I'm the dumb. Now it works good.
Pls, tell me, what's the method "Reset()" in the StrategyParameter class need for?
profile picture

Eugene

#7
Dmitry, what did you do to alleviate the problem (which appears cryptic)?

What's the need to call the undocumented StrategyParameter.Reset method?
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).