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 Taddypole, 04-26-2024, 02:47 PM
          2 responses
          12 views
          0 likes
          Last Post Taddypole  
          Started by futtrader, 04-21-2024, 01:50 AM
          6 responses
          58 views
          0 likes
          Last Post futtrader  
          Started by sgordet, Today, 11:48 AM
          0 responses
          4 views
          0 likes
          Last Post sgordet
          by sgordet
           
          Started by Trader146, Today, 11:41 AM
          0 responses
          5 views
          0 likes
          Last Post Trader146  
          Started by jpapa, 04-23-2024, 07:22 AM
          2 responses
          22 views
          0 likes
          Last Post rene69851  
          Working...
          X