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

Re: [amibroker] CONES



PureBytes Links

Trading Reference Links




Hi, did you unterstand what the syntax <FONT 
face=Arial>error message says? 
At some places you have to use the 
subscript operator (ie. myarray[i])
No, sorry, I don't have time to fix bugs, esp. of code 
without any 
explanation what it supposed to do. Shall I guess 
and try the zillion 
possibilities the coder could have meant?
Sorry, more explanation is required if you want it be 
fixed by anyone.
UM
 
 
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  ERKAN BISEVAC 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Saturday, April 26, 2003 5:40 
  AM
  Subject: Re: [amibroker] CONES
  
  UM
  Can you show me how to fix it?
  Thanks
  Erkan<A 
  href="">uenal.mutlu@xxxxxxxxxxx 
  wrote:
  <BLOCKQUOTE 
  >
    
    

    Hi Erkan,
    the syntax error says:
      Condition in IF, WHILE, FOR 
    statements  has to be Numeric or Boolean type.  You can 
    not use array here,  please use [] (array subscript 
    operator)  to access array elements
     
    UM
     
    <BLOCKQUOTE 
    >
      ----- Original Message ----- 
      <DIV 
      >From: 
      ERKAN 
      BISEVAC 
      To: <A 
      title=amibroker@xxxxxxxxxxxxxxx 
      href="">amibroker@xxxxxxxxxxxxxxx 
      
      Sent: Saturday, April 26, 2003 1:51 
      AM
      Subject: [amibroker] CONES
      
      
      <BLOCKQUOTE 
      >
        I am trying to translate one indicator but it's not working.
        Can somebody look at this, please.
        Thanks
        Erkan
         
        VolatilityLength=<FONT 
        color=#ff00ff size=1>30/<FONT 
        color=#ff00ff size=1>252;
        SD=2<FONT color=#000000 
        size=1>;
        VIX=Foreign<FONT 
        color=#000000 size=1>(<FONT color=#ff00ff 
        size=1>"^Vix",<FONT 
        color=#ff00ff size=1>"C");
        PriceRows=75<FONT 
        color=#000000 size=1>;
        BarColumns=75<FONT 
        color=#000000 size=1>;
        
        VolatilitySDev = SD*(<FONT color=#ff00ff 
        size=1>0.01*VIX)*<FONT 
        color=#0000ff size=1>sqrt<FONT color=#000000 
        size=1>(volatilitylength);
        
        MT = Close + (Close * VolatilitySDev);
        MB = Close - (Close * VolatilitySDev);
        RH = (MapTop - MapBottom) / PriceRows;
        <FONT face="Courier New" color=#000000 
        size=1>CL=Close;
         
        for(<FONT face="Courier New" color=#000000 
        size=1>I=<FONT color=#ff00ff 
        size=1>1;<FONT 
        face="Courier New" color=#000000 size=1>i<FONT color=#000000 
        size=1><=<FONT face="Courier New" color=#000000 
        size=1>BARCOLUmns;<FONT 
        face="Courier New" color=#000000 size=1>i<FONT color=#000000 
        size=1>++)
        {
        PriceLevel = M<FONT face="Courier New" color=#000000 
        size=1>B[I]; 
        while (PriceLevel < MT<FONT face="Courier New" 
        color=#000000 size=1>[I])
        {
        if (PriceLevel < C<FONT face="Courier New" 
        color=#000000 size=1>L[I]) 
        Probability = 1<FONT 
        face="Courier New" color=#000000 size=1>;
        <FONT 
        face=Arial size=3> 
        else
         
        {
        Probability = .5;
        }
        <FONT color=#000000 
        size=1> 
        Plot<FONT color=#000000 
        size=1>(PriceLevel*(1<FONT 
        color=#000000 size=1>-Probability),<FONT color=#ff00ff 
        size=1>"UP",<FONT color=#ff00ff 
        size=1>1,<FONT color=#ff00ff 
        size=1>1);
        Plot<FONT color=#000000 
        size=1>(PriceLevel*(1<FONT 
        color=#000000 size=1>+Probability),<FONT color=#ff00ff 
        size=1>"UP",<FONT color=#ff00ff 
        size=1>1,<FONT color=#ff00ff 
        size=1>1);
        PriceLevel = PriceLevel + RH<FONT face="Courier New" 
        color=#000000 size=1>[I];
        }
        }
        <FONT face=Arial 
    size=3> 






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.