Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

I am in need for Help

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

    I am in need for Help

    I am trying to learn how to create a small library with a windows form to input data to pass it on to a variable in ninjascript... attached is a picture. The way I planned it was, I type the value, this value is converted into double and Added to an array. Then I created a function that acquired this value. Then I went to ninjascript, referenced the library. On initialize method I called the Class.Method to open the form and to assign the array to a local Array I created... it Returns the following error:
    An object reference is required for the non-static field, method, or property 'SupportResistanceLibrary.InputInterfaceCreator.re turnLevels()'

    for boths references I make to the class.Methods. any idea what my problem is and how I can fix it?
    Attached Files

    #2
    Hello Yandychang,

    Thank you for your post.

    Is this returning on line 42 in the NinjaScript code? And if so, may I view the code in VS for the InitializeInputInterface()?

    Comment


      #3
      Hello Patrick:
      Thank you for answering, the issue comes up in lines 42 and 50...
      Attached Files

      Comment


        #4
        Hi Yandychang,

        Using a custom form to return information is not supported by NinjaTrader to do.

        However, there is an indicator on the forum that actually does this, and is open source, that you can use to demonstrate how to return information from another form into your script.

        http://www.ninjatrader.com/support/f...d=4&linkid=475
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        51 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        31 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        99 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        177 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        170 views
        0 likes
        Last Post CarlTrading  
        Working...
        X