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

Fibonnaci Time Extension Modification/ New indicator idea

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

    Fibonnaci Time Extension Modification/ New indicator idea

    Hi,

    Curious to know how complicated it would be to modify the Fibonacci Time Extension tool. What I would like to do is remove the anchor, change the values of precentages to time and add a calendar so I could move the indicator by date.

    #2
    Hello pthomas,

    Thanks for opening the thread.

    The Fibonacci Drawing Tools are open source and documentation for Drawing Tools also exists in our help guide.

    From the sound of it, you want to make an indicator based on this drawing tool and make it work with a user defined date. The major task would be implementing the OnRender() code from the DrawingTool to the indicator.

    Once the code is re-implemented, it can be modified to use the a user defined Date as input. You can also use a DateTimeConverter to make a more intuitive input.
    Code:
    [NinjaScriptProperty]
    [Gui.PropertyEditor("NinjaTrader.Gui.Tools.DateTimeConverter")]
    [Display(Name="Start Date", Order=1, GroupName="Parameters")]
    public DateTime StartDate
    { get; set; }
    The code for displaying the price level values as percents is in GetPriceString() at line 113 in the FibonacciTools Drawing Tool source code.

    I'll include links from our publicly available documentation on Drawing Tools and custom rendering for further direction.

    Drawing Tools - https://ninjatrader.com/support/help...wing_tools.htm

    SharpDX for Custom Rendering - https://ninjatrader.com/support/help..._rendering.htm

    Please let me know if you have any questions.
    Last edited by NinjaTrader_Jim; 01-15-2018, 08:51 AM.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by gravdigaz6, Today, 11:40 PM
    0 responses
    4 views
    0 likes
    Last Post gravdigaz6  
    Started by MarianApalaghiei, Today, 10:49 PM
    3 responses
    9 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by XXtrader, Today, 11:30 PM
    0 responses
    3 views
    0 likes
    Last Post XXtrader  
    Started by love2code2trade, Yesterday, 01:45 PM
    4 responses
    28 views
    0 likes
    Last Post love2code2trade  
    Started by funk10101, Today, 09:43 PM
    0 responses
    9 views
    0 likes
    Last Post funk10101  
    Working...
    X