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