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

Re: fileappend ...thanks Nick d , mr m , alex m



PureBytes Links

Trading Reference Links

i will try that again

Hi all

The workaround for my file append problems were as follows



FileAppend("c:\bulshut.csv",numtostr(currentdate,0)+","+numtostr(CurrentTime
,0)+","+nameworkspace+",");
 print ("debug1");
 print ("debug1");
 FileAppend("c:\bulshut.csv",getSymbolName+","+getSystemName+",");
 print ("debug2");
 print ("debug2");

FileAppend("c:\bulshut.csv",numtostr(Commission+slippage,0)+","+numtostr(Avg
BarsLosTrade,0)+","+numtostr(AvgBarsWinTrade,0)+",");
 print ("debug3");
 print ("debug3");

FileAppend("c:\bulshut.csv",numtostr(GrossLoss,0)+","+numtostr(GrossProfit,0
)+","+numtostr(LargestLosTrade,0)+",");
 print ("debug4");
 print ("debug4");

FileAppend("c:\bulshut.csv",numtostr(LargestWinTrade,0)+","+numtostr(MaxCons
ecLosers,0)+","+numtostr(MaxConsecWinners,0)+",");
 print ("debug5");
 print ("debug5");

FileAppend("c:\bulshut.csv",numtostr(MaxiDDrawDown,0)+","+numtostr(NetProfit
,0)+","+numtostr(NumLosTrades,0)+",");
 print ("debug6");
 print ("debug6");

FileAppend("c:\bulshut.csv",numtostr(NumWinTrades,0)+","+numtostr(PercentPro
fit,0)+","+numtostr(TotalTrades,0)+",");
 print ("debug7");
 print ("debug7");

FileAppend("c:\bulshut.csv",numtostr(wins,0)+","+numtostr(losses,0)+","+numt
ostr(scratches,0)+","+numtostr(scratchloss,2)+",");
print ("debug8");
print ("debug8");

FileAppend("c:\bulshut.csv", NewLine);
end;

Note i split the file append command line into multiple segments , stopped
90% of my errors.

Note the lines with ... print ("debug7"); ....
this seemed to make things slow down marginally but stopped the intermittant
errors i got after splitting the file append , i am presuming something to
do with the operating system file io hitech thingo maybe...

:O)
cheers
Cameron



----- Original Message -----
From: "Cameron Jones" <camacazi@xxxxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Friday, August 29, 2003 6:07 PM
Subject: Fw: fileappend



Hi all

Anybody got any nice workaround for a bug that i have when using fileappend?
here is my syntax

FileAppend("c:\bcktst.csv",ELdatetoString(date)+","+numtostr(CurrentTime,0)+
","+getSymbolName+","+GetExchangeName+","+getSystemName+","+

numtostr(Commission,0)+","+numtostr(slippage,0)+","+numtostr(BigPointValue,0
)+","+

numtostr(AvgBarsLosTrade,0)+","+numtostr(AvgBarsWinTrade,0)+","+numtostr(Avg
EntryPrice,0)+","+numtostr(GrossLoss,0)+","+

numtostr(GrossProfit,0)+","+numtostr(LargestLosTrade,0)+","+numtostr(Largest
WinTrade,0)+","+numtostr(MaxConsecLosers,0)+","+

numtostr(MaxConsecWinners,0)+","+numtostr(MaxContractsHeld,0)+","+numtostr(M
axiDDrawDown,0)+","+numtostr(NetProfit,0)+","+

numtostr(NumLosTrades,0)+","+numtostr(NumWinTrades,0)+","+numtostr(PercentPr
ofit,0)+","+numtostr(TotalBarsLosTrades,0)+","+
   numtostr(TotalBarsWinTrades,0)+","+numtostr(TotalTrades,0)+Newline);








it works a few times but then i get this big error like this when optimising

Exception code: C0000005 ACCESS_VIOLATION
Fault address:  61137CD8 01:00036CD8
C:\PROGRA~1\OMEGAR~1\Program\orlib32.dll

Registers:
EAX:05379978
EBX:0012F584
ECX:05379978
EDX:03F12DC8
ESI:054679D0
EDI:00000000
CS:EIP:001B:61137CD8
SS:ESP:0023:0012F564  EBP:0012F5B4
DS:0023  ES:0023  FS:003B  GS:0000
Flags:00010246

Call stack:
Address   Frame
61137CD8  0012F5B4  TS_Print+8
611467C1  0012F63C  CalcMaxIDraw+581
61106444  0012F698  ResolveEX+E4
004AD04B  03F12DC8  ORText_Find+9B0B




I think its a bit clunky. i am using winxp.  Anybody got any ideas for a
work around?

ta muchly
Cameron