Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Creating a new chart on the fly

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

    Creating a new chart on the fly

    I'm writing a "scanner" that runs as a strategy and would like to be able to create a new chart on the fly when a new alert is triggered. Is there a programmatic way to do that within Ninja Trader?

    Thanks,

    Leroy

    #2
    Hello Leroy,

    There would be no supported way create a new chart on the fly programmatically. You may use the Market Analyzer to "scan" the market and quickly create a chart by right clicking on the chart row of the Instrument that you would like to create and select "Send to" -> "Chart..."

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

    Let us know if we can be of further assistance.
    JCNinjaTrader Customer Service

    Comment


      #3
      There has to be a way

      There has to be a way to do it. You guys do it in the strategy analyzer...and of course, there is the old windows standby 'windows messaging'. Please did a little deeper....this would be an incredible upgrade for future versions (for an API), but it is possible to do it now even with only windows messaging.

      Please take another look.

      Leroy

      Comment


        #4
        Hello Leroy,
        You can take reference from the rollover indicator and further custom code your NinjaScript code using the MiniInstrumentSelector class to change the instrument/periodicity of a chart.


        However nothing we could officially support.
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          Done

          I did it....but it wasn't easy. You guys should definitely give us a method to create a new "default" chart or let us specify the settings to use when creating a new chart.

          Works pretty well, but since I could not find an API....I had to brute force it through your api.

          Leroy

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          20 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          120 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          175 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          92 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          134 views
          0 likes
          Last Post cmoran13  
          Working...
          X