[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: sidewinder



PureBytes Links

Trading Reference Links

Why protected?

{*******************************************************************
Description	: Plots Side Winder
Provided By	: Monica N. December 18, 2004
********************************************************************}

Input: FlatLine(220), NotALine(0),SW0(75), SW1(100), Flat(yellow),
Up(green), Down(red),
	   Price(Close), LengthLsma(25), LengthEma(34), NBarsVolTick(5);
Variables: AbsDisp(0), Colour(green), MedianEMA(0), MedianLSMA(0),
PrevEMA(0), PrevLSMA(0), IntervalSize(3), 
	swsign(0), swabs(0), swvalue(0), EmaAngleFactor(1),
IntervalSizeRaw(0),
	LsmaSlope(0), LsmaAngle(0), EmaSlope(0), TicNum(10), EmaAngle(0),
EMA(0), LSMA(0), SessionDuration(0);


IntervalSize = BarInterval;
TicNum = pricescale/minmove;

EMA = XAverage(Price,LengthEma);
LSMA = ( LinearRegValue( Price, LengthLSMA, 0 ));

MedianEMA = (EMA[1]+EMA[2])/2;
MedianLSMA = (LSMA[1]+LSMA[2])/2;

if DataCompression = 2 then begin	{day}
	SessionDuration =
AbsValue(TimeToMinutes(Sess1EndTime)-TimeToMinutes(Sess1StartTime)); 
	IntervalSizeRaw = SessionDuration*60;
	EmaAngleFactor = SquareRoot(IntervalSizeRaw/180);
end else if DataCompression = 3 then begin	{week}
	SessionDuration =
AbsValue(TimeToMinutes(Sess1EndTime)-TimeToMinutes(Sess1StartTime));
	IntervalSizeRaw = SessionDuration*60*5;
	EmaAngleFactor = SquareRoot(IntervalSizeRaw/180);
end else if DataCompression = 4 then begin	{month}
	SessionDuration =
AbsValue(TimeToMinutes(Sess1EndTime)-TimeToMinutes(Sess1StartTime));
	IntervalSizeRaw = SessionDuration*60*22;
	EmaAngleFactor = SquareRoot(IntervalSizeRaw/180);
end else if DataCompression = 0 then begin	{volume and tick}
	if TimeToMinutes(T)-TimeToMinutes(T of NBarsVolTick bars ago) > 1
then 
		SessionDuration = TimeToMinutes(T)-TimeToMinutes(T of
NBarsVolTick bars ago)
	else
		SessionDuration = 1;
	IntervalSizeRaw = 60*SessionDuration/NBarsVolTick;
	EmaAngleFactor = SquareRoot(IntervalSizeRaw/180);
end else if DataCompression = 1 then begin	{minutes}
	IntervalSizeRaw = IntervalSize*60;
	EmaAngleFactor = SquareRoot(IntervalSizeRaw/180);
end;


LsmaSlope = (LSMA - MedianLSMA)*TicNum;
LsmaAngle = ArcTangent(LsmaSlope/EmaAngleFactor);
EmaSlope = (EMA - MedianEMA)*TicNum;
EmaAngle = ArcTangent(EmaSlope/EmaAngleFactor);
swvalue = LsmaAngle + EmaAngle;
swabs = AbsValue(swvalue);
swsign = swvalue/swabs;
if swabs >= SW1 then begin setplotcolor(1,Up); setplotcolor(2,Up); end
else if swabs > SW0 then begin setplotcolor(1,Flat); setplotcolor(2,Flat);
end
else begin setplotcolor(1,Down); setplotcolor(2,Down); end;
Plot1(FlatLine, "SIDWIN");
Plot2(-FlatLine, "SIDWIN");

-----Original Message-----
From: john Davis [mailto:buglywugly@xxxxxxxxxxx] 
Sent: Thursday, May 12, 2005 3:33 PM
To: omega-list@xxxxxxxxxx
Subject: re: sidewinder

The sidewinder is an indicator that is made up mainly of the 25 lr and the 
34 ema. It is supposed to filter out  low probable trades. I have heard that

there is 300 lines of code. If this is the case
then it obviously uses more. I don't think it is for sale and the  code is 
protected.  I have watched the sidewinder in real time, why not just use the

25 and the 34 since they line up with it?