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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    38 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    14 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X