Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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
Code:protected override void OnBarUpdate() { if (CurrentBar % 10 == 0) this.DrawVerticalLine("v"+ CurrentBar, 0, Color.Blue, DashStyle.Solid, 1); }
JoydeepNinjaTrader Customer Service
Comment
-
Originally 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.
Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.
Please let me know if I can assist you any further.JoydeepNinjaTrader Customer Service
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by RDTrader16, Today, 10:19 PM
|
0 responses
5 views
0 likes
|
Last Post
by RDTrader16
Today, 10:19 PM
|
||
Started by gemify, 03-08-2023, 08:02 AM
|
9 responses
148 views
0 likes
|
Last Post
by culpepper
Today, 10:14 PM
|
||
Started by elirion, Today, 10:03 PM
|
0 responses
1 view
0 likes
|
Last Post
by elirion
Today, 10:03 PM
|
||
Started by RaddiFX, Today, 09:55 PM
|
0 responses
9 views
0 likes
|
Last Post
by RaddiFX
Today, 09:55 PM
|
||
Started by Trader146, 03-29-2024, 01:22 PM
|
4 responses
27 views
0 likes
|
Last Post
by Trader146
Today, 09:53 PM
|
Comment