PureBytes Links
Trading Reference Links
|
You need to put your formula in the indicator and make sure that given chart is selected.
The interpretation will only show the text of active (focused) chart.
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "Julian" <juliangoodsell@xxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, August 16, 2009 2:13 PM
Subject: [amibroker] Re: ADK printf
> Hi Tomasz,
> this just isn't working for me. Can you please tell me where I'm going wrong?
>
> void Amibroker::printf(const char * output){
> AmiVar args[21];
> for (int i=1; i<21; i++){
> args[i].type = VAR_FLOAT;
> args[i].val = EMPTY_VAL;
> }
> args[0].type = VAR_STRING;
> args[0].string = (char *)SI->Alloc(100);
> strcpy(args[0].string, "Testing printf %0.0f");
> args[1].val = 3.0f;
>
> AmiVar result = SI->CallFunction("printf", 21, args);
> }
>
> I'm getting a return value of 1 in the result AmiVar. I've been through with debugger and all inputs look fine. It executes no
> problems but I get no output in Interpretation window.
>
> It makes no difference if I input a single string with no format params either.
>
> Regards,
> Jules.
>
>
>
> ------------------------------------
>
> **** 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/
>
> Yahoo! Groups Links
>
>
>
------------------------------------
**** 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/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|