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 CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    56 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    34 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    195 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    359 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    281 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X