If I draw a fibonacci retracement on a chart and give a tag, say "Fib1", can I get the retracement levels from that drawing in the strategy?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Getting fibonacci retracement levels from indicator
Collapse
X
-
Getting fibonacci retracement levels from indicator
I want to implement scaling in at various fib levels via a strategy and would like the fib levels to be based on a Fib retracment drawing on the chart on which the strategy is running.
If I draw a fibonacci retracement on a chart and give a tag, say "Fib1", can I get the retracement levels from that drawing in the strategy?Tags: None
-
Hello higher.high,
Thank you for your note.
Yes, you would use the IFibonacciRetracements: http://ninjatrader.com/support/helpG...tracements.htm
More information is available under IDrawObject: http://ninjatrader.com/support/helpG...drawobject.htm
-
Hi,
Further query on this.
IFibonacciRetracements provides only the x and y of start / end points the Retracement. Is there any way to get the actual price levels of the IFibonacciRetracements instance, which may have been drawn through a custom template.
Regards
Vivek
Comment
-
Hello,
Thank you for the post.
I am unsure this would be directly possible in NT7 as the tool was not configured to expose levels in Price, you can access the data values you enter in the tools properties which are in percentages.
From this point, to get a price you would need to somehow calculate it based off of the percentage level rather than having a direct price value. Unfortunately, I would not have a sample of this type of conversion as I am unsure how the NT7 tool does this internally. I could suggest looking at the code for the NT8 version as it likely shares some of the same calculations for the Level price. This was one improvement with NT8 was that this tools source code was released, also you can access the price levels very easily.Code:IFibonacciRetracements fib = DrawFibonacciRetracements("Test", true, 10, Close[10], 0, Close[0]); FibonacciRetracements ret = (FibonacciRetracements)fib; foreach(NinjaTrader.Gui.Chart.FibonacciLevel level in ret.Levels) { Print(level.Value); }
I look forward to being of further assistance.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
65 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
41 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
23 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
26 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
52 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment