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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    127 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    73 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    115 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    109 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    88 views
    0 likes
    Last Post CarlTrading  
    Working...
    X