Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Brandon H.NinjaTrader Customer Service

    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
      Brandon H.NinjaTrader Customer Service

      Comment


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

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ZenCortexReal, Today, 08:54 AM
        0 responses
        1 view
        0 likes
        Last Post ZenCortexReal  
        Started by ZenCortexReal, Today, 08:52 AM
        0 responses
        0 views
        0 likes
        Last Post ZenCortexReal  
        Started by rocketman7, Today, 02:12 AM
        5 responses
        25 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by trilliantrader, 04-18-2024, 08:16 AM
        7 responses
        28 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by samish18, 04-17-2024, 08:57 AM
        17 responses
        66 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Working...
        X