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

Re: [amibroker] crash when concatenating SectorID for ATC



PureBytes Links

Trading Reference Links




ok I 
found the answer out.
<FONT face=Arial color=#0000ff 
size=2> 
The 
EMA (37) was set on the Low in the code not the close!!! <FONT 
face="Times New Roman">Sell<FONT 
color=#000000> = Cross<FONT 
color=#000000>(EMA<FONT 
color=#000000>(L, test), C); //exit 
rules
<FONT color=#008000 
size=2> 
der 
:-)
<FONT color=#008000 
size=2> 
<FONT color=#008000 
size=2>Don

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: Collectable Images 
  [mailto:telecard@xxxxxxxxxxxxxx]Sent: Saturday, 3 July 2004 5:07 
  PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
  Bugs?
  Hello,I am a newbie to this program so appreicate any 
  help to understand what is going on with the program.I havean issue 
  that I can not understand.1) A chart shown below has the 37 day 
  EMA (blue line) and the code in amibroker should exit at break of this line 
  with the close. Why did it not stop out??
  Here is the code.
  
  PosQty = 15; <FONT 
  color=#008000>//posqty = Optimize("PosQty", 15, 1, 25, 1 
  );
  SetOption(<FONT 
  color=#ff00ff>"MaxOpenPositions", posqty);
  PositionSize = -<FONT 
  color=#ff00ff>100/posqty; 
  Average_Price = Ref(<FONT 
  color=#0000ff>MA(C, 14), -<FONT 
  color=#ff00ff>1);
  Average_volume = Ref(<FONT 
  color=#0000ff>MA(V, 14), -<FONT 
  color=#ff00ff>1);
  Liquidity = Average_Price * Average_volume;
  test = Optimize(<FONT 
  color=#ff00ff>"test", 3<FONT 
  face="Courier New" color=#ff00ff>5, 1, <FONT 
  color=#ff00ff>50, 1); 
   
  Buy = <FONT 
  color=#0000ff>Cross(H, Ref(<FONT 
  color=#0000ff>HHV (H, 10), -<FONT 
  color=#ff00ff>1)) AND H > <FONT 
  color=#0000ff>EMA(C, 40) AND 
  HHVBars(H, <FONT 
  color=#ff00ff>70)==0 AND Liquidity 
  > 500000 AND C < <FONT 
  color=#ff00ff>10 AND C > O; <FONT 
  color=#008000>//Entry Conditions
  Sell = <FONT 
  color=#0000ff>Cross(EMA(L, test), 
  C); //exit rules<FONT 
  color=#0000ff>
  SetTradeDelays(<FONT 
  color=#ff00ff>0, 0, <FONT 
  color=#ff00ff>0, 0);<FONT 
  color=#008000 size=1>
  
  <IMG 
  alt="The image “file:///C:/Main%20Directory/StockMarket/Image%20File%20Charts/chart.JPG” cannot be displayed, because it contains errors." 
   
   Check AmiBroker web page at:<A 
  href="">http://www.amibroker.com/Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  


Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html








Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.






Attachment: Description: ""