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 7,453 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

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

  #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?
ZombieSqueeze
Platforms and Indicators
Quantum physics & Trading dynamics
The Elite Circle
What broker to use for trading palladium futures
Commodities
Cheap historycal L1 data for stocks
Stocks and ETFs
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
  #2 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853


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


© 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