Maths wizz only thanks

Discussion in 'Chit Chat' started by Digs, Apr 6, 2010.

  1. Digs

    Digs

    This is what I getting with vb code..

    Degrees
    X1 and Y1 are static for testing
    X2 and Y2 are calculated.

    ALL X and Y are pixels

    X2 = X1+100 pix

    Y2 = ??


    Dim Angle As Double = (Levels(k) * Math.PI) / 180
    Dim y2 As Integer = CInt((100 * Math.Tan(Angle)))

    This is what I get ...(NOT Trendlines are converted to rays)

    NOTE: Chart is a even box so scalling is nullified.

    [​IMG]
     
    #11     Apr 6, 2010
  2. charts

    charts

    No shame in baring your lack of basic education ... :)
     
    #12     Apr 6, 2010
  3. Digs

    Digs

    cracked it....

    My charting software has height from top to bottom, not bottom to top..

    Thanks lads and ladies
     
    #13     Apr 6, 2010
  4. Digs

    Digs

    .."No shame in baring your lack of basic education"...

    Hey I have higher school this and that, but the brown ale stuff from easter is still ooozing out of me..

    NO SHAME here
     
    #14     Apr 6, 2010
  5. #15     Apr 6, 2010
  6. are you working in Excel / VBA? If so, the code =RAND() should give better results than your super dooper angly thingy me jig. Try it out. All other programming languages have formulas that will work as well. You also can construct a quite serviceable analog proxy using some common household items.

    Please, let me encourage you to thoroughly test the angley concept before you actually trade it. Please.


     
    #16     Apr 6, 2010