Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

zardoz

Trend lines on an indicator

Recommended Posts

TradeStation's Easy Language can draw (plot) trend-lines on a price chart automatically. I was wondering if TS can also automatically plot trend-lines on an indicator? For instance Is Easy Language flexible enough to allow one to code a trend-line joining two highs of a stochastic plot? If so does anyone have an example? I have coded indicators in Easy language but before I spend time tying to accomplish this I would like to know if it is possible. Any help would be much appreciated.

 

Z

Share this post


Link to post
Share on other sites
TradeStation's Easy Language can draw (plot) trend-lines on a price chart automatically. I was wondering if TS can also automatically plot trend-lines on an indicator? For instance Is Easy Language flexible enough to allow one to code a trend-line joining two highs of a stochastic plot? If so does anyone have an example? I have coded indicators in Easy language but before I spend time tying to accomplish this I would like to know if it is possible. Any help would be much appreciated.

Z

 

 

 

It can be done with MultiCharts. Not sure with TS.

Share this post


Link to post
Share on other sites

you do it the same way as if you draw on the main chart.

the only different is on the reserved word:

 

TL_New_self

Displays a trendline, with the specified starting and ending points, on the SubChart containing the study; returns a trendline-specific ID number, required to modify the trendline.

 

Usage

TL_New_self (sDate, sTime, sPriceValue, eDate, eTime, ePriceValue)

 

Parameters

sDate - a numerical expression specifying the trendline starting point date; the date is indicated in the YYYMMdd format, where YYY is the number of years since 1900, MM is the month, and dd is the day of the month

 

sTime - a numerical expression specifying the trendline starting point time; the time is indicated in the 24-hour HHmm format, where 1300 = 1:00 PM

 

sPriceValue - a numerical expression specifying the trendline starting point price value (vertical position, corresponding to a value on the price scale of a chart)

 

eDate - a numerical expression specifying the trendline ending point date

 

eTime - a numerical expression specifying the trendline ending point time

 

ePriceValue - a numerical expression specifying the trendline ending point price value

 

Example

Display a trendline, that begins at 9:00 AM at a price value of 1381, and ends at 3:00 PM at a price value of 1337, on January 17th, 2008, on the SubChart containing the study:

 

Value1=TL_New_self(1080117,900,1381,1080117,1500,1337);

Share this post


Link to post
Share on other sites

Thanks Tams, it was this TL_New_self that I was unaware of. Trade Station does not have this "self" option but as I see MultiCharts does.

 

At least now I know in theory it can be done as I also have MultiCharts. Now I have to modify the indicator "Trendlines Automatic" to work on an indicator. Unless you know of one flying around that can already join the tops on an oscillation indicator.

 

Thanks again. :)

 

 

Z

Share this post


Link to post
Share on other sites

drawing the trendline is easy.

 

the sweat is in the time and effort required to determine

the coordinates for the starting and ending points.

 

there is no flying around way to accomplish easy tasks.

 

:-(

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.