Creating a new HLC Chart Style (not an indicator) - NinjaTrader Programming | futures io social day trading
futures io futures trading

Creating a new HLC Chart Style (not an indicator)
Updated: Views / Replies:3,343 / 3
Created: by pawnbroker Attachments:2

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Thread Tools Search this Thread

Creating a new HLC Chart Style (not an indicator)

  #1 (permalink)
Elite Member
Futures Experience: Advanced
Platform: InvestorRT, NinjaTrader
Favorite Futures: ES
Posts: 54 since Jan 2012
Thanks: 8 given, 100 received

Creating a new HLC Chart Style (not an indicator)

I like HLC bars and I have tried the indicators on (formerly BMT), but these are not a new type of bar objects and they do not get coloured by paint bar indicators for that reason.

I have looked for and found a way to add a new chart style for NT7, which does work with indicators that colour bars. This will be interesting if you want to see how to create a new chart style or if you want the option to use HLC bars.

NT has been extended to include Bloomberg style Mountain Charts by creating a new chart style. Taking that as an inspiration, I copied code from @ChartStyles.cs [1] for the OHLC chart style and modified that code to only show the HLC parts.

I am new to C# and NT and this is an advanced modification, so I would appreciate a review of the code by the experienced members, before posting the new chart type for general use.

Please take a look at the code and let me know if any modifications are needed. The version 1.0 copy is attached.

In my own tests it works fine, but I don't want to release this if there are obvious flaws!


Download, then follow the usual import procedure. File, Utilites, Import NinjaScript


Open a new chart and select HLC as the chart style or open the data series in an open chart and select HLC. These are the same steps you would follow to change from OHLC to CandleStick. Do not look for an indicator, because my code is not an indicator, its a new chart style.

Code Modification

This is not an indicator and you need to follow this method to make changes.
  1. Copy the Type directory from the zip file to your disk.
  2. Edit HlcChartStyle.cs with your text editor.
  3. Delete the Type folder from the zip file and replace with the modified version.
  4. Re-import the ChartType and accepting the warnings

Removing the New Chart Type

I am not sure how to completely remove the new chart style, but I can confirm that it can't be done by the method you use to remove an indicator via the NT GUI. After installing the new chart type, you should see HlcChartSyle.cs in the directory [1], but there may be other places with references to the chart style. So it may not be as simple as deleting the cs file from [1].

My Guess Work

@BarTypes [1] contains references to ChartStyleType.Custom0 to 9 and I do not understand how these work. The Mountain style chart has base(ChartStyleType.Custom3) and that did not work for me, so I tried Custom0 and that did work.

I don't know if these are "slots" that can be used or different specifications. For example, I installed the Mountain style charts first and that may have used up the "slot" for Custom3 and that may be why I was unable to get things to work. If that is correct, Custom0 may have worked because the slot was free on my machine.

If the Custom0-9 styles are slots, there could be deployment issues as the slot is hard coded into the new type and there may be a problem if that slot is already in use (not too likely, unless it becomes popular to create new chart styles!).

Line 97 public HlcChartStyle() : base(ChartStyleType.Custom0)

Screenshot showing HLC bars, coloured by Better ProAm
Please register on to view futures trading content such as post attachment(s), image(s), and screenshot(s).

[1] \NinjaTrader 7\bin\Custom\Type

Attached Files
Register to download File Type: zip (2.0 KB, 200 views)

Last edited by pawnbroker; October 30th, 2012 at 05:05 PM.
Reply With Quote
The following 5 users say Thank You to pawnbroker for this post:
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

  #3 (permalink)
Elite Member
Futures Experience: Advanced
Platform: InvestorRT, NinjaTrader
Favorite Futures: ES
Posts: 54 since Jan 2012
Thanks: 8 given, 100 received

I have posted a new version of the chart style in the download section for NinjaTrader.

There are a few small changes to improve the appearance.

Reply With Quote
The following 6 users say Thank You to pawnbroker for this post:
  #4 (permalink)
Trading Apprentice
Calgary Alberta Canada
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Futures
Posts: 7 since Jan 2014
Thanks: 0 given, 0 received

Thank you very much. This is good stuff!

Reply With Quote


futures io > > > > > Creating a new HLC Chart Style (not an indicator)

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

July Journal Challenge - $500 in Amazon Gift Cards!


AXESS Trader: Powerful Cloud Based Trading Platform w/GFF Brokers

Jul 17

TBA: FuturesTrader71 w/Morad Askar

Elite only

Similar Threads
Thread Thread Starter Forum Replies Last Post
creating custom 'forms' or chart windows dlatbm NinjaTrader Programming 3 October 20th, 2011 07:38 AM
Please help creating a NinjaTrader Indicator jjl1753 NinjaTrader Programming 4 June 13th, 2011 09:26 PM
Is there a video tutorial on creating a NT indicator (in 6.5)? Thanks. aquarian1 NinjaTrader 9 May 16th, 2011 05:56 PM
Interested in creating an indicator for me? estrader14 NinjaTrader Programming 2 February 20th, 2011 05:46 PM
Help creating this indicator in NT7 marin NinjaTrader Programming 1 October 24th, 2010 11:30 AM

All times are GMT -4. The time now is 11:56 PM. (this page content is cached, log in for real-time version)

Copyright © 2018 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2018-07-16 in 0.10 seconds with 15 queries on phoenix