Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Automatic Fibonacci levels

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

    #16
    Originally posted by filoo7 View Post

    I have tried as you say but it still remains in Prior Day.
    I can't spend it in Prior Week
    I am sorry maybe I do it badly, I don't know how to code ...
    Paul proposed to use the PriorDayOHLC indicator.
    So I tried to modify the code of your message 3 by replacing line 29 so that it is based on the PriorWeekOHLC rather than the PriorDayOHLC but it does not work​
    I am not sure now what is that you are trying to do after seeing your attached txt file. If you are looking for PriorWeekOHLC and PriorMonthOHLC, these indicators are already in Dowaloads section that you can just download.

    But if you are trying to create an indicator for PriorWeekFibs and PriorMonthFibs levels then use the example in post #3 and change it for weekly or monthly Fibs and save them with a different name.

    Here is an example for WeeklyFibs. You need to create and save a custom Fibonacci Retacement template as explained in previous posts for fibs to show.

    Let me know if this worked for you.
    Attached Files
    Last edited by aligator; 08-23-2023, 10:01 PM.

    Comment


      #17
      Originally posted by aligator View Post

      I am not sure now what is that you are trying to do after seeing your attached txt file. If you are looking for PriorWeekOHLC and PriorMonthOHLC, these indicators are already in Dowaloads section that you can just download.

      But if you are trying to create an indicator for PriorWeekFibs and PriorMonthFibs levels then use the example in post #3 and change it for weekly or monthly Fibs and save them with a different name.

      Here is an example for WeeklyFibs. You need to create and save a custom Fibonacci Retacement template as explained in previous posts for fibs to show.

      Let me know if this worked for you.
      It works very well, thank you for taking some time to help me.
      I will now try to put it in months.
      Could you tell me which line to modify in the code?
      If I modify line 29 by replacing priorweekOHLC by priormonthOHLC it would work do you think?​

      Comment


        #18
        Originally posted by filoo7 View Post

        It works very well, thank you for taking some time to help me.
        I will now try to put it in months.
        Could you tell me which line to modify in the code?
        If I modify line 29 by replacing priorweekOHLC by priormonthOHLC it would work do you think?​
        without wanting to abuse you, to think that it would be possible to start the fibo week at the beginning of the week rather than at the beginning of the day, because when you change the timeframe even after having recorded a model week, it always comes back to the original code​

        Comment


          #19
          filoo7

          No, I don't feel abused, but this exercise does not produce anything that is really useful to me or 99% of traders. A Fib dropped on PriorMonthOHLC will not change untill a new mount is started. So, why would anyone look at a monthly fib every day for a mount? I am not sure if monthly fibs are relevant in today's dynamic markets, other than perhaps for long term investments.

          However, since we are on the subject, it is better not to leave it half done.

          To answer your questions:
          1. To get the PriorMonthFib, simply open the PriorWeekFib indicator and change "WeeK" to "Month" where you find them all (7), then Compile and you have it. But don't worry, I already did it for you and is attached. You need to load at least over 60 days of data for this indicator to work.

          2. Programing the code to start on the first day of the week instead of the current day of the week involes a bit more coding. Perhaps NinjaTrader_PaulH would chim in to show how to start fibs on the first day of the current week or Month.

          Cheers!
          Attached Files
          Last edited by aligator; 08-26-2023, 10:13 AM.

          Comment


            #20
            Originally posted by aligator View Post
            filoo7

            No, I don't feel abused, but this exercise does not produce anything that is really useful to me or 99% of traders. A Fib dropped on PriorMonthOHLC will not change untill a new mount is started. So, why would anyone look at a monthly fib every day for a mount? I am not sure if monthly fibs are relevant in today's dynamic markets, other than perhaps for long term investments.

            However, since we are on the subject, it is better not to leave it half done.

            To answer your questions:
            1. To get the PriorMonthFib, simply open the PriorWeekFib indicator and change "WeeK" to "Month" where you find them all (7), then Compile and you have it. But don't worry, I already did it for you and is attached. You need to load at least over 60 days of data for this indicator to work.

            2. Programing the code to start on the first day of the week instead of the current day of the week involes a bit more coding. Perhaps NinjaTrader_PaulH would chim in to show how to start fibs on the first day of the current week or Month.

            Cheers!
            Thank you very much for your answer.

            The interest for me is to be able to directly change assets on the same window with a predefined fibo model.

            If you don't see the interest of a monthly fibo, I invite you to watch on ES the 127.2 of July made on August 18, in intraday there is something to eat

            Anyway, thank you again for your response.​

            Comment


              #21
              Originally posted by filoo7 View Post

              Thank you very much for your answer.

              The interest for me is to be able to directly change assets on the same window with a predefined fibo model.

              If you don't see the interest of a monthly fibo, I invite you to watch on ES the 127.2 of July made on August 18, in intraday there is something to eat

              Anyway, thank you again for your response.​
              You are welcome. Absolutely, monthly and weekly fibs are very useful in asset allocation.

              I actually made several tastey trades and captured the entire downtrnd starting near end of july based on divergences confirmed by daily and weely fib levels. 127.2 is a favorite of mine. In fact, majority of my entries, targets, and stops are based on fib and price memory levels including a hadsome trade on Aug 17th that closed all the way up for more nice gains on a a 5 wave and fib levels. I invite you to see my recent live trades reported in my thread here:

              Comment


                #22
                Originally posted by aligator View Post

                You are welcome. Absolutely, monthly and weekly fibs are very useful in asset allocation.

                I actually made several tastey trades and captured the entire downtrnd starting near end of july based on divergences confirmed by daily and weely fib levels. 127.2 is a favorite of mine. In fact, majority of my entries, targets, and stops are based on fib and price memory levels including a hadsome trade on Aug 17th that closed all the way up for more nice gains on a a 5 wave and fib levels. I invite you to see my recent live trades reported in my thread here:

                https://nexusfi.com/elite-circle/204...tml#post888893
                It looks interesting, but not being subscribed, I can't see what the Gradient Color Bar indicator looks like ... Do you have a screenshot?​

                Comment


                  #23
                  aligator,
                  Great work! I've been trying to create a strategy with a user-drawn fib but am just starting out coding and not there yet... could I use use this indicator to get the fibs drawn in a strategy and then adjust anchor points (IsUserDrawn) to highs/lows of my choosing, applying conditions to various fib levels as entries and targets? It's the making Fibonacci Retracements Drawing Tool/Indicator user-editable and having those new values stored and applied that's having me hit a wall...any ideas?

                  Comment


                    #24
                    Originally posted by swjake View Post
                    aligator,
                    Great work! I've been trying to create a strategy with a user-drawn fib but am just starting out coding and not there yet... could I use use this indicator to get the fibs drawn in a strategy and then adjust anchor points (IsUserDrawn) to highs/lows of my choosing, applying conditions to various fib levels as entries and targets? It's the making Fibonacci Retracements Drawing Tool/Indicator user-editable and having those new values stored and applied that's having me hit a wall...any ideas?
                    The answer is probably a NO. Strategies require certain dynamic conditions created and reached by an indicator to make trade decisions. This indicator would require substantial work to do what you need done.

                    Also, NT drawing tools can be modified and compiled under a different name, but that involves some custom work since the NT's under-the-hood information is not public.

                    Cheers!
                    Last edited by aligator; 11-06-2023, 08:28 PM.

                    Comment


                      #25
                      Originally posted by aligator View Post

                      The answer is probably a NO. Strategies require certain dynamic conditions created and reached by an indicator to make trade decisions. This indicator would require substantial work to do what you need done.

                      Also, NT drawing tools can be modified and compiled under a different name, but that involves some custom work since the NT's under-the-hood information is not public.

                      Cheers!
                      Hi aligator, apologies for bringing up an old thread. I am looking for exactly the indicator that you have kindly provided in this thread named PriorDayFibs. However, would it be possible to have these levels for every single session and not just the current session? Meaning to say, I would like to plot the fibonacci levels for every single session, extended lines for the whole session, based on their respective previous session's High and Low. I would also like the fibonacci levels to be extended from just 0 - 100 % to -100% to 200%. Appreciate your assistance very much. Thank you.
                      Last edited by sprez74tura; 02-06-2024, 12:11 AM.

                      Comment


                        #26
                        Originally posted by sprez74tura View Post

                        Hi aligator, apologies for bringing up an old thread. I am looking for exactly the indicator that you have kindly provided in this thread named PriorDayFibs. However, would it be possible to have these levels for every single session and not just the current session? Meaning to say, I would like to plot the fibonacci levels for every single session, extended lines for the whole session, based on their respective previous session's High and Low. I would also like the fibonacci levels to be extended from just 0 - 100 % to -100% to 200%. Appreciate your assistance very much. Thank you.
                        As I understand, once you choose a session for your chart(i.e. 1st session, 2nd session, etc.) the Prior Day Fib indicator will use the begining and the end of the of that session to draw the fib lines. You can extend your fib lines from the default Fib parameters list. NT Support will be a better source to help with specific requests.

                        Cheers!

                        Comment


                          #27
                          What a great topic. How would you guys recommend to draw a fibo inside a 21 donchian channel on ninjatrader?
                          Do you guys think it's possible to use Draw.FibonacciRetracements() inside a donchian?
                          Last edited by calster; 05-24-2024, 02:41 PM.

                          Comment


                            #28
                            Originally posted by calster View Post
                            What a great topic. How would you guys recommend to draw a fibo inside a 21 donchian channel on ninjatrader?
                            Do you guys think it's possible to use Draw.FibonacciRetracements() inside a donchian?
                            Not so difficult. Let's say you want to draw fib levels of 38.2, 50, and 61.8% between Donchian bands. You need to plot 3 additional bands inside the upper and lower bands that are placed at 38.2, 50, and 61.8 % of the difference between the Upper and Lower bands of the Domchian. Formulas are something like this:

                            For 38.2%: 38Level[0] = LowerBand[0] + 38.2 * (UpperBand[0] - LowerBand[0])/100

                            For other levels simply change the 38 to 50 or 62, etc. Note that the 50% line is already drawn in Dinchian as the 'Median Line", so you need to add other levels of your interest.

                            You do not need to be a programmer, just copy and modify the plot information for one the Donchian bands and add the additional 3 etc. bands.

                            Cheers!​
                            Last edited by aligator; 05-26-2024, 12:50 PM.

                            Comment


                              #29
                              Originally posted by aligator View Post

                              If you mean the indicator in post # 3, it already works for NT8. Are you suggesting to update the code per Paul's suggestion.

                              You can draw a fib then edit its properties and create a fib template of your liking and save it as "Prior Day Fibs" template. Then simply edit line 60 of the code in post # 3 as the following and then compile(F5).

                              Code:
                              Draw.FibonacciRetracements(this, "PDFibs", false, 0, myPD.PriorHigh[0], 0, myPD.PriorLow[0], false, "Prior Day Fibs");
                              Cheers!
                              I was wondering if someone could help me with the code above. I have implemented this into the indicator, however, the template does not get implemented, (the default Fib template is used) and I have to manually assign the fib template indicated in the indicator. Thanks!

                              Comment


                                #30
                                Originally posted by nelslynn View Post

                                I was wondering if someone could help me with the code above. I have implemented this into the indicator, however, the template does not get implemented, (the default Fib template is used) and I have to manually assign the fib template indicated in the indicator. Thanks!
                                Please:

                                Please review Posts # 3 through 8 first. If you do not find an answer, then:

                                1. post your version of the above code for line 60.
                                2. also post a screenshot of your Fib template parameters list
                                3. attach the indicator to a simple chart and post the chart with the list of Fib parameters on the chart.

                                Cheers!

                                Comment

                                Latest Posts

                                Collapse

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