NexusFi: Find Your Edge


Home Menu

 





Font Parameters for Text in TS/EL


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one cbritton with 2 posts (0 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 BeetleBaum with 1 posts (0 thanks)
    4. looks_4 Big Mike with 1 posts (2 thanks)
    1. trending_up 8,010 views
    2. thumb_up 2 thanks given
    3. group 1 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
cbritton's Avatar
 cbritton 
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
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Bookmap Global Plus Lifetime + Lifetime Addons For Sale
Platforms and Indicators
April FOMC Minutes: Most Divided Fed Since 1992 -- Many …
Traders Hideout
Trump Lands in Beijing on CPI Day: Iran Peace Expires To …
Prediction Markets & Event Contracts
Warsh Opens Today, Hormuz June 19 -- WTI Below $80, Fran …
Prediction Markets & Event Contracts
Six Days to Kickoff: World Cup Prediction Markets Hit $1 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
196 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
BERN ALGOS algo trading journal
8 thanks
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
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,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,583



cbritton View Post
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(datetimepricetext(" Close was "C)); 

Then manipulate that later..

 
Code
                            
// change string

Text_SetString(mytexttext("new string"));

// change location
Text_SetLocation(mytextnew_datenew_time);

// change font size
Text_SetSize(mytext14);

// change border
Text_SetBorder(mytexttrue);

// change bg color
Text_SetBGColor(mytextred);

// change fg color
Text_SetColor(mytextwhite);

// change style
Text_SetStyle(mytext12); 
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




We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 
cbritton's Avatar
 cbritton 
Atlanta, Georgia
 
Experience: Intermediate
Platform: NT
Broker: DDT
Trading: ZN, ZB
Posts: 230 since Mar 2010
Thanks Given: 152
Thanks Received: 256


Big Mike View Post
Yes, they are manipulated by other commands.

Hold the id Text_New in a variable:

 
Code
                            
mytext Text_New(datetimepricetext(" Close was "C)); 

Then manipulate that later..

 
Code
                            
// change string
Text_SetString(mytexttext("new string"));

// change location
Text_SetLocation(mytextnew_datenew_time);

// change font size
Text_SetSize(mytext14);

// change border
Text_SetBorder(mytexttrue);

// change bg color
Text_SetBGColor(mytextred);

// change fg color
Text_SetColor(mytextwhite);

// change style
Text_SetStyle(mytext12); 
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
Started this thread Reply With Quote
  #5 (permalink)
 BeetleBaum 
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


Reply With Quote




Last Updated on April 7, 2023


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts