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

Re: [amibroker] CONES



PureBytes Links

Trading Reference Links


UM
Can you show me how to fix it?
Thanks
Erkanuenal.mutlu@xxxxxxxxxxx wrote:




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
 

----- Original Message ----- 
From: ERKAN BISEVAC 
To: amibroker@xxxxxxxxxxxxxxx 
Sent: Saturday, April 26, 2003 1:51 AM
Subject: [amibroker] CONES



I am trying to translate one indicator but it's not working.
Can somebody look at this, please.
Thanks
Erkan
 
VolatilityLength=30/252;
SD=2;
VIX=Foreign("^Vix","C");
PriceRows=75;
BarColumns=75;

VolatilitySDev = SD*(0.01*VIX)*sqrt(volatilitylength);

MT = Close + (Close * VolatilitySDev);
MB = Close - (Close * VolatilitySDev);
RH = (MapTop - MapBottom) / PriceRows;
CL=Close;
 
for(I=1;i<=BARCOLUmns;i++)
{
PriceLevel = MB[I]; 
while (PriceLevel < MT[I])
{
if (PriceLevel < CL[I]) 
Probability = 1;
 
else
 
{
Probability = .5;
}
 
Plot(PriceLevel*(1-Probability),"UP",1,1);
Plot(PriceLevel*(1+Probability),"UP",1,1);
PriceLevel = PriceLevel + RH[I];
}
}
 Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend 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. 
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.






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.