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

[amibroker] The CategoryGetSymbols( category, index ) example



PureBytes Links

Trading Reference Links




in this example
result is initialized because the loop begin at 
1
 

myLR = LinearReg( 
C, 13 );
myATR = ATR( 
13 );
result[ 0 ] = myLR[ 
0 ];
 
for( i = <FONT color=#ff00ff 
size=1>1 ; i < BarCount; i++ )
{
if( myLR[ i ] > result[ i - <FONT 
color=#ff00ff size=1>1 ] )
{
temp = myLR[ i ] - 2.5 
* myATR[ i ];
if( temp > result[ i - <FONT color=#ff00ff 
size=1>1 ] ) result[ i ] = temp;<FONT 
color=#800000 size=1>
else result[ i ] = result[ i - <FONT 
color=#ff00ff size=1>1 ];
}
else
result[ i ] = myLR[ i ];
}
 
Plot(result,<FONT color=#ff00ff 
size=1>"",2<FONT 
size=1>,1<FONT 
size=1>);
Plot(C,<FONT color=#ff00ff 
size=1>"",1<FONT 
size=1>,64<FONT 
size=1>);
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  m_nedev 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Friday, February 27, 2004 10:21 
  PM
  Subject: [amibroker] Amibroker 
error
  Does anyone know how to initalise a variable?i.e. get 
  rid of the error "Variable used without having been 
  initialized"thanksSend BUG 
  REPORTS to bugs@xxxxxxxxxxxxxSend 
  SUGGESTIONS to <A 
  href="">suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: <A 
  href="">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 
  __________ 
  NOD32 1.637 (20040228) Information __________This message was checked 
  by NOD32 antivirus system.<A 
  href="">http://www.nod32.com


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








Yahoo! Groups Sponsor


ADVERTISEMENT




Click Here















Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.