NexusFi: Find Your Edge


Home Menu

 





How to add a Text Label to the Floor Pivots Indicator in Tradestation


Discussion in EasyLanguage Programming

Updated
    1. trending_up 8,117 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 mmarwaha 
Dubai United Arab Emirates
 
Experience: Intermediate
Platform: TradeStation, MultiCharts
Trading: ES, currency futures
Posts: 5 since Mar 2019
Thanks Given: 3
Thanks Received: 1

Hi,
I need some help with adding the Text Labels to the built In Floor Trader Pivots indicator in Tradestation.

Would appreciate if someone can help me with the same. The labels need to be at the beginning of the line.

thanks. Much appreciated


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
I Have a Thing Called Iran -- Trump Stays in DC as Airsp …
Prediction Markets & Event Contracts
One Wallet Made $200K in Hours: AP Probes Polymarket Cea …
Prediction Markets & Event Contracts
Powell in 48 Hours: Word Markets Give 78% on Inflation, …
Prediction Markets & Event Contracts
Kalshi Sets $4.13B All-Time Weekly Record as Polymarket …
Prediction Markets & Event Contracts
Al Arabiya: US-Iran Draft Deal Within Hours Contains Hor …
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
  #2 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
Systematic Algo Trader
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,270 since Feb 2017
Thanks Given: 2,960
Thanks Received: 2,856


mmarwaha View Post
Hi,
I need some help with adding the Text Labels to the built In Floor Trader Pivots indicator in Tradestation.

Would appreciate if someone can help me with the same. The labels need to be at the beginning of the line.

thanks. Much appreciated

This is a little more involved than I have time for, but if you are willing to give it a shot, us the text_new and text_setcolor functions.

Here is an example from one of my indicators:
 
Code
value1 = text_new(date, // the date where the label will go
                               time, //  the time, i.e. the bar where the label will go
                               Low, //   where you want to place the label.... in this case it is at the low of the bar
                               "Hello world!") ;   // this is your label text, whatever that is
Text_setcolor(value1, white) ;
Before you modify the indicator, save it as a new indicator with a prefix of your choosing (e.g. XYZ Floor Trader Pivots). That way you can always reference back to the original code.

I hope this points you in the right direction.


~vmodus

Enjoy everything!
Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
swingbatter
Arlington
 
Posts: 18 since Feb 2020
Thanks Given: 6
Thanks Received: 3


If you add the code below to the bottom of the "Floor Trader Pivots" indicator code, it will give you labels (of the values) at the beginning of the pivot lines. (For intra-day charts)

if d>d[1] then begin
if Plot_5or7 = 7 then begin
value1 = Text_New(Date, Time, R3, numtostr(R3,2));
Text_SetStyle(value1,0,1);
Text_setcolor(value1, red);
end;
value2 = Text_New(Date, Time, R2, numtostr(R2,2));
Text_SetStyle(value2,0,1);
Text_setcolor(value2, blue);
value3 = Text_New(Date, Time, R1, numtostr(R1,2));
Text_SetStyle(value3,0,1);
Text_setcolor(value3, yellow);
value4 = Text_New(Date, Time, PP, numtostr(PP,2));
Text_SetStyle(value4,0,1);
Text_setcolor(value4, cyan);
value5 = Text_New(Date, Time, S1, numtostr(S1,2));
Text_SetStyle(value5,0,1);
Text_setcolor(value5, red);
value6 = Text_New(Date, Time, S2, numtostr(S2,2));
Text_SetStyle(value6,0,1);
Text_setcolor(value6, blue);
if Plot_5or7 = 7 then begin
value7 = Text_New(Date, Time, S3, numtostr(S3,2));
Text_SetStyle(value7,0,1);
Text_setcolor(value7, yellow);
end;
end;


Reply With Quote




Last Updated on August 15, 2021


© 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