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 fx.practic, 10-15-2013, 12:53 AM
      5 responses
      5,403 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by Shai Samuel, 07-02-2022, 02:46 PM
      4 responses
      94 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by DJ888, Yesterday, 10:57 PM
      0 responses
      6 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by MacDad, 02-25-2024, 11:48 PM
      7 responses
      158 views
      0 likes
      Last Post loganjarosz123  
      Started by Belfortbucks, Yesterday, 09:29 PM
      0 responses
      8 views
      0 likes
      Last Post Belfortbucks  
      Working...
      X