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 StockTrader88, 03-06-2021, 08:58 AM
          44 responses
          3,967 views
          3 likes
          Last Post jhudas88  
          Started by rbeckmann05, Today, 06:48 PM
          0 responses
          4 views
          0 likes
          Last Post rbeckmann05  
          Started by rhyminkevin, Today, 04:58 PM
          4 responses
          55 views
          0 likes
          Last Post dp8282
          by dp8282
           
          Started by iceman2018, Today, 05:07 PM
          0 responses
          6 views
          0 likes
          Last Post iceman2018  
          Started by lightsun47, Today, 03:51 PM
          0 responses
          8 views
          0 likes
          Last Post lightsun47  
          Working...
          X