Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How user can update internal variables of indicator , not via properties

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

    How user can update internal variables of indicator , not via properties

    Hi
    I have developed a complex indicator in NT8.
    The indicator has several parameters which control the way to display information on the chart – "display style".
    At the moment those parameters, usually Boolean and integer variables, are defined as properties of the indicator.
    In case the user wants to change the "display style" he changes the parameters of the indicator. This cause the indicator to recalculate all the data and display the information in the new "display style".
    If the user wants to define a new display style on the fly after the indicator is already active and loaded it is inconvenient as too much time is needed to recalculate the data, this action is not needed at all as the data is already within the indicator and all the change is in the "display style".
    What is needed is a way to communicate with internal variables of the indicator, not properties of the indicator, so that the new display style will be defined based on those variables without the need to recalculate and reload the indicator.
    Any suggestions how to do it?

    #2
    Hello doron,

    Thank you for your post.

    You mean like Plot style and color, correct?

    Comment


      #3
      yes those are examples

      Comment


        #4
        My preferred solution is that the indicator will activate a wpf form which contains a selected collection of internal variables of the indicator.
        The form will display the values of the variables within the indicator and update of a variable value on the form will update the corresponding variable inside the indicator.
        I have no idea how to do it in NT8.
        I will be happy if someone will generate an indicator with one integer variable and one Boolean variable and such a form with the behavior I described above.

        Comment


          #5
          Thank you, doron.

          I will forward your request to development.

          Comment


            #6
            Re hi
            The more I think about it I think the solution is simple.
            Suppose the way ninja behave will be changed as follows:
            After chart is loaded with data and indictors are calculated – if the user change any of the properties of the indicator - just update the value of the corresponding property inside the indicator.
            If the user wishes he can reload the indicator.
            If the user wises he can reload the data .
            This looks simple and effective.
            If you want to save the current behavior of ninja add a property to the chart and or the indicator so that the user can decide how he wants the chart to behave

            Comment


              #7
              Hello doron,

              Thank you for your suggestion on how we can improve our product. It has been inserted into our tracking system with the unique ID # SFT-1385.

              Comment


                #8
                Originally posted by doron View Post
                My preferred solution is that the indicator will activate a wpf form which contains a selected collection of internal variables of the indicator. The form will display the values of the variables within the indicator and update of a variable value on the form will update the corresponding variable inside the indicator.
                I have no idea how to do it in NT8.
                The most popular way of doing this is to just add a button and menu items to NT's toolbar.. Either bind your menu items to your properties, or update those properties thru the click events..
                .
                .
                Or, if you want to be more creative.. Create a window, and whatever grids and panels needed for aesthetics.. Add whatever variables to that, and again, either bind your properties, or change them thru the click events.. Then devise a way of showing and hiding that window..
                .
                .
                There are many examples of buttons and menu items here on the forums that can get you started..
                .
                Attached Files
                -=Edge=-
                NinjaTrader Ecosystem Vendor - High Tech Trading Analysis

                Comment


                  #9
                  hi
                  I know how to add a bottom to a chart and to react as a result of click on it.
                  I failed to create a wpf form in NT8 .
                  I need an example of simple WPF form with bool variable , and integer variable that can be linked to an indicator.

                  Comment


                    #10
                    Hello doron,

                    Thank you for your post.

                    You can find an example attached.
                    Attached Files

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Welovethelibrary, Today, 11:44 AM
                    0 responses
                    1 view
                    0 likes
                    Last Post Welovethelibrary  
                    Started by goodknight777, Today, 11:39 AM
                    0 responses
                    2 views
                    0 likes
                    Last Post goodknight777  
                    Started by MohammedAmine, Today, 10:44 AM
                    1 response
                    6 views
                    0 likes
                    Last Post NinjaTrader_Kate  
                    Started by Nolyn, Today, 10:59 AM
                    1 response
                    7 views
                    0 likes
                    Last Post NinjaTrader_BrandonH  
                    Started by Gkomi, Today, 10:02 AM
                    1 response
                    8 views
                    0 likes
                    Last Post NinjaTrader_Jim  
                    Working...
                    X