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 Stanfillirenfro, Today, 07:23 AM
          1 response
          4 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by cmtjoancolmenero, Yesterday, 03:58 PM
          2 responses
          22 views
          0 likes
          Last Post cmtjoancolmenero  
          Started by olisav57, Yesterday, 07:39 PM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by cocoescala, 10-12-2018, 11:02 PM
          7 responses
          944 views
          0 likes
          Last Post Jquiroz1975  
          Started by oviejo, Today, 12:28 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X