Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

number of parameters I'm passing.

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

    number of parameters I'm passing.

    Hi,

    I'm trying to draw Fibonacci retracements using the Draw.FibonacciRetracements method, but I'm getting an error stating:

    "No overload method for 'FibonacciRetracements' takes 8 arguments."

    Here's my code:

    Draw.FibonacciRetracements(this, fibTag, high, low, Brushes.Blue, 2, true, fibTemplate);
    Draw.FibonacciRetracements(this, fibTag, high, low, Brushes.Red, 2, true, fibTemplate);​

    I believe the issue is with the number of parameters I'm passing. Could you clarify the correct parameter structure for Draw.FibonacciRetracements in NinjaTrader 8? Also, how can I apply a custom template like "Range Bar Thick BL" or "Range Bar Thick" to these Fibonacci retracements?

    Thanks for your help!

    Attached Files

    #2
    Hello trdninstyle,

    You can find the overloads in the api guide under the FibonacciRetracements page. You would have to use either of these overloads to use a 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, double startY, int endBarsAgo, double endY, bool isGlobal, string templateName)

    Both of these require 9 total parameters. It looks like you are missing isAutoScale after the tag and have some parameters out of place. Your fibTemplate variable would need to be a string with the template name you wanted. ​

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    52 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    71 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    38 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    99 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    60 views
    0 likes
    Last Post PaulMohn  
    Working...
    X