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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        93 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        138 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
        123 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        73 views
        0 likes
        Last Post PaulMohn  
        Working...
        X