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

[amibroker] interpretation window, no output



PureBytes Links

Trading Reference Links

hi,
 
this little piece of code displays output to the Interpretation window:
 
for(i = 1; i < 1000; i *= 2 )
{
  
if( i > 50 ) break
;
  
printf("%f\n"
, i );
}

SetChartOptions(0, chartShowDates
);
GraphXSpace = 5
;
Plot(C,"C",1,64)
 
output looks like:
 
1.000000
2.000000
4.000000
8.000000
16.000000
32.000000
 
However, the code below has the same output generator put into a procedure but does not display the output when this procedure is triggered:
 
procedure ts_proc() {

for(i = 1; i < 1000; i *= 2
)
{
  
if( i > 50 ) break
;
  
printf("%f\n"
, i );
}

}

exec =
ParamTrigger("exec", "Display Output"
);
if
(exec) {

   ts_proc();

}

SetChartOptions(0, chartShowDates
);
GraphXSpace = 5
;
Plot(C,"C",1,64)
 
 
I can see that the procedure is definitely executed only there is no output generated. Is this normal?
 
thanks, Ed
__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

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

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

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

__,_._,___