PureBytes Links
Trading Reference Links
|
Bust in what I originally posted. See following
{ Indicator: Cosine_Wave
Purpose: Plot a cosine wave in subparagraph1 around a given
price line using a specified period and time shift.
Author: Clyde Lee, Copyright SYTECH Corporation, 2005
Permission: With credit may be copied/modified.
}
Input: BarsNPeriod(121), {Number of bars in selected period }
Bars2Shift(0), {Number of bars to shift the cycle }
CycleAmpl(20), {Amplitude of selected cycle }
PlotPrice(1200); {Selected line for plotting cycle }
Vars: DegPerBar(Iff(BarsNPeriod<>0,360/BarsNPeriod,360/51));
Plot1(CycleAmpl*Cosine((CurrentBar+Bars2Shift)*DegPerBar)+PlotPrice,"Wave");
Plot2(PlotPrice,"Zero");
|