NexusFi: Find Your Edge


Home Menu

 





TrendLine_ Price Label Coding


Discussion in EasyLanguage Programming

Updated
    1. trending_up 2,637 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
bidness91
Valrico
 
Posts: 3 since Jan 2020
Thanks Given: 0
Thanks Received: 0

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.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Warsh Rate Hike at 40%, Iran June 15 Expires Tonight at …
Prediction Markets & Event Contracts
Second Night of US Strikes Crushes Iran June 15 to 3.6% …
Prediction Markets & Event Contracts
Fabrication or Framework? Irans Denied MOU Explains the …
Prediction Markets & Event Contracts
Bookmap Global Plus Lifetime + Lifetime Addons For Sale
Platforms and Indicators
June 15 Peace Odds Surge From 3.6% to 12.25% After Trump …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
13 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643


bidness91,

welcome to NexusFi. 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


Follow me on X Reply With Quote
  #4 (permalink)
bidness91
Valrico
 
Posts: 3 since Jan 2020
Thanks Given: 0
Thanks Received: 0

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.


Reply With Quote
  #5 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

bidness91,

there is no easier way than to remove/block the trendline syntax and using the plot reserved word instead.

Regards,

ABCTG


bidness91 View Post
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.


Follow me on X Reply With Quote
  #6 (permalink)
bidness91
Valrico
 
Posts: 3 since Jan 2020
Thanks Given: 0
Thanks Received: 0

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.


Reply With Quote




Last Updated on February 3, 2020


© 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