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

RE: [amibroker] OT - daylight saving time changes?



PureBytes Links

Trading Reference Links




either you can use

for (i=<FONT color=#ff00ff 
size=1>0; i<BarCount; i--)
 
or an example below
 <FONT 
size=1>
lookback=10<FONT 
size=1>;
function gg(lookback)
{
for (i=<FONT color=#ff00ff 
size=1>0; i<BarCount; i++)
{
if(i<Lookback)
g[i]=Null;
else
{
for<FONT 
size=1>(j=0;j<=Lookback 
&& j<BarCount;j++)
{
g[i]=(H<FONT 
size=1>[i-j]);
}
}
}
return g;
}
Plot(gg(10<FONT 
size=1>),""<FONT 
size=1>,colorBlue,1<FONT 
size=1>);
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  rockgeo 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Thursday, March 25, 2004 10:19 
  PM
  Subject: [amibroker] Loop without an 
  array
  I want to be able to use loop processing( 
  for,while) but be able toreference ref(high,-1), ref(high,-x). Is there 
  any way I can do this? I think loop processing only works with array 
  values, and I do not want to process from the start of an array, I want to 
  start with the current bar and work back? Any ideas?Thanks, 
  RockgeoSend BUG REPORTS to bugs@xxxxxxxxxxxxxSend 
  SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------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 
  __________ 
  NOD32 1.693 (20040325) 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 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.