problem to create Indicator or strategy that get a class or reference type as an ninjascript paramter.
1. if I add only one indicator to the chart almost every thing is OK , except
that the configured list in the Indicators Windows doesn't show the NinjaScriptParameters of the class that I passing.
why??
2. if I add one more of the same indicator so I will have two of the same indicator type and it raised problems:
2.1 if I set for example the Last indicator properties it will set the other indicator properties as well.
2.2 the chart displayed the both indicator but both of them have the same properties with the same properties
2.3 I put print log inside the OnStateChange() and inside the OnBarUpdate() and the results are:
1. both of the indicators reached to state configuration with the same properties - PROBLEM!!
2. both of the indicators Called the OBU same properties - PROBLEM!!
The Major problem is solved if you first put one indicator and close the Indicator window. and then reopen the Indicator
window and put the second indicator.
I also attached the a test file.
Sincerely,Kobi
Comment