Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Drawing tools
Collapse
X
-
Hello tunabomb,
Thanks for your post.
You could consider creating an indicator that calls the Draw.HorizontalLine() method to draw a horizontal line on the chart.
The IsLocked property could be used to determine if a drawing tool object should be locked in place.
See this help guide page for more information about Draw.HorizontalLine(): https://ninjatrader.com/support/help...zontalline.htm
See this help guide page for more information about IsLocked: https://ninjatrader.com/support/help...8/islocked.htm
Here is a forum thread for more information about IsLocked: https://forum.ninjatrader.com/forum/...horizontalline<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
-
Could the ColorZone3 indicator be revised to be able to unlock the zones, move them on the chart and lock them again? Thanks
This is a port of the NinjaTrader7 ColorZone3 indicator by photog53. Update 4/28/2018: Fixed issue with ChartTemplates and converted regions to use plots. Update 03/19/2011 (allow text entry on zones…also allows entry of negative zone values) Creates up to 12 colored zones on a chart. – Requires only 1 price entry per zone… the indicator […]
941515249396399730.zip
Comment
-
Hello tunabomb,
Thanks for your notes.
No, to change the zone region being drawn by the ColorZone3 indicator (such as Zone 1), you should right-click on the chart, select 'Indicators', select the 'ColorZone3' indicator in the Configured section of the Indicators window, change the 'Zone 1' property to the value you want the region to be drawn at, and then click OK.
Once you change the 'Zone 1' property to a new value and click OK to save the changes and close the Indicators window, that Zone 1 region will be drawn at the new value you set it to.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
-
Could a sample indicator of this be posted?Thanks for your post.
You could consider creating an indicator that calls the Draw.HorizontalLine() method to draw a horizontal line on the chart.
The IsLocked property could be used to determine if a drawing tool object should be locked in place.
Comment
-
Hello tunabomb,
Thanks for your notes.
I have attached a simple script demonstrating drawing a horizontal line on the chart that can be manually moved. Once the line is manually moved and the current bar on the chart closes, that horizontal line draw object is locked so it cannot be moved.
See the help guide documentation below for more information.
Draw.HorizontalLine: https://ninjatrader.com/support/help...zontalline.htm
IsLocked: https://ninjatrader.com/support/help...8/islocked.htm
IDrawingTool Objects: https://ninjatrader.com/support/help...ool.htmAttached Files<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
607 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
353 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
561 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment