TrendLine_ Price Label Coding - futures io
futures io futures trading



TrendLine_ Price Label Coding


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,038 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. 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)

 
Search this Thread
 

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.

Reply With Quote

Can you help answer these questions
from other members on futures io?
DMIC 2059 program
Traders Hideout
Does Anyone Have Experience With Tradestation International??
TradeStation
Platform that supports grouped, linked, compound, or trigger-based orders?
Platforms and Indicators
the link between CFDs brokers and bank spot liquidity?
Currencies
Multicharts Custom instrument
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on futures io
The Small Exchange (www.smallexchange.com)
106 thanks
Big Mike in Ecuador
83 thanks
How did you learn to trade?
58 thanks
Whos afraid of the big bad Glitch
51 thanks
Spoo-nalysis ES e-mini futures S&P 500
38 thanks
 
(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

Follow me on Twitter Visit my Facebook Reply With Quote
 
(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.

Reply With Quote
 
(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 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 Twitter Visit my Facebook Reply With Quote
 
(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.

Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > TrendLine_ Price Label Coding


Last Updated on February 3, 2020


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge!

February
 

Battlestations!

March
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts