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

RE: [amibroker] PositionSize Question



PureBytes Links

Trading Reference Links




scCMO 
is a DLL written by a user, available in Yahoo files or the AB 
library.
<FONT face=Arial color=#0000ff 
size=2> 
You 
can substitute CMO(6), same result.
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>Herman

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: Graham 
  [mailto:gkavanag@xxxxxxxxxxxxxx]Sent: Wednesday, February 12, 2003 
  3:38 PMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: 
  [amibroker] PositionSize QuestionI just get an error 
  in the first line. What is 
  scCMO?Cheers,Graham-----Original Message-----From: 
  Herman van den Bergen [mailto:psytek@xxxxxxxx] Sent: Thursday, 13 February 
  2003 9:51 AMTo: Amibroker@xxxxxxxxxxxx ComSubject: [amibroker] 
  PositionSize QuestionHello,If I test the code segments one and 
  two below separately, why do i getdifferent 
  results?Ind=scCMO(C,6);Buy=Cross(-20,Ind);Sell=Cross(Ind,20);Short 
  = Sell;Cover = Buy;Q = MA(C,5) > MA(C,20); // Just a test 
  signal// Code segment one//Buy = Buy AND 
  Q;       // Trades are executed when 
  Q==1//Short = Short AND Q;   // Trades are not executed when 
  Q==0// Code segment twoPositionSize = Q * -100; // When Q==0 my PS 
  is 0%, when Q==1 my PS is100%.Thanks for any explanation you can 
  give,Herman.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<A 
  href="">http://docs.yahoo.com/info/terms/ 
  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


  ADVERTISEMENT









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.