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

Fw: fileappend



PureBytes Links

Trading Reference Links

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