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 giulyko00, Today, 12:03 PM
          0 responses
          2 views
          0 likes
          Last Post giulyko00  
          Started by AttiM, 02-14-2024, 05:20 PM
          12 responses
          213 views
          0 likes
          Last Post DrakeiJosh  
          Started by cre8able, 02-11-2023, 05:43 PM
          3 responses
          238 views
          0 likes
          Last Post rhubear
          by rhubear
           
          Started by frslvr, 04-11-2024, 07:26 AM
          8 responses
          117 views
          1 like
          Last Post NinjaTrader_BrandonH  
          Started by stafe, 04-15-2024, 08:34 PM
          10 responses
          47 views
          0 likes
          Last Post stafe
          by stafe
           
          Working...
          X