PureBytes Links
Trading Reference Links
|
John,
Here is a version of the WillSpread indicator that you can cut and paste:
The points make it easier to see the crossovers of the L/Tmoving average.
Regards,
Barry Silberman
==================================================
{Will-Spread per Larry Williams pages 138 - 141 of book "Long-Term Secrets
to Short-Term Trading}
{Barry Silberman interpretation}
{plots 1 and 2 should be lines. Plots 3 and 4 should be points}
inputs: DataSeries1( Close of data1), DataSeries2( Close of data2 ),
length1(5), length2(20) ;
Variable: Spread(0), Avg_Short(0), Avg_Long(0);
Spread = DataSeries1 - DataSeries2;
Avg_Short = xaverage(spread, length1);
Avg_Long = xaverage(spread, length2);
Plot1( Avg_Short, "avg_short" ) ;
Plot2( Avg_long, "avg_long" ) ;
If avg_short crosses over avg_long then
Plot3(0, "up", green, default, 4);
If avg_short crosses under avg_long then
Plot4(0, "down", red, default, 4);
----- Original Message -----
From: <Jdev02@xxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Wednesday, August 28, 2002 10:42 AM
Subject: Williams Indicator
> I'm having a problem coding Larry's Williams "WillSpread" indicator.
> It involves plotting a spread of data1 and data2. You then plot a
> price oscillator of the spread with values of 5 & 20. I also need to
> be able to reference these values in a system test. Any help would
> be appreciated.....thanks/John
>
|