Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Like Tree1Likes

Reply
Old 09-23-2010, 09:06 AM   #41

BlowFish's Avatar

Join Date: Mar 2007
Location: In Da House
Posts: 3,292
Ignore this user

Thanks: 129
Thanked 1,054 Times in 702 Posts

Re: Trendline (EasyLanguage)

or for larger arrays use a loop, I think that's described in one of the docs tams did.

for n = arraysize-1 downto 1 arr[n+1] = arr[n];
arr[n] = variable;
BlowFish is offline  
Reply With Quote
Old 10-08-2010, 09:09 AM   #42

Join Date: Sep 2010
Posts: 4
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: Trendline (EasyLanguage)

Hi guys - FYI I finally got my indicator working the way I intended it to. After many long nights and tons of mistakes. Thanks for your suggestions.
Tams likes this.
wiztrader is offline  
Reply With Quote
Old 07-05-2011, 09:38 AM   #43

Tradewinds's Avatar

Join Date: Nov 2008
Location: Northeast U.S.
Posts: 891
Ignore this user

Thanks: 373
Thanked 231 Times in 164 Posts
Blog Entries: 6

Re: Trendline (EasyLanguage)

Here is a tradestation help code example:

Code:
Variable: ID(-1);

If Low < Low[1] AND Close > High[1] Then Begin
  ID = TL_New(Date[1], Time[1], Low, Date, Time, Low);
  Value1 = TL_SetExtRight(ID, True);
 End;
The above code adds multiple trendlines to my chart. Every time the conditions are met, a new trendline is added to the chart. Each trendline is extended all the way to the current right hand edge of the chart. The reserved word "TL_SetExtRight" causes the trendline to extend continuously from the starting point to the right.

So, this means that multiple trend lines can be created from one trendline variable. A trendline variable is not confined to only having one trendline.
__________________
Precise, "dialed-in", targeted combination setups, like opening a combination lock; is the experience you should be having while trading. Dial left, right, left, . . . click - the lock opens.
Tradewinds is offline  
Reply With Quote
Old 07-09-2011, 12:36 AM   #44

Tradewinds's Avatar

Join Date: Nov 2008
Location: Northeast U.S.
Posts: 891
Ignore this user

Thanks: 373
Thanked 231 Times in 164 Posts
Blog Entries: 6

Re: Trendline (EasyLanguage)

I've posted my completed EasyLanguage Auto Support and Resistance line indicator in the INDICATOR section. It uses trendlines instead of plots to draw horizontal lines on the chart.

http://www.traderslaboratory.com/for...uto-plots.html
__________________
Precise, "dialed-in", targeted combination setups, like opening a combination lock; is the experience you should be having while trading. Dial left, right, left, . . . click - the lock opens.
Tradewinds is offline  
Reply With Quote
The Following User Says Thank You to Tradewinds For This Useful Post:
Tams (07-09-2011)

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
Easylanguage Auto Trendline Study raven4ns Technical Analysis 3 03-30-2009 04:50 PM
GBP/USD Trendline Breakout DannyBly Forex Trading Laboratory 3 07-06-2008 09:13 AM
Trendline methods waveslider Technical Analysis 0 06-26-2007 09:13 PM
Russell 2000 (IWM) Trendline Test MrPaul Technical Analysis 0 03-25-2007 12:53 PM
The Downsloping Trendline On The YM Bfbusa Technical Analysis 0 02-06-2007 11:54 PM

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