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

Indicator in separate window

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

    Indicator in separate window

    Hi all,
    is possible to code an indicator that plot an histogram based on "onmarketdata" in a separate window (not with chart)??
    Thanks for all

    #2
    kantkant2, unfortunately this would not be supported via our NinjaScript, however I would believe that to be possible in general as you could raise for example a C# form from your custom script which you could use for custom drawing / visualization of calculated values. I would unfortunately not not be aware of an actual example though to point you to.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Originally posted by kantkant2 View Post
      Hi all,
      is possible to code an indicator that plot an histogram based on "onmarketdata" in a separate window (not with chart)??
      Thanks for all
      Hello,

      If your question is can I show indicator output without showing normal chart data of candle sticks or bars then the answer is yes and there is a couple of ways to achieve that.

      1) Easiest: Add your indicator to a chart and make sure it is added as a new panel. Next right mouse click in the area of the right side scale and select "Maximize". That will create an indicator that is the size of the chart and thus can be sized to your needs.

      2) Create a new chart, after selecting a data series, change the data series to line on close, set the color to transparent and turn of markers and text. This will create a chart without displaying chart data. Next add your indicator. Done.

      Hope this helps.

      Comment


        #4
        thanks Bertrand and Tasker!!
        I attach an indicator that open a new window when start, like a time & sale and a picture of this.
        What is the function in the script that permit this?

        thanks again
        Attached Files
        Last edited by kantkant2; 05-25-2014, 02:05 PM.

        Comment


          #5
          Originally posted by kantkant2 View Post
          thanks Bertrand and Tasker!!
          I attach an indicator that open a new window when start, like a time & sale and a picture of this.
          What is the function in the script that permit this?

          thanks again
          What NT_Bertrand said before.

          Comment


            #6
            ok, sorry sledge, here's an example of what I mean, if anyone know what is the function below ok, if not, thanks anyway! ;-)

            Comment


              #7
              Originally posted by kantkant2 View Post
              ok, sorry sledge, here's an example of what I mean, if anyone know what is the function below ok, if not, thanks anyway! ;-)


              All the code below this statement allows this:

              public class TSForm4 : Form
              {

              Comment


                #8
                another onmarketdata question

                Following from this thread question and rather than starting a new one.

                If a custom chart and bar type already uses onmarketdata in its event processing logic is it possible or not to add another indicator using onmarketdata in its logic and display on the chart window or is there a limitation due to threading that only permits one onmarketdata event loop per chart? I tried this and it didnt seem to display anything or is it possible but there are other programming considerations.

                thanks

                Comment


                  #9
                  soulfx, if I understood you correctly - you can have more than one script work with Level 1 data updates through OnMarketData() on the same chart.
                  BertrandNinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by alifarahani, Today, 09:40 AM
                  6 responses
                  31 views
                  0 likes
                  Last Post alifarahani  
                  Started by Waxavi, Today, 02:10 AM
                  1 response
                  17 views
                  0 likes
                  Last Post NinjaTrader_LuisH  
                  Started by Kaledus, Today, 01:29 PM
                  5 responses
                  13 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Started by Waxavi, Today, 02:00 AM
                  1 response
                  12 views
                  0 likes
                  Last Post NinjaTrader_LuisH  
                  Started by gentlebenthebear, Today, 01:30 AM
                  3 responses
                  17 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Working...
                  X