Set DataSetName, DataRange and/or PositionSize programmatically
Author: Panache
Creation Date: 11/21/2017 2:10 AM
profile picture

Panache

#1
In order to minimize human error, my Stategies use GetDataSetName, GetDataRange and GetPositionSize for error checking Strategy settings. However, being able to set these programmatically would be vastly superior to error checking. Is there a way to programmatically set any or all of these?
profile picture

Eugene

#2
Sorry, this is not supported. These methods are Reflection-based hacks. You could look inside the open source code to see how they're composed, and try calling SetValue instead of GetValue in your own methods by analogy. I haven't tried it and am pretty sure this can rather introduce errors the minimize them. And did I say that this is completely unsupported?
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).