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

Function .Set

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

    Function .Set

    Hello,

    I have an indicator that has the next code in NT7:

    MyIndicadtor.Set(1, IndicatorB[1]);

    How can I traduce this code to NT8?

    Thanks!

    #2
    Hello soyjesus,
    Thanks for your post.

    In NT8 you would simply use an "=" assignment operator along with the appropriate index value, instead of ".Set". The equivalent of this in NT8 would be--

    Code:
    MyIndicator[0] = (1, IndicatorB[1]);
    The following help guide documentation details how you can work with Series<T> objects like this one in NT8.

    Series<T>
    https://ninjatrader.com/support/help...s/?seriest.htm

    Also, as you convert code over from NT7 to NT8 you would be well served by looking through the code-breaking changes, as this will detail what parts of your scripts will need to be changed to be in compliance with NT8's under the hood changes.

    Code Breaking Changes
    https://ninjatrader.com/support/help...ng_changes.htm

    Please let me know if you have any further questions.
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Thank you for your help and sorry but I have another question about indicators:

      When I am developing a new indicator I need to refresh mi scren continuously to check the changes.
      How can I do it with NT8? Becase at this moment I only can do it removing the indicator from the screen and inserting it again.

      Comment


        #4
        Hello soyjesus,

        In most cases you can right-click inside your chart and select "Reload NinjaScript" to immediately see changes you have made to the script.

        Please let me know if you have any further questions.
        Josh G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mongo, Today, 11:05 AM
        2 responses
        7 views
        0 likes
        Last Post Mongo
        by Mongo
         
        Started by guillembm, Today, 11:25 AM
        0 responses
        3 views
        0 likes
        Last Post guillembm  
        Started by Tim-c, Today, 10:58 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by traderqz, Yesterday, 09:06 AM
        4 responses
        27 views
        0 likes
        Last Post traderqz  
        Started by traderqz, Today, 12:06 AM
        4 responses
        8 views
        0 likes
        Last Post traderqz  
        Working...
        X