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 Brevo, Today, 01:45 AM
    0 responses
    3 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    3 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    239 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    384 views
    1 like
    Last Post Gavini
    by Gavini
     
    Started by oviejo, Today, 12:28 AM
    0 responses
    6 views
    0 likes
    Last Post oviejo
    by oviejo
     
    Working...
    X