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!
See more
See less

Partner 728x90

Collapse

Fibbonacci retracement points counter line

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

    Fibbonacci retracement points counter line

    I would like to make a fibonacci line that will count points instead of% to be able to see more quickly where the stoploss should be placed, would that be possible?

    #2
    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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Shansen, 08-30-2019, 10:18 PM
    24 responses
    939 views
    0 likes
    Last Post spwizard  
    Started by Max238, Today, 01:28 AM
    0 responses
    8 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by rocketman7, Today, 01:00 AM
    0 responses
    4 views
    0 likes
    Last Post rocketman7  
    Started by wzgy0920, 04-20-2024, 06:09 PM
    2 responses
    28 views
    0 likes
    Last Post wzgy0920  
    Started by wzgy0920, 02-22-2024, 01:11 AM
    5 responses
    33 views
    0 likes
    Last Post wzgy0920  
    Working...
    X