• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ChartControl ChartStyleType

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

    ChartControl ChartStyleType

    Hello,

    I have not been able to figure out the NT8 method for determining the chart type.

    For example, in NT7 I would do the following via ChartControl to determine if the chart type was Candlestick:


    if (ChartControl.ChartStyleType == ChartStyleType.CandleStick)
    {
    // do something
    }

    How can I do the equivalent in NT8?

    Thanks for your help!

    #2
    I have not tested this myself, so I'm not sure if its 100% correct, but I believe what you're looking for goes something like this ...

    if (ChartBars.Properties.ChartStyleType() == ChartStyleType.Box)
    ChartStyleType.CandleStick
    ChartStyleType.LineOnClose
    ChartStyleType.OHLC
    ChartStyleType.PointAndFigure
    ChartStyleType.KagiLine
    ChartStyleType.OpenClose
    ChartStyleType.Mountain
    {
    // pick one and do something with it here
    }

    Comment


      #3
      Hello jbenton,

      Thanks for your post and welcome to the forums!

      Member gubbar924 was close (thank-you), you would want to test using:

      if (ChartBars.Properties.ChartStyleType == ChartStyleType.Box)
      {
      // do something
      }

      Reference: http://ninjatrader.com/support/helpG...us/?charts.htm
      Paul H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by xsgex, Yesterday, 09:46 PM
      0 responses
      2 views
      0 likes
      Last Post xsgex
      by xsgex
       
      Started by Steve L, Yesterday, 09:36 PM
      0 responses
      3 views
      0 likes
      Last Post Steve L
      by Steve L
       
      Started by krugman25, Yesterday, 09:34 PM
      0 responses
      4 views
      0 likes
      Last Post krugman25  
      Started by indy73, Yesterday, 04:42 PM
      0 responses
      15 views
      0 likes
      Last Post indy73
      by indy73
       
      Started by Italianforex, Yesterday, 06:20 AM
      2 responses
      13 views
      0 likes
      Last Post gplatis
      by gplatis
       
      Working...
      X