Thanks
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
Accessing Fibonacci Time Extensions properties
Collapse
X
-
Accessing Fibonacci Time Extensions properties
Hi, I would like to add verticle text showing the date to the Fibonacci Time Extensions, but first I'd like to know how can I access the the "Start Time" and "End Time" of a Fibonacci Time Extensions properties? Also how can I delete a specific manually drawn Fibonacci Time Extension?
ThanksTags: None
-
Hello,
Thank you for your post and welcome to our forums!
You can access the Fib Time Extension StartBar and EndBar using IFibonacciTimeExtensions
If these are for manually drawn objects, you can search for these on the chart and then get the object start/end time:
Code:foreach (IDrawObject fib in DrawObjects) { if (fib.UserDrawn && fib.DrawType == DrawType.FibonacciTimeExtensions) { IFibonacciTimeExtensions fibTime = (IFibonacciTimeExtensions) fib; DateTime start = fibTime.StartTime; DateTime end = fibTime.EndTime; Print("Start Time : " + start.ToString()); Print("End Time : " + end.ToString()); } }
MatthewNinjaTrader Product Management
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by pibrew, Today, 06:37 AM
|
0 responses
0 views
0 likes
|
Last Post
by pibrew
Today, 06:37 AM
|
||
Started by rbeckmann05, Yesterday, 06:48 PM
|
1 response
12 views
0 likes
|
Last Post
by bltdavid
Today, 05:43 AM
|
||
Started by llanqui, Today, 03:53 AM
|
0 responses
6 views
0 likes
|
Last Post
by llanqui
Today, 03:53 AM
|
||
Started by burtoninlondon, Today, 12:38 AM
|
0 responses
11 views
0 likes
|
Last Post Today, 12:38 AM | ||
Started by AaronKoRn, Yesterday, 09:49 PM
|
0 responses
15 views
0 likes
|
Last Post
by AaronKoRn
Yesterday, 09:49 PM
|
Comment