{"id":842,"date":"2017-10-03T17:55:37","date_gmt":"2017-10-03T16:55:37","guid":{"rendered":"http:\/\/pjsmith.me.uk\/?p=842"},"modified":"2019-10-09T09:16:50","modified_gmt":"2019-10-09T08:16:50","slug":"opening-range-indicator-for-ninjatrader-8-2","status":"publish","type":"post","link":"https:\/\/pjsmith.me.uk\/index.php\/2017\/10\/opening-range-indicator-for-ninjatrader-8-2\/","title":{"rendered":"Opening Range indicator for Ninjatrader 8"},"content":{"rendered":"<p><strong>pjsOpeningRange &#8211; An opening range indicator for Ninjatrader 8<\/strong><\/p>\n<p>I was just looking for one of these, but alas, I could not find one freely available so I coded my own. I am sharing here as it appears this is something that is not easily locatable freely elsewhere. Hopefully someone else will find it useful.<\/p>\n<p><strong>Features<\/strong><\/p>\n<p>Really simple! Put it on a chart and it&#8217;ll plot a line for the high and low of the opening range for a time period you specify in the settings. Example below<\/p>\n<div id=\"attachment_844\" style=\"width: 434px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2017-10-03-17_40_52-Chart-ES-12-17.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-844\" data-attachment-id=\"844\" data-permalink=\"https:\/\/pjsmith.me.uk\/index.php\/2017\/10\/opening-range-indicator-for-ninjatrader-8-2\/2017-10-03-17_40_52-chart-es-12-17\/\" data-orig-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2017-10-03-17_40_52-Chart-ES-12-17.png\" data-orig-size=\"424,480\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Opening range indicator\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;3 minute opening range bars&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2017-10-03-17_40_52-Chart-ES-12-17-265x300.png\" data-large-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2017-10-03-17_40_52-Chart-ES-12-17.png\" class=\"size-full wp-image-844\" src=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2017-10-03-17_40_52-Chart-ES-12-17.png\" alt=\"\" width=\"424\" height=\"480\" srcset=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2017-10-03-17_40_52-Chart-ES-12-17.png 424w, https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2017-10-03-17_40_52-Chart-ES-12-17-265x300.png 265w\" sizes=\"auto, (max-width: 424px) 100vw, 424px\" \/><\/a><p id=\"caption-attachment-844\" class=\"wp-caption-text\">3 minute opening range bars<\/p><\/div>\n<p><strong>Other features<\/strong><br \/>\nLine labels<br \/>\nRange extensions (optional &amp; customisable)<br \/>\nMidpoint marker<br \/>\nCustom colours, line thickness, type<br \/>\nOptional shading of OR in desired colour<br \/>\nCustom label prefix for custom sessions (optional)<br \/>\nWorks on any time frame (including non time based charts)<\/p>\n<p>Here are the settings. You can change the time period the indicator marks the high and low for, so it is customisable for any time range you wish. The examples are 1430 hrs and 1433 hrs, so a 3 minute opening range.\u00a0 Time format is hhmmss. You can add multiple copies of the indicator if you want several different time periods. Below, it is configured for 3 minutes (and GMT). You will have to configure to your local time.<\/p>\n<p><a href=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2017-10-03-17_46_40-Indicators.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"845\" data-permalink=\"https:\/\/pjsmith.me.uk\/index.php\/2017\/10\/opening-range-indicator-for-ninjatrader-8-2\/2017-10-03-17_46_40-indicators\/\" data-orig-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2017-10-03-17_46_40-Indicators.png\" data-orig-size=\"542,480\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Opening range time period\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2017-10-03-17_46_40-Indicators-300x266.png\" data-large-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2017-10-03-17_46_40-Indicators.png\" class=\"alignnone size-full wp-image-845\" src=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2017-10-03-17_46_40-Indicators.png\" alt=\"\" width=\"542\" height=\"480\" srcset=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2017-10-03-17_46_40-Indicators.png 542w, https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2017-10-03-17_46_40-Indicators-300x266.png 300w\" sizes=\"auto, (max-width: 542px) 100vw, 542px\" \/><\/a><\/p>\n<p>So there you go.<\/p>\n<p>What do you think? Have any ideas? Let me know in the comments section below.<\/p>\n<p>You might like to take a look at\u00a0<a href=\"https:\/\/pjsmith.me.uk\/index.php\/tag\/NinjaTrader\/\">some of my other Ninjatrader bits and pieces<\/a>.<\/p>\n<p><strong>Requirements<\/strong><\/p>\n<p>Ninjatrader 8<\/p>\n<p><strong>Updates<\/strong><\/p>\n<p>2019.05.22 Minor change to prevent the indicator going to sleep if you minimise the chart or have it on a hidden tab. In these cases, it could prevent the indicator logging the opening range and continuing to update.<\/p>\n<p>2019.04.29 Changed behaviour to rely on computer clock during realtime operation. This is because time resolution on bars longer than the opening range period will not work well because of the way Ninjatrader time stamps bars. This would only effect time based bars, not tick or range bars.\u00a0 The opening range data is stored for future retrieval on historical charts, if desired. This avoids the performance penalty if having to turn on tick reply.<\/p>\n<p>2019.04.23 Fixed minor bug where custom colours were possibly not being saved. No other changes.<\/p>\n<p>2019.04.18 Added new options to show price labels and a colour of your choice to shade the initial range area, if desired.<\/p>\n<p>2019.04.17 Line colour, thickness, and dash-style (dash, solid, dot, etc.) are now user definable in the indicator settings.<\/p>\n<p>2019.04.07 I have updated the indicator. New features include, better logic, range extensions (or Fibs), a Midpoint, better labels, and an option to add a custom label prefix. This is because I now use the indicator, with it&#8217;s custom start\/end times and label with multiple instances to track the open range of other markets on the same chart.<\/p>\n<p>New screenshots below<\/p>\n<div id=\"attachment_1043\" style=\"width: 1034px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2019-04-07-08_54_16-Chart-NQ-06-19.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1043\" data-attachment-id=\"1043\" data-permalink=\"https:\/\/pjsmith.me.uk\/index.php\/2017\/10\/opening-range-indicator-for-ninjatrader-8-2\/2019-04-07-08_54_16-chart-nq-06-19\/\" data-orig-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2019-04-07-08_54_16-Chart-NQ-06-19.png\" data-orig-size=\"1151,639\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Opening range\" data-image-description=\"&lt;p&gt;Opening range indicator for Ninjatrader 8, with custom session times. &lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Opening range indicator&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2019-04-07-08_54_16-Chart-NQ-06-19-300x167.png\" data-large-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2019-04-07-08_54_16-Chart-NQ-06-19-1024x568.png\" class=\"wp-image-1043 size-large\" src=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2019-04-07-08_54_16-Chart-NQ-06-19-1024x568.png\" alt=\"pjsOpeningRange\" width=\"1024\" height=\"568\" srcset=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2019-04-07-08_54_16-Chart-NQ-06-19-1024x568.png 1024w, https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2019-04-07-08_54_16-Chart-NQ-06-19-600x333.png 600w, https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2019-04-07-08_54_16-Chart-NQ-06-19-300x167.png 300w, https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2019-04-07-08_54_16-Chart-NQ-06-19-768x426.png 768w, https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2019-04-07-08_54_16-Chart-NQ-06-19.png 1151w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><p id=\"caption-attachment-1043\" class=\"wp-caption-text\">Example with multiple OR&#8217;s for different markets on same chart<\/p><\/div>\n<div id=\"attachment_1059\" style=\"width: 882px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2019-04-18-15_05_31-Chart-NQ-06-19.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1059\" data-attachment-id=\"1059\" data-permalink=\"https:\/\/pjsmith.me.uk\/index.php\/2017\/10\/opening-range-indicator-for-ninjatrader-8-2\/2019-04-18-15_05_31-chart-nq-06-19\/\" data-orig-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2019-04-18-15_05_31-Chart-NQ-06-19.png\" data-orig-size=\"872,194\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;30 sec opening range, with label prefix and shading&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2019-04-18-15_05_31-Chart-NQ-06-19-300x67.png\" data-large-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2019-04-18-15_05_31-Chart-NQ-06-19.png\" class=\"wp-image-1059 size-full\" src=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2019-04-18-15_05_31-Chart-NQ-06-19.png\" alt=\"\" width=\"872\" height=\"194\" srcset=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2019-04-18-15_05_31-Chart-NQ-06-19.png 872w, https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2019-04-18-15_05_31-Chart-NQ-06-19-600x133.png 600w, https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2019-04-18-15_05_31-Chart-NQ-06-19-300x67.png 300w, https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2017\/10\/2019-04-18-15_05_31-Chart-NQ-06-19-768x171.png 768w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\" \/><\/a><p id=\"caption-attachment-1059\" class=\"wp-caption-text\">30 sec opening range, with label prefix and shading<\/p><\/div>\n<p><strong>Notes<\/strong><\/p>\n<p>If you are using the indicator in real-time, you will get accurate, to the tick, ranges. If you are using this historically (without tick replay turned on), the reported range will be limited to the high\/low of the bar (which is actually how some people use it). I am however working on a solution where the indicator writes the values detected in real-time and restores them, if you re-load the chart for any reason. If and when done, the update will be posted here (I do not recommend you use tick replay)<\/p>\n<p><strong>Download<\/strong><\/p>\n<p><del>New downloads coming SOON<br \/>\n<\/del>V2 is <a href=\"https:\/\/pjsmith.me.uk\/index.php\/2019\/10\/opening-range-indicator-for-NinjaTrader-8\/\">HERE<\/a>!<\/p>\n<p>As usual, let me know below if any issues and I will try to resolve, time permitting.<\/p>\n<p>If you download it, and like it, please do me a favour and give it a little like above so I know. Thanks!<\/p>\n<p><strong>Donate<\/strong><\/p>\n<p>This tool, per most of my tools is free for non-commercial use (I define that as a &#8216;private&#8217; investor with your own funds), but if you find it useful and wish to donate beer money, you can do so Via Bitcoin or PayPal. Any amount (no matter how small) will give you a warm fuzzy feeling and help me keep the power on. Be fair, just donate what you think is right. Thank you.<\/p>\n<p>Bitcoin to\u00a0<span class=\"highlighted\"> <span class=\"ng-binding\">1PsQP6ECsevKRck4NPNJ3ZLnGaSJLxNyUT<\/span><\/span><\/p>\n<p>PayPal to pjs DOT guernsey AT gmail DOT com<\/p>\n<p>Commercial arrangements and custom versions are available if you wish to re-distribute or use for commercial purposes.\u00a0 Please do not redistribute this, but feel free to link to it here.<\/p>\n<p>At the very least, if you liked this or found it useful, please let me know in the comments section below or give it a like\/share above. Thanks!<\/p>\n<p><strong>Contact me<\/strong><\/p>\n<p>Email me via the web site if you want to get in touch.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>pjsOpeningRange &#8211; An opening range indicator for Ninjatrader 8 I was just looking for one of these, but alas, I could not find one freely available so I coded my&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5,57],"tags":[44],"class_list":{"0":"post-842","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-tech","7":"category-trading","8":"tag-ninjatrader"},"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/842","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=842"}],"version-history":[{"count":0,"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/842\/revisions"}],"wp:attachment":[{"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}