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 samir, Today, 07:00 PM
        0 responses
        9 views
        0 likes
        Last Post samir
        by samir
         
        Started by travisloneker, Today, 06:52 PM
        0 responses
        4 views
        0 likes
        Last Post travisloneker  
        Started by InfraredBusa, Today, 05:50 PM
        0 responses
        3 views
        0 likes
        Last Post InfraredBusa  
        Started by White Fork, Today, 04:56 PM
        1 response
        8 views
        0 likes
        Last Post White Fork  
        Started by steveyinyang, Today, 02:48 PM
        3 responses
        20 views
        0 likes
        Last Post steveyinyang  
        Working...
        X