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
Getting line levels from code
Collapse
X
-
Originally posted by NinjaTrader_Matthew View PostWith IFibonacciRetracements you can read the Anchor points (startY & endY), which would be the 0% and 100% lines, but you cannot directly read the individual lines. If you would like these values to be read by an indicator, you can calculate these values from the anchor points.
Is it possible to get the %age values for each of the lines ?
Comment
-
Originally posted by NinjaTrader_Matthew View PostI'm sorry, what do you mean by %age?
The anchors are at 0% and 100% . . . to calculate the price of a level at 43.8%, or any other %age, I need to be able to read from the Fib that that level is at 43.8% (or 0.438 ). . then using the 0% and 100% anchor line prices I can calculate it's price . . .
And conversely to draw a Fib with anchors of my choice I need to be able to set the Fib level percentage values. . .
Comment
-
Hello,
There is not a support method to read these fib levels. However if you have the start and end X prices, you can calculate them yourself through custom coding in the script itself.
The fib level is going to be a percentage of the difference High and the Low.MatthewNinjaTrader Product Management
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by pmachiraju, 11-01-2023, 04:46 AM
|
8 responses
148 views
0 likes
|
Last Post
by rehmans
Today, 06:44 PM
|
||
Started by mattbsea, Today, 05:44 PM
|
0 responses
5 views
0 likes
|
Last Post
by mattbsea
Today, 05:44 PM
|
||
Started by RideMe, 04-07-2024, 04:54 PM
|
6 responses
33 views
0 likes
|
Last Post
by RideMe
Today, 05:31 PM
|
||
Started by tkaboris, Today, 05:13 PM
|
0 responses
5 views
0 likes
|
Last Post
by tkaboris
Today, 05:13 PM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
16 responses
3,282 views
0 likes
|
Last Post
by Leafcutter
Today, 04:14 PM
|
Comment