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

Re: [amibroker] How to append to a TITLE ?



PureBytes Links

Trading Reference Links

Hi Graham - Titles seem to be a little awkward now with the use of 
drag-and-drop, often overwriting each other, runnning off the chart, etc 
when other codes are dropped onto a chart.  With new beta, titles are 
wrapped but I don't really like the way they are usually split in half when 
wrapped, so  I decided I would try to write a sort of template that I could 
add to all my plots, which would allow me to manage the titles of  all plots 
in the same chart from the Parameters dialog.  I am trying to include things 
like the ability to switch between user-defined title and default name from 
the Plot statement, the ability to plot any/all titles on a new line if 
desired, the ability to automatically check for pre-existing Title statement 
and concatenate them if present rather than overwrite the old title, etc. 
Complete control !!  8 - )    I got most of it done and it was going very 
well but now I seem to have hit a stumbling block in automatically detecting 
whether Title is already defined or not. I suppose the easy way would be to 
edit the plotted code ( in drag/drop folder ), but in general I try to do 
all my work on my permament code ( in Custom folder ).  I will try a couple 
of ideas provided by you and TJ and let you know...   Thanks for your 
interest !

Steve

----- Original Message ----- 
From: "Graham" <kavemanperth@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, January 04, 2006 5:58 PM
Subject: Re: [amibroker] How to append to a TITLE ?


> Title needsw a string to start with, like using name()
> If you do not want the symbol first then use this
> Title = ""+VarGet("BuyT"+bar);
> or this works as well
> Title = NumToStr(VarGet("BuyT"+bar),1);
>
> Did you have the VarGet( "Title" + ident )  correct?
>
> --
> Cheers
> Graham
> AB-Write >< Professional AFL Writing Service
> Yes, I write AFL code to your requirements
> http://e-wire.net.au/~eb_kavan/ab_write.htm
>
>
> On 1/5/06, Steve Dugas <sjdugas@xxxxxxxxxxx> wrote:
>> Hello TJ,
>>
>> Using VarGet when Title is not previously defined, I get a "type 
>> mismatch"
>> error when the new Title includes a string. For example:
>>
>> Title = VarGet( "Title" ) + "a string";  // type mismatch error if Title 
>> not
>> defined.
>>
>> I tried to fix it by wrapping VarGet inside NumToStr
>>
>> Title = NumToStr( VarGet( "Title" ) ) + "a string";
>>
>> but now "{EMPTY}" is included in the title. I tried several different
>> workarounds to get rid of it, but can't seem to find a way that works. 
>> Would
>> you happen to know any way around this?
>>
>> Thanks very much!
>>
>> Steve
>>
>> ----- Original Message -----
>> From: "Tomasz Janeczko" <amibroker@xxxxxx>
>> To: <amibroker@xxxxxxxxxxxxxxx>
>> Sent: Monday, November 28, 2005 1:58 PM
>> Subject: Re: [amibroker] How to append to a TITLE ?
>>
>>
>> > Hello,
>> >
>> > You can use VarGet - it won't bomb out if variable is undefined.
>> >
>> > http://www.amibroker.com/f?varget
>> >
>> > Best regards,
>> > Tomasz Janeczko
>> > amibroker.com
>> > ----- Original Message -----
>> > From: "ckinsey2003" <ckinsey2003@xxxxxxxxx>
>> > To: <amibroker@xxxxxxxxxxxxxxx>
>> > Sent: Monday, November 28, 2005 7:25 PM
>> > Subject: [amibroker] How to append to a TITLE ?
>> >
>> >
>> >> If a TITLE exist TITLE = TITLE + "\nAppended text" works fine.
>> >>
>> >> But if no "TITLE" exist it bombs off since TITLE undefined.
>> >>
>> >> Checking for a "TITLE" ie  IIF(TITLE = NULL causes the same problem.
>> >>
>> >> TIA,   Jack Kinsey
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> 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 other support material please check also:
>> >> http://www.amibroker.com/support.html
>> >>
>> >>
>> >> Yahoo! Groups Links
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>> >
>> > 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 other support material please check also:
>> > http://www.amibroker.com/support.html
>> >
>> >
>> > Yahoo! Groups Links
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>>
>>
>>
>>
>>
>> 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 other support material please check also:
>> http://www.amibroker.com/support.html
>>
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>>
>
>
>
> 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 other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
> 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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 other support material please check also:
http://www.amibroker.com/support.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:
    http://docs.yahoo.com/info/terms/