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
Vertical Line
Collapse
X
-
Hi gtrader62,
I wanted to note Bdg820 is looking to draw a vertical line at a specific time and not a horizontal line at price.
Leave a comment:
-
Hello Bdg820,
You can use a condition that compares the time of the bar to a time input and then use DrawVerticalLine() to draw a vertical line or DrawHorizontalLine() to draw a horizontal line.
For example if this is in a minute chart:
Code:if (Time[0].TimeOfDay == MyTimeSpanInput) { DrawVerticalLine("timeMarkerLine"+CurrentBar, 0, Color.Blue); }
A link to the help guide on DrawVerticalLine().
And a link to a thread that demonstrates how to serialize a timespan.
Last edited by NinjaTrader_ChelseaB; 05-03-2017, 02:20 PM.
Leave a comment:
-
Vertical Line
Hi,
I would like to draw a vertical line at a chosen timeframe that would plot by itself everyday. If I choose 8am there would be a horizontal line every 8am every day.
Thanks,
Bdg820Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by algospoke, 04-17-2024, 06:40 PM
|
5 responses
46 views
0 likes
|
Last Post Today, 02:36 PM | ||
Started by arvidvanstaey, Today, 02:19 PM
|
1 response
4 views
0 likes
|
Last Post Today, 02:33 PM | ||
Started by mmckinnm, Today, 01:34 PM
|
3 responses
5 views
0 likes
|
Last Post Today, 02:12 PM | ||
Started by f.saeidi, Today, 01:32 PM
|
2 responses
8 views
0 likes
|
Last Post
by f.saeidi
Today, 02:10 PM
|
||
Started by alifarahani, 04-19-2024, 09:40 AM
|
9 responses
55 views
0 likes
|
Last Post Today, 02:02 PM |
Leave a comment: