skip navigation

AB-HZone

Horizontal Price Levels

This drawing tool is very straight-forward and works like virtually all other NinjaTrader drawing tools. Once installed, simply select 'AB-HZone (version)' from the drawing tools drop-down menu to use it. Click once to set the first side of your price zone and click again to set the opposite side of your zone. Click on anchors to change your zone, click on the zone and drag to move it and double-click anywhere inside to access the properties. If you right-click on your zone, you can access its properties and alerts. I tried to give all the options names that make sense and, if you hover over them with your mouse, I've included more detailed descriptions as appropriate. Overall, I don't think there's too much that's a mystery. However, this page will provide an overview just in case something doesn't make sense to you.

keep me updated!

Download Instructions

You can download the latest version of AB-HZone here . Make sure you save the file somewhere you can find it easily -- your Downloads folder or your Desktop are usually the easiest places. If you wish to verify your download, the SHA-256 checksum is displayed below the download button for each release on the Downloads page.

Installation, Upgrades & Removal

installation

  1. Open NinjaTrader and go to the main control window (the one with the main program menu) and select Tools | Import | NinjaScript Add-On... [Installation screenshot 1]

  2. Navigate and find the ZIP file you downloaded. Select it and click "Open". NinjaTrader will install the file for you.

  3. Assuming there are no errors, you should see a dialog box saying "NinjaTrader successfully imported all scripts contained in the NinjaScriptArchive File." [Installation screenshot 2]

  4. That's it, you're done!

upgrading

Upgrading involves removing the previous version and then installing the new version just as you did in the initial installation.

You MUST remove the previous version or NinjaTrader will fail to perform the upgrade. If you don't remove the previous version, you will see a dialog box saying "Import failed..." [Screenshot showing upgrade error]

  1. Follow the steps in the "Uninstallation" section below to remove the current (old) version.

  2. Now, follow the steps in the "Installation" section above to install the newest version. Just make sure you choose the newest ZIP (it will have the highest version number) and that will do the "upgrade" for you. Upgrading really is just installing the latest version. Your existing templates will be unaffected and will be automatically reapplied after the upgrade.

removal

It is recommended you remove any custom indicators from within NinjaTrader instead of deleting the file manually (though I've never experienced any problems manually deleting files). We will go through the recommended procedure here.

  1. On the main NinjaTrader Control Center window (the one with the main program menu), select Tools | Remove NinjaScript Assembly [DLL uninstallation screenshot 1]

  2. A new window will appear asking you to select which assembly you want to remove. Select ABHZone_version (where '_version' is the currently installed version number) and click "Remove". [DLL uninstallation screenshot 2]

  3. NinjaTrader will display a confirmation dialog box asking if you're sure. You are. Say Yes.

  4. Assuming no errors, you will get a success message. Click OK to close the dialog box. [DLL uninstallation screenshot 3]

  5. Click CLOSE on the "Remove NinjaScript Assembly" dialog box to close it. [DLL uninstallation screenshot 4]

  6. AB-HZone is now uninstalled. If you removed the indicator as part of the upgrade process, please follow the "Installation" section above to complete the upgrade.

Using In NinjaTrader

This drawing tool appears along with all other NinjaTrader drawing tools in the same 'pencil' drop-down menu. It follows the standard drawing tools usage rules, but, here's a more detailed breakdown:

adding to your chart

Open the drawing tools drop-down menu or open the context-menu and find AB-HZone (version). [Screenshot of drawing tools menu]

Click to select the tool and change your cursor to a pencil. Click on the first point that defines your zone (i.e. high or low) then move your mouse to the point that defines the other boundary of your zone and click the mouse again. The horizontal zone box will be drawn.

interaction

Clicking once on or around your zone box will select it. Clicking the zone and dragging the mouse will move the entire zone. Clicking and dragging on an anchor will redefine your zone and change its shape. Double-clicking on your zone will open the properties grid. Right-clicking on your zone will open the context menu which will allow you to open the properties grid, set alerts or remove the drawing tool.

assigning a hot-key

If you want quick access to the drawing tool, you can assign it a hot-key:

  1. In the NinjaTrader Control Center (main window), click on Tools | Hot Keys. [NinjaTrader Tools menu].

  2. In the new window that opens, select Chart on the left side.

  3. On the right side, scroll all the way down until you see AB-HZone (version). [Hot Keys dialog box].

  4. Click on the empty box to the right and enter the hot-key combination you'd like to use for this drawing tool.

  5. Click OK to close the dialog box and save your changes.

alerts

Alerts are handled using the built-in NinjaTrader alerts system. Right-click on your zone and select Alerts. This will bring up the NinjaTrader alerts dialog. More information about the alerts system can be found in the NinjaTrader official documentation . The alerts dialog is pretty complicated so you might find this YouTube video about NinjaTrader alerts or this YouTube video with some alert examples helpful.

Parameters

Click on any of the options below to expand it and read a more detailed explanation of what the particular parameter does. This section will be updated with each new release version.

line options

Zone fill

Standard NinjaTrader 'stroke' settings where you can set the colour and opacity. For the zone fill, dash style and width will have no effect. By default, this is set to Gold, 15% opacity.

Zone outline

Standard NinjaTrader 'stroke' settings where you can set colour, opacity, dash style and line width. All settings are applied to the outline. By default, this is set to Gold, 1px solid line, 85% opacity.

drawing options

Extend right

This will extend your zone to the "hard-right-edge" of your screen. This option overrides all other options. This is selected by default.

Extend fixed

This will extend your zone by the number of bars you specify. If you set this to 0, your zone will simply be a box around the two points you selected. Please note: Extend right overrides this option!

label options

Display price labels

Select this to enable price labels being drawn. By default, this is unchecked (disabled).

Custom top label

Text that should be used as a custom label for the top of the zone. If this is empty or contains only whitespace, no label will be rendered. Can be combined with price labels and bottom label text. By default, this is empty.

Custom bottom label

Text that should be used as a custom label for the bottom of the zone. If this is empty or contains only whitespace, no label will be rendered. Can be combined with price labels and top label text. By default, this is empty.

Label alignment

This determines whether the labels are aligned to the left or right side of the zone. By default, this is set to Right.

Label position

This specifies whether labels are drawn outside or inside (within) the zone. If you place labels inside the zone, you may want to consider changing their colour for better visibility. By default, this is set to Outside.

Label font

Standard NinjaTrader 'font' settings where you can choose the font family, size (in pixels) and decorations (bold or italic). In practice, the font family and size are the most useful options. The default is Lucida Console, 12px.

Label brush

Standard NinjaTrader 'stroke' settings. This primarily sets the colour used when drawing labels. In practice, only the colour and opacity settings have an effect. Dash-style and width don't apply to text. The default is Gold, 100% opacity.

general

Cursor sensitivity

This controls how sensitive the zones are to your mouse clicks. The default is likely fine but, if you have a very small chart or very high resolution screen you may want to lower this number. If you have very large charts or a super-large screen, you may want to increase this number.

contact me

Want to stay updated on new releases? Have questions or found a bug? Want to submit a feature request? Feel free to email me by clicking the button below. I'll be happy to answer any questions you have, help you get the indicator set-up, or let you know about incorporating your suggestion(s) into future versions. If you know how to program for NinjaTrader or in C#/.NET in general and want to contribute, email me using the button below or file an issue or pull request in the git repo (preferred).

email me