Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Draw objects on panel 2
Collapse
X
-
Draw objects on panel 2
Hi, I'm wanting to draw lines on the panel 2 on the ADX indicator lines. Is this possible?Tags: None
-
Hello shildebrand324,
Thanks for your post.
You could set DrawOnPricePanel to false inside the OnStateChange method when the State == State.SetDefaults.
See this help guide page for more information: https://ninjatrader.com/support/help...pricepanel.htm
Let us know if we may assist further.<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>
-
I’m hoping for a sample of drawing lines between to points on the macd, based on pivots on the main price panel
Comment
-
Hello shildebrand324,
Thanks for your note.
We do not have a reference sample available that demonstrates drawing lines between two points of the MACD indicator and basing the calculation of those lines on the Pivots indicator.
Unfortunately, in the support department at NinjaTrader it is against our policy to create, debug, or modify, code or logic for our clients. Further, we do not provide C# programming education services in our support. This is so that we can maintain a high level of service for all of our clients as well as our partners.
The Draw.Line method could be used to draw lines on a chart. You could use the Pivots indicator to calculate where the line is drawn. If you would like those lines to be drawn in panel 2 with the MACD indicator, you would need to set DrawOnPricePanel to false.
See the following help guide documentation which you may find helpful.
Draw.Line: https://ninjatrader.com/support/help.../draw_line.htm
DrawOnPricePanel: https://ninjatrader.com/support/help...pricepanel.htm
MACD: https://ninjatrader.com/support/help...gence_macd.htm
Pivots: https://ninjatrader.com/support/help...nt8/pivots.htm
This forum thread will be open for other community members to share their insight.
You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. If you would like our NinjaTrader Ecosystem team follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request, please reach out to vendorsupport[AT]ninjatrader.com.
Let us know if we may assist further.<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 Mindset, 04-21-2026, 06:46 AM
|
0 responses
57 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
78 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
39 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
101 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
61 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment