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 NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    87 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    151 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    80 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    53 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    62 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X