Welcome to the Traders Laboratory Forums.
Technical Analysis The technical discussion forum for traders.

Reply
Old 05-16-2007, 12:09 PM   #1

Join Date: May 2007
Location: Richmond Hill
Posts: 13
Ignore this user

Thanks: 0
Thanked 2 Times in 1 Post

Trend lines on an indicator

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
zardoz is offline  
Reply With Quote
Old 05-16-2007, 12:59 PM   #2
cooter

Status: Guest
Posts: n/a
Ignore this user


Re: Trend lines on an indicator

Dunno. If you're a TS user, try the comprehensive user-oriented TS forums first:

https://www.tradestation.com/Discussions/Main.aspx

Good luck!
 
Reply With Quote
Old 04-04-2009, 11:49 PM   #3

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,477 Times in 912 Posts

Re: Trend lines on an indicator

Quote:
Originally Posted by zardoz »
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.
Tams is offline  
Reply With Quote
Old 04-05-2009, 02:35 PM   #4

Join Date: May 2007
Location: Richmond Hill
Posts: 13
Ignore this user

Thanks: 0
Thanked 2 Times in 1 Post

Re: Trend lines on an indicator

Thanks Tams,

Do you have an example of a MultiChart indicator that has that feature? Would love to see the code.

Thanks


Zardoz
zardoz is offline  
Reply With Quote
Old 04-05-2009, 07:53 PM   #5

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,477 Times in 912 Posts

Re: Trend lines on an indicator

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(108011 7,900,1381,1080117,1500,1 337);
Tams is offline  
Reply With Quote
Old 04-21-2009, 12:20 PM   #6

Join Date: May 2007
Location: Richmond Hill
Posts: 13
Ignore this user

Thanks: 0
Thanked 2 Times in 1 Post

Re: Trend lines on an indicator

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
zardoz is offline  
Reply With Quote
Old 04-21-2009, 12:37 PM   #7

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,477 Times in 912 Posts

Re: Trend lines on an indicator

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.

:-(
Tams is offline  
Reply With Quote

Reply

Tags
trendline

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Heikin Ashi Trend Indicator Soultrader Trading Indicators 37 07-26-2009 06:06 PM
Volume Gradient + Heikin Ashii Trend Indicator GCB Trading Indicators 27 04-07-2007 08:29 AM
%TREND Calculations Soultrader Technical Analysis 14 03-24-2007 01:03 PM
Trend Day Confirmation ckait Technical Analysis 37 03-22-2007 01:04 PM
Trend Trading vs Counter Trend Trading Soultrader Technical Analysis 9 10-29-2006 11:32 AM

All times are GMT -4. The time now is 06:44 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.