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 Shansen, 08-30-2019, 10:18 PM
    24 responses
    938 views
    0 likes
    Last Post spwizard  
    Started by Max238, Today, 01:28 AM
    0 responses
    3 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by rocketman7, Today, 01:00 AM
    0 responses
    1 view
    0 likes
    Last Post rocketman7  
    Started by wzgy0920, 04-20-2024, 06:09 PM
    2 responses
    27 views
    0 likes
    Last Post wzgy0920  
    Started by wzgy0920, 02-22-2024, 01:11 AM
    5 responses
    32 views
    0 likes
    Last Post wzgy0920  
    Working...
    X