PureBytes Links
Trading Reference Links
|
On Sun, 27 Jan 2002 09:32:43 -0800, "BobR" <bobrabcd@xxxxxxxxxxxxx> wrote
>
> Subject: GEN - sine and triangle wave data needed
>
> Am in need of some sinewave and triangle wave data
> for testing and illustration purposes. ASCII or OMZ or
> XLS is fine. Daily format will do or any time period
> for that matter. Just need 3 or more cycles.
>
To generate a sinewave with period 20 in Excel,
put the numbers 0 thru 75 in column A, then
in cell B1 put this expression
=SIN(3.1415926*A1/20)
Now copy cell B1 and paste it into B2 thru B76. Done.
You have "written a computer program" to generate
a sinewave. Congratulations.
A tiny variation gets you a triangle wave.
|