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 charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
70 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
152 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
162 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
100 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
288 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment