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 SuneSorgenfrei, Today, 04:47 AM
        0 responses
        5 views
        0 likes
        Last Post SuneSorgenfrei  
        Started by lakman184, Today, 03:09 AM
        2 responses
        12 views
        0 likes
        Last Post lakman184  
        Started by romintrio, Today, 02:16 AM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by SCC74, Today, 01:32 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by sidlercom80, Today, 01:57 AM
        0 responses
        10 views
        0 likes
        Last Post sidlercom80  
        Working...
        X