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

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

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

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by ScottWalsh, Today, 04:29 PM
                    0 responses
                    4 views
                    0 likes
                    Last Post ScottWalsh  
                    Started by rtwave, 04-12-2024, 09:30 AM
                    2 responses
                    21 views
                    0 likes
                    Last Post rtwave
                    by rtwave
                     
                    Started by tsantospinto, 04-12-2024, 07:04 PM
                    5 responses
                    69 views
                    0 likes
                    Last Post tsantospinto  
                    Started by cre8able, Today, 03:20 PM
                    0 responses
                    7 views
                    0 likes
                    Last Post cre8able  
                    Started by Fran888, 02-16-2024, 10:48 AM
                    3 responses
                    49 views
                    0 likes
                    Last Post Sam2515
                    by Sam2515
                     
                    Working...
                    X