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

RE: questions regarding print files with an ela



PureBytes Links

Trading Reference Links

Be CAREFULL with PRINT.
Due to the double-scanning caused by system-determined maxbarsback, a file
could be opened, then closed, then opened again BEFORE your ELA file has run
it's course.

Best to : FileDelete, then FileAppend.

Vars: Value99(-1)

If Value99 = -1 then Begin {do this once only !}
	FileDelete("c:\.....");
	Value99 = 0;
End;
then use
	FileAppend("c:\.....");
in the body.

> -----Original Message-----
> From: Bob Hunt [mailto:RHunt.066@xxxxxxxxxxxxxxxx]
> Sent: Tuesday, October 05, 1999 10:06 AM
> To: Andrew Abraham cta
> Cc: omega-list@xxxxxxxxxx
> Subject: Re: questions regarding print files with an ela
>
>
> Andy,
>
> I've run into similar "commoditynumber" problems before and could
> never figure out why. I have since replaced such statements with:
>
> If leftstr(getsymbolname,2)="SP" then . . .
>
> I have not had any problems since.
>
> Bob Hunt
>
> ----------------------------------------------
> Andrew Abraham cta wrote:
> >
> > I have a simple Ela posted below and not all the commodities
> are reporting
> > to a file .. called dynamic..I checked the commodity numbers
> and even tried
> > the day only as well as globex....can someone direct me in what is wrong
> > here.. thanks..
> >
> > Andy Abraham
> >
> > inputs:ceil(60), Flr(20);
> > vars:x(0),y(0),ZDelta(0),Vlty(0),vara(0),
> > varb(0),oldvara(0),Ext(0);
> > y=x;
> > x=Stddev(close,30);
> > ZDelta=(x-y)/x;
> > if CurrentBar=1 then vara=20;
> > Oldvara=vara;
> > vara=oldvara*(1+ZDelta);
> > vara=MaxList(vara,Flr);
> > vara=MinList(vara,ceil);
> > varb=vara*0.5;
> > Buy tomorrow at highest(high[0],vara)stop;
> > Sell tomorrow at lowest(low[0],vara)stop;
> > ExitLong tomorrow at lowest(low,varb)stop;
> > Exitshort tomorrow at highest(high,varb)stop;
> >
> > if date >date[1] then begin
> > if commoditynumber =7 then
> > print(file ("c:\dynamic\ct"),
> > date:6:0,",",
> > DAYOFWEEK(date):1:0,",",
> > CurrenTtime:4:0,",",
> > openpositionprofit+netprofit,",",
> > netprofit,",",
> > maxiddrawdown,",",
> > marketposition:1:0);
> >
> > if commoditynumber =8 then
> > print(file ("c:\dynamic\hg"),
> > date:6:0,",",
> > DAYOFWEEK(date):1:0,",",
> > CurrenTtime:4:0,",",
> > openpositionprofit+netprofit,",",
> > netprofit,",",
> > maxiddrawdown,",",
> > marketposition:1:0);
> >
> > if commoditynumber =127 then
> > print(file ("c:\dynamic\sf2"),
> > date:6:0,",",
> > DAYOFWEEK(date):1:0,",",
> > CurrenTtime:4:0,",",
> > openpositionprofit+netprofit,",",
> > netprofit,",",
> > maxiddrawdown,",",
> > marketposition:1:0);
> >
> > if commoditynumber =144 then
> > print(file ("c:\dynamic\us2"),
> > date:6:0,",",
> > DAYOFWEEK(date):1:0,",",
> > CurrenTtime:4:0,",",
> > openpositionprofit+netprofit,",",
> > netprofit,",",
> > maxiddrawdown,",",
> > marketposition:1:0);
> >
> > if commoditynumber =262 then
> > print(file ("c:\dynamic\jy2"),
> > date:6:0,",",
> > DAYOFWEEK(date):1:0,",",
> > CurrenTtime:4:0,",",
> > openpositionprofit+netprofit,",",
> > netprofit,",",
> > maxiddrawdown,",",
> > marketposition:1:0);
> >
> > if commoditynumber =188 then
> > print(file ("c:\dynamic\cl"),
> > date:6:0,",",
> > DAYOFWEEK(date):1:0,",",
> > CurrenTtime:4:0,",",
> > openpositionprofit+netprofit,",",
> > netprofit,",",
> > maxiddrawdown,",",
> > marketposition:1:0);
> >
> > if commoditynumber =2 then
> > print(file ("c:\dynamic\lc"),
> > date:6:0,",",
> > DAYOFWEEK(date):1:0,",",
> > CurrenTtime:4:0,",",
> > openpositionprofit+netprofit,",",
> > netprofit,",",
> > maxiddrawdown,",",
> > marketposition:1:0);
> >
> > END;
>
> --
> Bob Hunt
> THE PATTERN TRAPPER
> E-Mail:  RHunt.066@xxxxxxxxxxxxxxxx
> Web Site: http://home.att.net/~rhunt.066
>
>