[NinjaScriptProperty]
[Category(.........
public int EmaPeriod { get; set; }
Initialize(){
EmaPeriod = 11;
...
}
if i call indi_A from strategy initialization like this:
Initialize(){
Add ( indi_A(16) );
}
when printing the value from Indicator, it still prints 11.
So, i think, the initialize method in Indicator, sets the value that is not modified in strategy.
How can i solve that?
I know that if i use private fields for backing the property, that will solve, like:
public int EmaPeriod { get {return MYperiod;} set {MYperiod = value;} }
private int MYperiod = 11;
however, without backing-field, is that possible?
Comment