NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 10-01-2009, 10:52 AM   #1
mballagan
Member
 
Join Date: Nov 2008
Posts: 87
Thanks: 0
Thanked 0 times in 0 posts
Default Fibonacci

The following line can be used to draw fibonacci retracements on a chart from within an indicator/strategy:

// Draws a fibonacci retracement object
DrawFibonacciRetracements("tag1", true, 10, Low[10], 0, High[0]);

Is there a way I can access the various retracement levels of this object once it is on the chart (61.8% etc)? I realise that I can manually calculate the retracement levels between 2 points but wanted to see if there are already existing functions available.
mballagan is offline  
Reply With Quote
Old 10-01-2009, 11:02 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,382
Thanks: 252
Thanked 967 times in 950 posts
Default

mballagan, unfortunately this is not supported with NinjaTrader 6.5

As work in progess we plan on offering this for NinjaTrader 7 - http://www.ninjatrader.com/webnew/NT7/NinjaTrader7.html

Draw Objects Enhancements
Draw objects are now associated to an indicator which means that if a user removes a draw object from the chart, it will also remove the indicator. In addition, all draw objects spawned from an indicator share the indicator's z-order.
IDrawObject - IDrawObjects are now returned to the caller on all Draw() methods. IDrawObjects expose draw objects properties.
Work in progress - We will implement programmatic access to draw objects added to a chart manually. For example, you can have a user draw a line on a chart and add a "tag" to this object and you can retrieve this object, read it's value and do something with it.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 10-01-2009, 11:10 AM   #3
mballagan
Member
 
Join Date: Nov 2008
Posts: 87
Thanks: 0
Thanked 0 times in 0 posts
Default object properties

Its good to know it will be available in NT7 thanks.
mballagan is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fibonacci retrace politcat Charting 2 12-29-2008 01:39 PM
fibonacci levels vk2205 Automated Trading 1 12-16-2008 06:09 AM
Using Fibonacci in an indicator cassb Indicator Development 10 10-29-2008 02:17 PM
Fibonacci Extensions joker23 Charting 8 09-22-2008 05:07 AM
Fibonacci cabmanage Charting 1 04-30-2008 10:52 AM


All times are GMT -6. The time now is 09:56 AM.