NexusFi: Find Your Edge


Home Menu

 





TrendLine_ Price Label Coding


Discussion in EasyLanguage Programming

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




 
Search this Thread

TrendLine_ Price Label Coding

  #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?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
How to apply profiles
Traders Hideout
 
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629


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 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,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

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


© 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