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)
How to add a Text Label to the Floor Pivots Indicator in Tradestation
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:
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.
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;