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

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 rocketman7, Today, 09:41 AM
        3 responses
        7 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by traderqz, Today, 09:44 AM
        2 responses
        4 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by stafe, 04-15-2024, 08:34 PM
        8 responses
        40 views
        0 likes
        Last Post stafe
        by stafe
         
        Started by rocketman7, Today, 02:12 AM
        7 responses
        31 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by guillembm, Yesterday, 11:25 AM
        3 responses
        16 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X