07-05-2011, 09:38 AM
|
#43 |
Join Date: Nov 2008 Location: Northeast U.S. Thanks: 373
Thanked 231 Times in 164 Posts
| 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. |
| |