Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

problem to create Indicator that get a class type as a parameter

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    problem to create Indicator that get a class type as a parameter

    Hello,

    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
    Attached Files

    #2
    Hello levikNT,

    Thank you for your patience.

    I wanted to let you know we can reproduce this and we are looking into this further on our end.

    I will update this thread when I have additional information.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    133 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    118 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X