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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    31 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    9 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    17 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X