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

[amibroker] First looping attempt has syntax error



PureBytes Links

Trading Reference Links



My first  looping attempt has a syntax error,   I would appreciate it if a kind soul would fix this syntax error for me!
-------------------------------------------------------------------------------------------------------------------
TJ>>plain arithmetic operations (+/-/*) need to be written as loops.,

Steve, graciously coded this>savg = ( y2F2t50g + Flvg + y2F2t25g + Lavg + Lcvg ) / 5; as the loop shown below

for ( i = 0, i < BarCount, i ++ )
{
savg[i] = ( y2F2t50g[i] + Flvg[i] + y2F2t25g[i] + Lavg[i] + Lcvg[i] ) / 5;
--------------------------------------------------------------------------------------------------------------------
So, as a test, I coded this>asvg=(savg+Lavg+Lcvg+svg+Flvg+y2F2t25g)/6;  as the loop per below , and I got a syntax error.

for ( i = 0, i < BarCount, i ++)
{
asvg[i]=(savg[i]+Lavg[i]+Lcvg[i]+svg[i]+Flvg[i]+y2F2t25g[i])/6;



__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___