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
Fibbonacci retracement points counter line
Collapse
X
-
Hello vitixs,
Thank you for the post.
That is very likely possible as the existing tool is included with the platform as source code so you could use that as an example. You could make a duplicate this tool to make new versions of it.
The fibonacci tools are specifically going to be more difficult to duplicate and edit due to how they are connected, they have a lot of extra classes and objects which will throw compile errors when doing a direct duplication of the code. Drawing objects in general assume you have a good amount of C# experience with object oriented programming along with C# inheritance so they are not specifically user friendly like an indicator or strategy.
The retracements uses the PriceLevel class which is also included as source code in the DrawingTools category, that would need to be duplicated as well and would be where you implement the Points instead of Percent. In your custom retracements you would then reference the custom price levels you made instead of the internal price levels, that will allow for changing how the drawing tool uses the price levels. You would also need to go through the existing logic to make sure that change make sense in contrast to the existing logic/calculations based on percents.
To get started here or to understand if this project falls in your scope I would suggest opening the files @PriceLevels.cs and @FibonacciTools.cs. All of the fibonacci tools and related utility classes are held in one file so you will need to locate just the class for retracements and what it uses from that file.
I look forward to being of further assistance.
JesseNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Shansen, 08-30-2019, 10:18 PM
|
24 responses
939 views
0 likes
|
Last Post
by spwizard
Today, 01:29 AM
|
||
Started by Max238, Today, 01:28 AM
|
0 responses
8 views
0 likes
|
Last Post
by Max238
Today, 01:28 AM
|
||
Started by rocketman7, Today, 01:00 AM
|
0 responses
4 views
0 likes
|
Last Post
by rocketman7
Today, 01:00 AM
|
||
Started by wzgy0920, 04-20-2024, 06:09 PM
|
2 responses
28 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:43 PM
|
||
Started by wzgy0920, 02-22-2024, 01:11 AM
|
5 responses
33 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:33 PM
|
Comment