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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    553 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    100 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    543 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    546 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X