Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Accessing Fibonacci Time Extensions properties

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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?
    Thanks

    #2
    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());
    					}
    				}
    You would not be able to delete a specific manually drawn object.
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    160 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    307 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    245 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    348 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    178 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X