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

Countback line



PureBytes Links

Trading Reference Links

try, please, to optimize these simple trading system (also one variable at a time) and tell me if AB crashes. It happens at 7th step. Attached you canread the bug report.

p.s.: I think the trouble is not due to Stephan's dll, but to Metastock CBLformula, because yesterday I had the same crash using the AFL version of that formula.

//COUNTBACK Line

HighDays = Optimize("",2,2,55,1);

LowDays = 2;//Optimize("",2,2,55,1);

BuyStop = msCBLShort(HighDays);

SellStop = msCBLLong(LowDays);

Buy = Cross(C,BuyStop);

Sell = Cross(SellStop,C);

Buy=ExRem(Buy,Sell);

Sell=ExRem(Sell,Buy);

Filter=(Buy OR Sell);


Beste regards and thanks in advance,

Franco

------=_NextPart_001_008A_01C268C1.87570880
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2719.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Stephan and Tomasz,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>try, please, to optimize these simple trading 
system (also one variable at a time) and tell me if AB crashes. It happens at 
7th step. Attached you can read the bug report.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>p.s.: I think the trouble is not due to Stephan's 
dll, but to Metastock CBL formula, because yesterday I had the same crash using 
the AFL version of&nbsp;that formula.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" color=#008000 size=1>
<P>//COUNTBACK Line</P></FONT><FONT face="Courier New" size=1>
<P>HighDays = </FONT><FONT face="Courier New" color=#0000ff 
size=1>Optimize</FONT><FONT face="Courier New" size=1>(</FONT><FONT 
face="Courier New" color=#ff00ff size=1>""</FONT><FONT face="Courier New" 
size=1>,</FONT><FONT face="Courier New" color=#ff00ff size=1>2</FONT><FONT 
face="Courier New" size=1>,</FONT><FONT face="Courier New" color=#ff00ff 
size=1>2</FONT><FONT face="Courier New" size=1>,</FONT><FONT face="Courier New" 
color=#ff00ff size=1>55</FONT><FONT face="Courier New" size=1>,</FONT><FONT 
face="Courier New" color=#ff00ff size=1>1</FONT><FONT face="CourierNew" 
size=1>);</P>
<P>LowDays = </FONT><FONT face="Courier New" color=#ff00ff size=1>2</FONT><FONT 
face="Courier New" size=1>;</FONT><FONT face="Courier New" color=#008000 
size=1>//Optimize("",2,2,55,1);</P></FONT><FONT face="Courier New" size=1>
<P>BuyStop = </FONT><FONT face="Courier New" color=#0000ff 
size=1>msCBLShort</FONT><FONT face="Courier New" size=1>(HighDays);</P>
<P>SellStop = </FONT><FONT face="Courier New" color=#0000ff 
size=1>msCBLLong</FONT><FONT face="Courier New" size=1>(LowDays);</P><B>
<P>Buy</B> = </FONT><FONT face="Courier New" color=#0000ff 
size=1>Cross</FONT><FONT face="Courier New" size=1>(<B>C</B>,BuyStop);</P><B>
<P>Sell</B> = </FONT><FONT face="Courier New" color=#0000ff 
size=1>Cross</FONT><FONT face="Courier New" size=1>(SellStop,<B>C</B>);</P><B>
<P>Buy</B>=</FONT><FONT face="Courier New" color=#0000ff 
size=1>ExRem</FONT><FONT face="Courier New" 
size=1>(<B>Buy</B>,<B>Sell</B>);</P><B>
<P>Sell</B>=</FONT><FONT face="Courier New" color=#0000ff 
size=1>ExRem</FONT><FONT face="Courier New" 
size=1>(<B>Sell</B>,<B>Buy</B>);</P><B>
<P>Filter</B>=(<B>Buy</B> <B>OR</B> <B>Sell</B>);</P></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Beste regards and thanks in advance,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Franco</FONT></DIV></BODY></HTML>

------=_NextPart_001_008A_01C268C1.87570880--

AmiBroker version 4.16.0
( cooltool.dll 4.16.0, mfc42.dll 6.0.8665, msvcrt.dll 6.0.8797 )

Microsoft Windows 98 version 4.10 (Build 2222)
Service Pack 0.0
Common Controls: 5.81

Unhandled exception
Type:	CSysException
Code:	c0000005
Description:	ACCESS VIOLATION
Address:	7800cb6a
HWnd:	0x0184
Msg:	0x0110
wParam:	0x000001e8
lParam:	0x00000000

Additional information:

Number of stock loaded: 468
Currently selected stock: KSWS
Number of quotes (current stock): 939

Command history:
2828 - Shows Analyser - a tool to test systems & explore market--Auto-Analyser
5003 - Daily quotations view--Daily view

Workspace:
Data source = 0, Data local mode = 0, NumBars = 1000

Preferences:
Data source = 1, Data local mode = 1, NumBars = 1000

Cache manager stats:
Number of list elements: 100
Number of map elements: 100
Hash table size: 5987

Memory status:
MemoryLoad: 100 %
TotalPhys: 130496K AvailPhys: 132K
TotalPageFile: 1966652K AvailPageFile: 1840024K
TotalVirtual: 2093056K AvailVirtual: 2041856K