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 lightsun47, Today, 03:51 PM
        0 responses
        4 views
        0 likes
        Last Post lightsun47  
        Started by 00nevest, Today, 02:27 PM
        1 response
        8 views
        0 likes
        Last Post 00nevest  
        Started by futtrader, 04-21-2024, 01:50 AM
        4 responses
        44 views
        0 likes
        Last Post futtrader  
        Started by Option Whisperer, Today, 09:55 AM
        1 response
        13 views
        0 likes
        Last Post bltdavid  
        Started by port119, Today, 02:43 PM
        0 responses
        8 views
        0 likes
        Last Post port119
        by port119
         
        Working...
        X