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

Re: [amibroker] AFL selling and short selling



PureBytes Links

Trading Reference Links




You have them the wrong way 'round. Should be:
Buy = Cross( Close, MA( Close, 
45 ) );Sell = Cross( MA( Close, 45 ), Close );short = Cross( MA( Close, 
45 ), Close );cover = Cross( Close, MA( Close, 45 ) 
);
or more 
simply
 
Buy = Cross( Close, MA( Close, 45 ) );Sell = 
Cross( MA( Close, 45 ), Close );
short=sell;
cover=buy;
 
Steve

<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Adrian 
  Zaremba 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Tuesday, April 22, 2003 1:31 
  PM
  Subject: [amibroker] AFL selling and 
  short selling
  Buy = Cross( Close, MA( Close, 45 ) );Sell = Cross( MA( 
  Close, 45 ), Close );I want to modify this code so after selling I 
  want to short sell, I tried this, but this doesnt work:Buy = 
  Cross( Close, MA( Close, 45 ) );Sell = Cross( MA( Close, 45 ), Close 
  );short = Cross( Close, MA( Close, 45 ) );cover = Cross( MA( Close, 45 
  ), Close );Send 
  BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor












Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.