Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 GussJ, 03-04-2020, 03:11 PM
    16 responses
    3,280 views
    0 likes
    Last Post Leafcutter  
    Started by WHICKED, Today, 12:45 PM
    2 responses
    19 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Started by Tim-c, Today, 02:10 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Taddypole, Today, 02:47 PM
    0 responses
    5 views
    0 likes
    Last Post Taddypole  
    Started by chbruno, 04-24-2024, 04:10 PM
    4 responses
    53 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Working...
    X