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

RE: Updating Chandelier Exit indicator



PureBytes Links

Trading Reference Links

Hello FPI,

Try using 1000103 for today's date as an example. It seems to
work for me using TS4v25. 1999 dates also still work using 99
as the year.

I believe this is the same version of the Chandelier Exit I posted to
Mark Browns code list in Dec98 ... except my initials were removed ;-)
I am sorry I didn't think ahead at that time to make it Y100 compliant.

Tom T.
(no relation to Omega Research)

-----Original Message-----
From: fpi@xxxxxxxxxxxx [mailto:fpi@xxxxxxxxxxxx]
Sent: Monday, January 03, 2000 5:49 PM
To: omega-list@xxxxxxxxxx
Subject: Updating Chandelier Exit indicator


Dear List:

Below is the code for Chuck LeBeau's Chandelier Exit. It's not plotting if
I use anything beyond 991231 as the entry date for a trade.

I've tried various combinations, including 100 for 2000 for the year.

I've also changed the format to YYYMMDD. No luck.

Since I know almost nothing about EL, the solution is probably obvious to
those who do know EL & before contacting OR, if someone has a solution, I'd
appreciate it.

Much appreciated,

FPI



********

Input:	StrtDate(0),	{Date you want  plot to start, YYMMDD format}
		StrtTime(0),	{Optional time to start if intraday data, HHMM 24 hour
format}
		Pos("L"),		{Position - use "L" for Long "S" for Short (including quotes)}
		Fac(3),			{True range multiplier}
		ATRLen(10);	{Length of average}
Vars:
		MaxChand(-999999),		{Chandelier exit var}
		MinChand(999999)			{Chandelier exit var};

If Pos="L" then begin {Long Trade}
	if Time>=StrtTime and Date>=StrtDate then begin
		If (H -Fac*Average(TrueRange,ATRLen)) > MaxChand then
		MaxChand= (H -Fac*Average(TrueRange,ATRLen));
		Plot1(MaxChand,"LongExit");
	end;
end;

If Pos="S" then begin {Short Trade}
	if Time>=StrtTime and Date>=StrtDate then begin
		if (L +Fac*Average(TrueRange,ATRLen)) < MinChand then
		MinChand= (L +Fac*Average(TrueRange,ATRLen));
		Plot2(MinChand,"ShortExit");
	end;
end;

********