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:2,668 / 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 90,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

Reply
 
Thread Tools Search this Thread
 

Creating a new HLC Chart Style (not an indicator)

  #1 (permalink)
Elite Member
Cheltenham
 
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 futures.io (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!



Installation

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

Use

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 futures.io 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 HlcChartSyle.zip (2.0 KB, 192 views)

Last edited by pawnbroker; October 30th, 2012 at 06: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
Cheltenham
 
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

Reply



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)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

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


All times are GMT -4. The time now is 06:54 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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 2017-12-13 in 0.10 seconds with 20 queries on phoenix via your IP 54.90.92.204