Trading Articles
Article Categories
Article Tools
TrendLine_ Price Label Coding
Updated February 3, 2020
trending_up
1,038 views
thumb_up
0 thanks given
group
3 followers
forum
5 posts
attach_file
0 attachments
Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
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 and simple.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
TrendLine_ Price Label Coding
(login for full post details)
#1 (permalink )
Valrico
Posts: 3 since Jan 2020
Thanks: 0 given,
0
received
I just switched over to the Tradestation EasyLanguage from the ToS Thinkscript platform so my experience and research isnt helping. I have a simple built indicator showing the High and Low plotted across from the previous 20bars.
It is perfect for what I am looking for the only issue is I would like it to plot the Price to the right of the line. As of now it is just showing the trendline and I have tried 10 different ways of adding a price label but all I am finding is text options with the Text_ "" coding.
Quoting
Inputs:
BackHigh (20),
BackLow (20),
TL_high_color (darkgreen),
TL_LOW_color(DarkRed),
TL_High_Size(2),
TL_low_Size(2),
TL_High_Style(2),
TL_low_Style(2);
Vars:
TL_High(1),
TL_LOW(2),
HighestHigh(0),
LowestLow(0),
timestorage(0);
HighestHigh= Highest(High,BackHigh);
LowestLow=Lowest(Low,BackLow);
If lastbaronchart or lastbaronchartEX Then
Begin
TL_High= TL_New(Date[BackHigh], Time[Backhigh], HighestHigh,Date,Time,HighestHigh);
TL_SetColor(TL_HIGH,TL_HIGH_COLOR);
TL_SetSize(TL_High,TL_High_Size);
TL_SetStyle(TL_High,TL_High_Style);
TL_Low= TL_New(Date[BackHigh], Time[Backhigh], LowestLow,Date,Time,LowestLow);
TL_SetColor(TL_low,TL_low_COLOR);
TL_SetSize(TL_low,TL_low_Size);
TL_SetStyle(TL_low,TL_low_Style);
End;
There is the code. Any help will be greatly appreciated. I am sure there is an easy line for this.
Can you help answer these questions from other members on futures io?
Best Threads (Most Thanked) in the last 7 days on futures io
(login for full post details)
#3 (permalink )
Vendor
Posts: 2,225 since Apr 2013
Thanks: 406 given,
1,468
received
bidness91,
welcome to futures.io. Using legacy EasyLanguage there is no way around adding a separate text label using the "Text_New" reserved word you mentioned for adding a label to the line.
You can take a look a Object Oriented EasyLanguage that offers horizontal lines that can also display labels.
Regards,
ABCTG
(login for full post details)
#4 (permalink )
Valrico
Posts: 3 since Jan 2020
Thanks: 0 given,
0
received
alright, that seems to be the problem then.
Is there an easy way to switch the formatting from TL to a Plot syntax? it seems the plot way is the easiest way to edit and format it.
(login for full post details)
#5 (permalink )
Vendor
Posts: 2,225 since Apr 2013
Thanks: 406 given,
1,468
received
bidness91,
there is no easier way than to remove/block the trendline syntax and using the plot reserved word instead.
Regards,
ABCTG
bidness91
alright, that seems to be the problem then.
Is there an easy way to switch the formatting from TL to a Plot syntax? it seems the plot way is the easiest way to edit and format it.
(login for full post details)
#6 (permalink )
Valrico
Posts: 3 since Jan 2020
Thanks: 0 given,
0
received
thanks for the help ABC.
looks like i am just going to have to keep searching for an alternate coding that has already been made.
Last Updated on February 3, 2020
Right now
NinjaTrader Indicator Challenge!
Ongoing
Coming soon
Journal Challenge!
February
Coming soon
Battlestations!
March