Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Draw lines under bars
Collapse
X
-
-
Hello Martin,
To draw Horizontal line at an increment of 50 points please use this code. Also please note I have placed it in the OnStartUp event instead of OnBarUpdate
Code:protected override void OnStartUp() { for (int i = 1000; i <= 2000; i+= 50) { this.DrawHorizontalLine("h" + i.ToString(), i, Color.Green); } }
To draw the Vertical line please use the below code
Please let me know if I can assist you any further.Code:protected override void OnBarUpdate() { if (CurrentBar % 10 == 0) this.DrawVerticalLine("v"+ CurrentBar, 0, Color.Blue, DashStyle.Solid, 1); }JoydeepNinjaTrader Customer Service
Comment
-
NT JD- he's talking about z orderOriginally posted by NinjaTrader_Joydeep View PostHello Marten,
Can you be more specific on how exactly your Y axis value will be.
From the screenshot I can see the line is cutting through the bars. Which bar you are referencing too.
I look forward to assisting you further.
Comment
-
Comment
-
which thread
Which thread would i go to with issues involving scaling in combining Stochastic/Macd in same sun graph please?
Comment
-
Hello laredo78676,
Please see this video which demonstrates how to overlay 2 indicators on the same panel.
World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.
Please let me know if I can assist you any further.JoydeepNinjaTrader Customer Service
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
153 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
89 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
133 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
127 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
107 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment