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.
cracked it.... My charting software has height from top to bottom, not bottom to top.. Thanks lads and ladies
.."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
Go to wolfram alpha. Type 100tan(angle). http://www.wolframalpha.com/input/?i=100*tan(67) Approx. 236 for 67 degrees
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.