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

Re: [amibroker] PositionSize Question



PureBytes Links

Trading Reference Links




Graham & Herman,
 
No plugin should be able to do this.
I guess that there is a memory access error somewhere in sc 
plugin and
it writes somewhere in memory allocated by AB.
Best 
regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  <A title=gkavanag@xxxxxxxxxxxxxx 
  href="">Graham 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Thursday, February 13, 2003 2:05 
  AM
  Subject: RE: [amibroker] PositionSize 
  Question
  
  
  <SPAN 
  >The moment I hit Backtest the link to the database 
  disappeared.
  
  <FONT face="Times New Roman" color=teal 
  size=3><SPAN 
  >Cheers,<FONT 
  color=teal size=3><SPAN 
  >Graham
  <SPAN 
  > 
  <SPAN 
  >-----Original 
  Message-----From: Herman van 
  den Bergen [mailto:psytek@xxxxxxxx] <SPAN 
  >Sent: Thursday, 13 February 2003 12:06 
  PMTo: <A 
  href="">amibroker@xxxxxxxxxxxxxxx<SPAN 
  >Subject: RE: [amibroker] PositionSize 
  Question
  <FONT face="Times New Roman" 
  size=2> 
  
  <FONT face=Arial color=blue 
  size=2>This 
  shouldn't happen, as far as I know there is no connection between the two. 
  Perhaps you "unloaded" the MS plug in temporarily?
  
  <FONT face="Times New Roman" 
  size=2> 
  
  <FONT face=Arial color=blue 
  size=2><SPAN 
  >Herman.
  
    <P class=MsoNormal 
    ><FONT 
    face=Tahoma size=2><SPAN 
    >-----Original 
    Message-----From: Graham 
    [mailto:gkavanag@xxxxxxxxxxxxxx]<SPAN 
    >Sent: Wednesday, February 12, 2003 4:29 
    PMTo: 
    amibroker@xxxxxxxxxxxxxxx<SPAN 
    >Subject: RE: [amibroker] PositionSize 
    Question
    <FONT face="Courier New" 
    size=2>I just tried the plugin and it removed 
    the database settings link to my<FONT 
    face="Courier New"><FONT 
    face="Courier New">external MS database. Luckily only temporary as it 
    returned when ABclosed and 
    re-opened.<FONT 
    face="Courier New">Cheers,<FONT 
    face="Courier New">Graham<FONT 
    face="Courier New">-----Original Message-----<FONT 
    face="Courier New">From: Anthony Faragasso [mailto:ajf1111@xxxxxxxx] 
    Sent: Thursday, 13 February 
    2003 7:50 AMTo: 
    amibroker@xxxxxxxxxxxxxxx<FONT 
    face="Courier New">Subject: Re: [amibroker] PositionSize 
    Question<FONT 
    face="Courier New">Graham,<FONT 
    face="Courier New">That is a plugin provided by Stephane Carrasset....it 
    should be in the3rd party 
    area.<FONT 
    face="Courier New">Anthony<FONT 
    face="Courier New">Graham wrote:<FONT 
    face="Courier New">>  I just get an error in the first line. What is 
    scCMO?<FONT 
    face="Courier New">>> 
    Cheers,> 
    Graham<FONT 
    face="Courier New">><FONT 
    face="Courier New">>> 
    -----Original Message-----> 
    From: Herman van den Bergen 
    [mailto:psytek@xxxxxxxx]> 
    Sent: Thursday, 13 February 2003 9:51 AM<FONT 
    face="Courier New">> To: Amibroker@xxxxxxxxxxxx 
    Com> Subject: [amibroker] 
    PositionSize Question<FONT 
    face="Courier New">>> 
    Hello,<FONT 
    face="Courier New">>> If 
    I test the code segments one and two below separately, why do i 
    get<FONT 
    face="Courier New">>> 
    different results?<FONT 
    face="Courier New">>> 
    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<FONT 
    face="Courier New">>> // 
    Code segment one> //Buy = 
    Buy AND Q;       // Trades are executed when 
    Q==1> //Short = Short AND 
    Q;   // Trades are not executed when Q==0<FONT 
    face="Courier New">>> // 
    Code segment two> 
    PositionSize = Q * -100; // When Q==0 my PS is 0%, when Q==1 my PS 
    is> 
    100%.<FONT 
    face="Courier New">>> 
    Thanks for any explanation you can give,<FONT 
    face="Courier New">> Herman.<FONT 
    face="Courier New">><FONT 
    face="Courier New">><FONT 
    face="Courier New">>> 
    Post AmiQuote-related messages ONLY to: 
    amiquote@xxxxxxxxxxxxxxx> 
    (Web page: <A 
    href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
    face="Courier New">>> 
    Check group FAQ at:> <A 
    href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<FONT 
    face="Courier New">>> 
    Your use of Yahoo! Groups is subject to<FONT 
    face="Courier New">> <A 
    href="">http://docs.yahoo.com/info/terms/<FONT 
    face="Courier New">><FONT 
    face="Courier New">><FONT 
    face="Courier New">><FONT 
    face="Courier New">>                    
    Yahoo! Groups Sponsor<FONT 
    face="Courier New">                        
    ADVERTISEMENT<FONT 
    face="Courier New">>> 
    Post AmiQuote-related messages ONLY to: 
    amiquote@xxxxxxxxxxxxxxx> 
    (Web page: <A 
    href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
    face="Courier New">>> 
    Check group FAQ at:> <A 
    href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<FONT 
    face="Courier New">>> 
    Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
    Service.Post 
    AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
    (Web page: <A 
    href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
    face="Courier New">Check group FAQ at:<FONT 
    face="Courier New"><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/ 
    <FONT 
    face="Courier New">Post AmiQuote-related messages ONLY to: 
    amiquote@xxxxxxxxxxxxxxx <SPAN 
    >(Web 
    page: <A 
    href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
    face="Courier New">Check group FAQ at: <A 
    href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
    Your use of Yahoo! Groups is subject to 
    the Yahoo! Terms of 
    Service. 
  <FONT face="Times New Roman" 
  size=2><SPAN 
  ><FONT 
  face="Courier New">Post AmiQuote-related messages ONLY to: 
  amiquote@xxxxxxxxxxxxxxx <SPAN 
  >(Web page: 
  <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
  face="Courier New">Check group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to 
  the Yahoo! Terms of 
  Service. 
  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.