• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

WinForms text indicator

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

    WinForms text indicator

    Hello. I want to add winforms application to text indicator. When user adds indicator on chart winforms app starts. How i can do it?
    Last edited by Eddard; 04-15-2014, 10:37 AM.

    #2
    Hello Eddard,

    This would be outside of our Supported methods to accomplish something like this.

    With that said, I can try to point you in the right direction to help you get started with this if you would like to proceed.

    So there is another users who has created a Notes Panel, that will create a window that you can use as an example at the following link.

    http://www.ninjatrader.com/support/f...d=4&linkid=475

    As to check for an Indicator, you may try to use the "ChartControl.Indicators" object for something like that.
    JCNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_JC View Post
      Hello Eddard,

      This would be outside of our Supported methods to accomplish something like this.

      With that said, I can try to point you in the right direction to help you get started with this if you would like to proceed.

      So there is another users who has created a Notes Panel, that will create a window that you can use as an example at the following link.

      http://www.ninjatrader.com/support/f...d=4&linkid=475

      As to check for an Indicator, you may try to use the "ChartControl.Indicators" object for something like that.
      I made the test app. It in attach. However at start for some reason there is a creation of several streams, 3 log files( not one?) are created. Why so occurs and how it avoid?
      Attached Files

      Comment


        #4
        Hello Eddard,

        I believe this is going to be due to the fact that Initialize() can be called more than once which is creating new files since you are changing the name of the file by a seconds increment.

        http://www.ninjatrader.com/support/h...initialize.htm

        So you may either remove the write log for this or change the name so it is not creating a new file if Initialize is called after 1 second.
        JCNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_JC View Post
          Hello Eddard,

          I believe this is going to be due to the fact that Initialize() can be called more than once which is creating new files since you are changing the name of the file by a seconds increment.

          http://www.ninjatrader.com/support/h...initialize.htm

          So you may either remove the write log for this or change the name so it is not creating a new file if Initialize is called after 1 second.
          Problem not in log file. Problem - why several initialize are caused? It must be one initialize for my app.

          Comment


            #6
            Hello Eddard,

            Initialize is can be called several times due to how NinjaTrader processes events. If you want only a single instance called in NinjaScript before your script runs you may just want to use OnStartUp().
            JCNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by wishing, 07-19-2019, 03:33 PM
            1 response
            26 views
            0 likes
            Last Post NinjaTrader_PatrickG  
            Started by Venom, Yesterday, 01:05 PM
            1 response
            20 views
            0 likes
            Last Post NinjaTrader_ChrisSch  
            Started by thgamey, Today, 02:05 AM
            2 responses
            14 views
            0 likes
            Last Post thgamey
            by thgamey
             
            Started by yeshujbp, Yesterday, 02:40 PM
            1 response
            11 views
            0 likes
            Last Post NinjaTrader_PaulH  
            Started by sardana, Today, 05:52 AM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_PaulH  
            Working...
            X