Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How get the same fibonacci extension price leves at chart with strategy script?

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

    How get the same fibonacci extension price leves at chart with strategy script?

    Hi, i want use a fibonacci extension on a chart draw before run a strategy script, then i want get the same values at script that i see on the leves at fibonacci extension at chart.
    This is possible?, becouse i try this examples but they show me diferents values:

    https://ninjatrader.com/support/foru...acement-please

    https://ninjatrader.com/support/help...ricelevels.htm

    https://ninjatrader.com/support/foru...ept#post805499


    And i didn't can find any more examples, could you help me?


    Thanks




    Last edited by Pbarrionuevo; 12-29-2020, 12:23 PM.

    #2
    Hello Pbarrionuevo,

    Thank you for your post.

    After testing using DrawObjects and PriceLevels to get the price levels of a manually drawn Fibonacci Extensions object, we have been able to reproduce that the output values do not match the drawing object values on the chart and have opened an internal ticket for it. We will follow up as more information becomes available.

    Let us know if we may further assist.
    <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


      #3
      Hello Pbarrionuevo,

      Thank you for your patience.

      After further investigation, we have determined that DrawObjects would be used to get the Fibonacci Extensions drawing object from the chart. Then, we use PriceLevels to get the price values for the Fibonacci Extensions drawing object. The PriceLevels code would look like this.

      p.GetPrice(myExtensions.ExtensionAnchor.Price, myExtensions.EndAnchor.Price - myExtensions.StartAnchor.Price, false));

      We use ExtensionAnchor.Price instead of StartAnchor or EndAnchor since ExtensionAnchor is where the start price is for Fibonacci Extensions.

      Please note that we will be updating the help guide documentation so that this information is more clear.

      See the attached strategy that demonstrates how to get the price levels of a manually drawn Fibonacci Extensions drawing object.

      DrawObjects - https://ninjatrader.com/support/help...rawobjects.htm
      PriceLevels - https://ninjatrader.com/support/help...ricelevels.htm

      Let us know if we may assist further.
      Attached Files
      <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


        #4
        Thanks Brandon, i tried and worked very well.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        63 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        139 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        75 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        45 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        50 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X