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

Draw Fib using a saved temple

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

    Draw Fib using a saved temple

    Scenario: Draw a fib retracement on a chart using an indicator

    Question: Can I draw the fib using/applying a particular saved fib template?

    I know I can using a path and a copied template to the name "Default" or a dictionary function. But that isn't supported.
    I didn't know if there was a supported alternative.

    Cheers

    #2
    Hello ct,

    Thanks for your post.

    [NOTE: Reply below was based on NinjaTrader8]

    Yes, an indicator can draw a Fibonacci Retracement using a preexisting template.

    There are two method overloads where you can specify the name of the template:
    Draw.FibonacciRetracements(NinjaScriptBase owner, string tag, bool isAutoScale, DateTime startTime, double startY, DateTime endTime, double endY, bool isGlobal, string templateName)
    Draw.FibonacciRetracements(NinjaScriptBase owner, string tag, bool isAutoScale, int startBarsAgo, do uble startY, int endBarsAgo, double endY, bool isG lobal, string templateName)


    Reference: https://ninjatrader.com/support/help...tracements.htm

    If the template name is misspelled, or does not have the correct syntax, or is not provided, the default template will be used.

    Note: Templates are similarly supported in all Draw methods.
    Last edited by NinjaTrader_PaulH; 05-18-2021, 07:10 AM. Reason: Added NinjaTrader8 notice
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Hello ct,

      I just realized you posted in the NinjaTrader7 forum and my reply was based on NinjaTrader8.

      As you can see it is easily done in NinjaTrader8 but it is not supported in NinjaTrader7 and there is no supported alternative.

      I apologize for my oversight.


      Paul H.NinjaTrader Customer Service

      Comment


        #4
        Paul

        Thanks for the reply. I will do what I have used for years.

        Cheers
        Last edited by ct; 05-18-2021, 09:11 AM.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by RubenCazorla, Today, 09:07 AM
        2 responses
        11 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by i019945nj, 12-14-2023, 06:41 AM
        7 responses
        81 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by timmbbo, 07-05-2023, 10:21 PM
        4 responses
        158 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by tkaboris, Today, 08:01 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by Lumbeezl, 01-11-2022, 06:50 PM
        31 responses
        819 views
        1 like
        Last Post NinjaTrader_Adrian  
        Working...
        X