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 Big Mike with 1 posts (2 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 BeetleBaum with 1 posts (0 thanks)
    1. trending_up 7,299 views
    2. thumb_up 2 thanks given
    3. group 1 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

Font Parameters for Text in TS/EL

  #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?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
What broker to use for trading palladium futures
Commodities
REcommedations for programming help
Sierra Chart
Cheap historycal L1 data for stocks
Stocks and ETFs
 
  #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,469 since Jun 2009
Thanks Given: 33,246
Thanks Received: 101,669



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



Join the free Markets Chat beta: one platform, all the trade rooms!

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 Twitter 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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts