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

RE: [amibroker] Can you identify this formula?



PureBytes Links

Trading Reference Links




I am getting a different behavior from AFL than 
before:
 
The line below, when used inside a loop works 
fine
 

for (i=LoopStart; i<BarCount; i++);
{
 Smooth = (Price + <FONT color=#ff00ff 
size=1>2*Price[i-<FONT color=#ff00ff 
size=1>1] + 2<FONT 
size=1>*Price[i-2] + 
Price[i-3])/<FONT 
color=#ff00ff size=1>6;
Notice that Smooth and Price have no 
subscripts.
Smooth[i] = (Price[i] + 2<FONT 
size=1>*Price[i-1] + 
2*Price[i-<FONT 
color=#ff00ff size=1>2] + Price[i-<FONT color=#ff00ff 
size=1>3])/6<FONT 
size=1>;
The line above (with subscripts added) 
give subscript out of range error
 
This seems to be different than before 
... Anyone have similar experience?
Ara
<FONT face=Arial 
size=2> 


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.