Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Fibonacci Circle Tangent S/R

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

    Fibonacci Circle Tangent S/R

    K, so heres a weird indicator i coded, its useful for me anyways lol. It draws some tangent fib lines on a fib circle and updates the lines every time Paint is called.

    It demonstrates:

    Converting drawing x coordinates to time (getTimeByX)
    Converting drawing y coordinates to price (getPriceByY and using the max and min values passed by the plot method in the indicator)
    Converting time to drawing x coordinates (ChartControl.GetXByTime)
    Converting price to drawing y coordinates (ChartControl.GetYByValue)


    To use, draw a fibonacci circle. Change the tag field to "fib" (without quotes). Add the indicator.

    The indicator should add tangent lines to the fib circle, the position depending on the number in the 'position' field. The lines will update when the fib circle moves, is resized, scale changes, etc...

    Position Field:
    1 = second quadrant
    2 = first quadrant
    3 = third quadrant
    4 = fourth quadrant.
    5 = third and fourth
    6 = first and second
    default = 6

    The indicator gets screwed up if you check 'divide time and price separately', so dont do that lol.

    You can also choose extended lines via the parameter Extended.The default is to use extended lines.

    Enjoy!

    Image of indicator attached...

    edit:updated to fix an error with serializable color arg lol its good now

    edit: see final post for downloadable version, i deleted all the old zip files to get rid of confusion! The indicator is very different now! Also, you might as not read the first couple of posts, just read the last two and check out the indicator!
    Attached Files
    Last edited by Starry; 08-09-2013, 07:26 AM.

    #2
    Why not. heres another one, horizontalish tangent lines. name the fib circle "time" (without quotes).
    Attached Files
    Last edited by Starry; 08-09-2013, 07:25 AM.

    Comment


      #3
      Theres a buggy bug bug that i dont ye tknow how to fix, on the right hand edge of the chart, it messes up AND when you add another indicator with another window (fortunately i dont however i will try to get it to work, because its annoying. ninjjjaaa. why don't you support drawing x,y -> time,price transformations! oh well, ill figure it out).

      Anyways. Heres the second to last version, it combines the two indicators and adds a toolbar! The final version will come when ive tested it countless times while trading live to make sure there is no bug lols....but this version is cool, see the picture for the toolbar yo...

      Click image for larger version

Name:	image.png
Views:	1
Size:	160.0 KB
ID:	868757
      Last edited by Starry; 08-09-2013, 07:24 AM.

      Comment


        #4
        The final version (if i dont find any more bugs, which i probably wont)!

        I fixed all the bugs by drawing my own lines using c#. Its awesome!

        So... lol, this code now demonstrates:
        1) Accessing a fibonacci circle's internal variables (startBarDouble and endBarDouble)
        2) Calling an internal method that converts double bar values to drawing x values, taking into account equidistant bar = true or false
        3) Converting price to drawing y value
        4) Drawing your own lines and rays using c# (dotted style!) by calculating the intersection of a line with a rectangle (the canvas)



        Mwhaha, im done! now on to trading...

        edit: added a horizontal line and vertical line option, reuploaded...
        Attached Files
        Last edited by Starry; 08-13-2013, 04:35 PM.

        Comment


          #5
          edit: deleted post because it is not how i really use the indicator
          Last edited by Starry; 08-13-2013, 04:43 PM.

          Comment


            #6
            One last version. Added offset line capability, which i use in my method. (purple line)
            When OffsetLines = true, you get the textbox in the toolbar. You should enter four numbers. The first two is the ratio of the line you want to use and then the position. The next two is the ratio of the radius you want to offset it to, and the position. A radius of 0 is great, it puts the line at the center of the circle.


            A position can be 1, 2, 3, or 4 (as i drew in the picture) and it indicates the section of the coordinate axis where the line is tangent to the circle. If the third number is 0, then the last number can be any of 1,2,3, or 4 because the line goes through the center of the circle.

            you can put as many whitespaces as you want between each number



            Click image for larger version

Name:	screenshot_indicator.png
Views:	1
Size:	277.7 KB
ID:	868984
            Last edited by Starry; 08-14-2013, 04:27 PM.

            Comment


              #7
              one more last version

              i added offset capability for time left and time right

              i also made it simpler, now only three numbers
              number 1: the circle ratio that produces the tangent line
              number 2: the circle ratio where the line is placed and is tangent to
              number 3: the position (1,2,3,4) where the line tangency is located
              Attached Files

              Comment


                #8
                i just downloaded and installed it.Your code doesn`t show anything.

                Comment


                  #9
                  did u put the fibsr indicator on the chart, draw a fibonacci circle and give it the correct tag ("fib" without the quotes, case sensitive)?

                  if u put the fibsr indicator on the chart, u should atleast see two buttons appear in the toolbar

                  i know it works because i just tried it
                  Last edited by Starry; 08-14-2013, 07:47 PM.

                  Comment


                    #10
                    LOL...nah,i didn`t.i though it should appear somehow on its own.But yes,i do have two green buttons.
                    How about Dynamic Fibs for intraday trading?Did you by chance come across something like that?

                    Comment


                      #11
                      \\deleted post

                      Comment


                        #12
                        nope! but i will look at it tomorrow, because it sounds interesting

                        Comment


                          #13
                          Originally posted by SnakeEYE View Post
                          LOL...nah,i didn`t.i though it should appear somehow on its own.But yes,i do have two green buttons.
                          How about Dynamic Fibs for intraday trading?Did you by chance come across something like that?
                          do u use it for intraday trading?

                          Comment


                            #14
                            I couldn`t find it anywhere so far.What i need is a Dynamic Fibonacci indie that would calculate over a certain period(# of bars).NOT from a previous sessions` high/low.Please post it here,if you by chance will find one.

                            Cheers!

                            Comment


                              #15
                              Originally posted by Starry View Post
                              do u use it for intraday trading?
                              Yes,exactly

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by chbruno, Today, 04:10 PM
                              0 responses
                              1 view
                              0 likes
                              Last Post chbruno
                              by chbruno
                               
                              Started by josh18955, 03-25-2023, 11:16 AM
                              6 responses
                              436 views
                              0 likes
                              Last Post Delerium  
                              Started by FAQtrader, Today, 03:35 PM
                              0 responses
                              6 views
                              0 likes
                              Last Post FAQtrader  
                              Started by rocketman7, Today, 09:41 AM
                              5 responses
                              19 views
                              0 likes
                              Last Post NinjaTrader_Jesse  
                              Started by frslvr, 04-11-2024, 07:26 AM
                              9 responses
                              127 views
                              1 like
                              Last Post caryc123  
                              Working...
                              X