Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Fibonacci Retracement 50 % Level Entry

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

    Fibonacci Retracement 50 % Level Entry

    Hi,

    I´m new in the forum, so don´t really know if this is the appropiate place to post my question. I have the following issue: i want to code the following as part of a custom strategy, but don´t know how to. What I want to do is:

    1-Draw a Fibonacci Retracement with 100% at the lowest point of 10 bars ago and 0 % at highest point of current bar.

    2- Place an ATM Strategy entry when the price touches the 50% level.

    What I really have trouble with is point 2. I´m already capable of plotting a Fibonacci Retracements object with those parameters, but don´t know how to obtain by code that 50 % level and place an entry exactly there.

    I´d really appreciate some help. Thank you!

    Alvaro
    Last edited by alvarosiegar; 05-15-2018, 06:01 PM.

    #2
    Hello alvarosiegar,

    Thank you for writing in.

    If you could provide a sample script which will plot the fib retracements, I could take a look at how to grab the 50% level.

    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Hello again,

      The way I found to plot the fib retracements is:

      DrawFibonacciRetracements("example", true, 10, Low[10], 0, High[0]);

      I don't know if that is the most efficient way to then grab the 50 % level.
      Maybe this helps: what I need is to grab the 50% level to place an entry order. I'm drawing it, but it doesn't really matter for my strategy if the retracements aren't actually drawn.

      Thank you! I look forward to your reply

      Comment


        #4
        Hello alvarosiegar,

        The attached strategy will submit a Limit bid order at the 50 percent retracement.

        When you apply the strategy I suggest applying to a 10 minute chart, the strategy is set to run with CalculateOnBarClose set to false.

        Please let us know if you need further assistance.
        Attached Files
        Alan P.NinjaTrader Customer Service

        Comment


          #5
          Thank you very much!

          That's what I was looking for.

          Comment


            #6
            hello i know this is old but i would like to know how i can get the example strategy download to my pc

            Comment


              #7
              Hello jhontorres,

              Thank you for your post.

              Please see the attached example strategy titled AtmStrategyFibRetracements that demonstrates drawing Fibonacci Retracements on the chart and entering an ATM order at the 50% price level of the Fibonacci Retracements drawing.

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


                #8
                okay thank you so muuch

                Comment


                  #9
                  Originally posted by NinjaTrader_BrandonH View Post
                  Hello jhontorres,

                  Thank you for your post.

                  Please see the attached example strategy titled AtmStrategyFibRetracements that demonstrates drawing Fibonacci Retracements on the chart and entering an ATM order at the 50% price level of the Fibonacci Retracements drawing.

                  Let us know if we may further assist.
                  Thank you for posting the example strategy

                  What would this strategy look like if instead of creating an ATM order, it just created a signal (plot) when price touches that 50% level? Thank you

                  Comment


                    #10
                    Hello mazpat_3,

                    Thanks for your note.

                    If you have a plot in your script, you could consider creating a condition that checks if the Close price (Close[0] is greater than or equal to the 'price' variable seen in the example script in post # 7.

                    Inside that condition you may set the plot to 1 to indicate the condition is true. When the condition is false, you could set the plot to 0.

                    This means when the plot is set to 1, the price is greater than or equal to the 50% level of the Fibonacci Retracements drawing. Otherwise, the plot is set to 0.

                    Please let me know if I may 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


                      #11
                      Hello NinjaTrader_BrandonH​,
                      Can we have the same strategy on NT8 please?

                      Thanks

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                      0 responses
                      563 views
                      0 likes
                      Last Post Geovanny Suaza  
                      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                      0 responses
                      329 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by Mindset, 02-09-2026, 11:44 AM
                      0 responses
                      101 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                      0 responses
                      547 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by RFrosty, 01-28-2026, 06:49 PM
                      0 responses
                      548 views
                      1 like
                      Last Post RFrosty
                      by RFrosty
                       
                      Working...
                      X