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 sjsj2732, Today, 04:31 AM
    0 responses
    20 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    280 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    279 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    130 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    90 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X