V.14:11 (483-487): SIDEBAR: BASIC and TradeStation Code for Phase Calculation

V.14:11 (483-487): SIDEBAR: BASIC and TradeStation Code for Phase Calculation
Item# \V14\C11\SIDEBAS.PDF
Availability: In Stock

Product Description


This BASIC code finds the real part of the phasor (the horizontal component) and the imaginary part of the phasor (the vertical component) by summing the product of the price and the two sinusoids over one full cycle of the dominant cycle. The arctangent function locates the phase to be in the first or fourth quadrant. The quadrant ambiguity is removed by adding p to the phase angle is the real part is negative. A value of p/2 is arbitrarily added to the computed phase so the start of the cycle is referenced to a sinewave. The computed phase angle is then tested to fall within the range from zero to 2p. The phase is then converted to degrees from radian measure.

*Note: $2.95-$5.95 Articles are in PDF format only. No hard copy of the article(s) will be delivered. During checkout, click the "Download Now" button to immediately receive your article(s) purchase. STOCKS & COMMODITIES magazine is delivered via mail. After paying for your subscription at store.traders.com users can view the S&C Digital Edition in the subscriber's section on Traders.com.

Take Control of Your Trading.
Professional Traders' Starter Kit
All these items shown below only $299.99!
  • 5-year subscription to Technical Analysis of STOCKS & COMMODITIES, The Traders' magazine. (Shipping outside the US is extra. Washington state addresses require sales tax based on your locale.)
  • 5 year access to S&C Archive
  • 5 year access to S&C Digital Edition
  • 5-year subscription to Traders.com Advantage.
  • 5-year subscription to Working Money.
  • Free book selection.
  • Click Here to Order