thankz
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
DrawVerticalLine questions for time
Collapse
X
-
Hello faustf, thank you for your post and welcome to the NinjaTrader forum.
A DateTime object will be used as that parameter. The Time array holds the timestamps of all bars as a DateTime object.
This snippet will draw a line 5 bars ago:
Code:protected override void OnBarUpdate() { if(CurrentBar < 5) return; DrawVerticalLine("theline", Time[5], Color.Red, DashStyle.Solid, 2); }
Kind regards.Last edited by NinjaTrader_ChrisL; 07-17-2019, 08:55 AM.Chris L.NinjaTrader Customer Service
- Likes 1
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by George21, Today, 10:07 AM
|
0 responses
4 views
0 likes
|
Last Post
by George21
Today, 10:07 AM
|
||
Started by Stanfillirenfro, Today, 07:23 AM
|
8 responses
23 views
0 likes
|
Last Post Today, 10:02 AM | ||
Started by DayTradingDEMON, Today, 09:28 AM
|
2 responses
16 views
0 likes
|
Last Post Today, 09:56 AM | ||
Started by navyguy06, Today, 09:28 AM
|
1 response
6 views
0 likes
|
Last Post Today, 09:54 AM | ||
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
8 responses
32 views
0 likes
|
Last Post Today, 09:34 AM |
Comment