Color Text in different color  [SOLVED]

Questions about MultiCharts and user contributed studies.
shivax
Posts: 90
Joined: 02 Sep 2013
Has thanked: 37 times

Color Text in different color

Postby shivax » 28 May 2018

Hi, it is possible to color The number (5875) in different color?

see pics ..

thank
Attachments
Immagine.png
Immagine.png (812 Bytes) Viewed 446 times

User avatar
Smoky
Posts: 407
Joined: 03 Dec 2010
Location: Thailand
Has thanked: 66 times
Been thanked: 104 times

Re: Color Text in different color

Postby Smoky » 28 May 2018

Yes but you have to draw two text

1) with Text_SetColor cyan "1st 30/10/2017"
2) with Text_SetColor red "5875" with new coordinate.

maybe another way but i found only this ...

shivax
Posts: 90
Joined: 02 Sep 2013
Has thanked: 37 times

Re: Color Text in different color

Postby shivax » 28 May 2018

hi Smoky…
the problem is to write the strings consecutively

i must to use text_new_self
:
Text_New_self (BarDate, BarTime, PriceValue,"Text")

I can only use a string

User avatar
TJ
Posts: 7192
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 990 times
Been thanked: 2049 times

Re: Color Text in different color  [SOLVED]

Postby TJ » 28 May 2018

You can have 2 colors if the text is centered at the BarTime.
Half of the text in front of the BarTime,
and half of the text behind the BarTime.


Look up the keyword

Text_SetStyle


Return to “MultiCharts”