Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Font Parameters for Text in TS/EL
Updated April 7, 2023
Font Parameters for Text in TS/EL
August 4th, 2010, 10:03 PM
Atlanta, Georgia
Experience: Intermediate
Platform: NT
Broker: DDT
Trading: ZN, ZB
Posts: 230 since Mar 2010
Thanks Given: 152
Thanks Received: 256
Sorry for the noob question. I'm just getting started with TS/EL.
I'm adding text to a chart in an indicator in tradestation like so:
value1 = text_new(d,t,close, "Test");
Is it possible to change the font parameters like type of font, font size, bold, italics, etc?
Thanks,
-C
“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
August 4th, 2010, 10:38 PM
Manta, Ecuador
Site Administrator Developer Swing Trader
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,239
Thanks Received: 101,662
cbritton
Sorry for the noob question. I'm just getting started with TS/EL.
I'm adding text to a chart in an indicator in tradestation like so:
value1 = text_new(d,t,close, "Test");
Is it possible to change the font parameters like type of font, font size, bold, italics, etc?
Thanks,
-C
Yes, they are manipulated by other commands.
Hold the id Text_New in a variable:
Code
mytext = Text_New ( date , time , price , text ( " Close was " , C ));
Then manipulate that later..
Code
// change string
Text_SetString ( mytext , text ( "new string" ));
// change location
Text_SetLocation ( mytext , new_date , new_time );
// change font size
Text_SetSize ( mytext , 14 );
// change border
Text_SetBorder ( mytext , true );
// change bg color
Text_SetBGColor ( mytext , red );
// change fg color
Text_SetColor ( mytext , white );
// change style
Text_SetStyle ( mytext , 1 , 2 );
I just pulled from a script. These are for MultiCharts , TradeStation may not be exactly the same. Also, remember to use Text_New_s where possible to allow for second timestamps (more precise).
Mike
August 8th, 2010, 02:07 PM
Atlanta, Georgia
Experience: Intermediate
Platform: NT
Broker: DDT
Trading: ZN, ZB
Posts: 230 since Mar 2010
Thanks Given: 152
Thanks Received: 256
Big Mike
Yes, they are manipulated by other commands.
Hold the id Text_New in a variable:
Code
mytext = Text_New ( date , time , price , text ( " Close was " , C ));
Then manipulate that later..
Code
// change string Text_SetString ( mytext , text ( "new string" )); // change location Text_SetLocation ( mytext , new_date , new_time ); // change font size Text_SetSize ( mytext , 14 ); // change border Text_SetBorder ( mytext , true ); // change bg color Text_SetBGColor ( mytext , red ); // change fg color Text_SetColor ( mytext , white ); // change style Text_SetStyle ( mytext , 1 , 2 );
I just pulled from a script. These are for
MultiCharts , TradeStation may not be exactly the same. Also, remember to use Text_New_s where possible to allow for second timestamps (more precise).
Mike
hmmm...some of these commands are not supported in TS 8.8. Oh well.
Thanks anyways,
-C
“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
April 7th, 2023, 02:57 PM
East Ridge, Tennessee, USA
Experience: Master
Platform: TradeStation
Trading: Futures, Stocks, Options, Forex
Posts: 17 since Nov 2022
Thanks Given: 4
Thanks Received: 4
Hey, did you ever get an answer to how to edit the font in EL? I'm trying to do the same thing.
Matt
Last Updated on April 7, 2023