Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Extending Fib Levels

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

    Extending Fib Levels

    Hello All,

    Please see the attached picture for reference.

    The strategy I have written so far will draw a blue rectangle and the fib levels on the chart once the green candle that is encircled by the blue oval is opened.

    What I would like to know is if it is possible to keep the fib expanding upward as the candles that follow the green encircled play out over time. I don't know how to get the fib to "walk up" with the high of the candles as they form in the future if that makes sense.

    Is there a way to put a swing high in the as the double endY in the Draw.Fib syntax?

    Thank you,

    Nick
    Attached Files

    #2
    Hello Nick,

    Thanks for your post.

    Yes, it would be possible to pass in the SwingHigh value of the Swing indicator for the doubly endY argument when calling the Draw.FibonacciRetracements() method.

    Since the Draw.FibonacciRetracements() method requires a double value, you could use the Swing indicator syntax below to get the SwingHigh as a double.

    Swing(int strength).SwingHigh[int barsAgo]

    For example, the code might look something like this:

    Code:
    Draw.FibonacciRetracements(this, "tag1", true, 10, Low[10], 0, Swing(5).SwingHigh[0]);
    See the help guide documentation below for more information and sample code.

    Draw.FibonacciRetracements():https://ninjatrader.com/support/help...tracements.htm
    Swing: https://ninjatrader.com/support/help.../nt8/swing.htm

    Let me know if I may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    72 views
    0 likes
    Last Post PaulMohn  
    Working...
    X