
11-27-2007, 05:49 PM
|
 |
Blu-Ray
has no status.
|
|
|
|
|
|
Re: REQ Help with Trend Indicator
|
Quote: |
|
 |
|
|
hi
Is it possible to have the code in txt format for ts2000i
Thanks a lot |
|
|
|
|
Here you go:
 |
|
 |
 |
|
 |
|
inputs: Price( Close ), Length( 5 ),Upcolor( DarkGreen),DnColor ( DarkRed),NColor(White) ;
variables: Avg( 0 ) ;
Avg = AverageFC( Price, Length ) ;
Condition1 = close[1] > avg[1] and close > avg;
Condition2 = close[1] < avg[1] and close < avg;
plot1(avg,"avg");
if close crosses above avg then setplotcolor(1,NColor);
if condition1 then setplotcolor (1,upcolor);
if close crosses below avg then setplotcolor(1,NColor);
if condition2 then setplotcolor (1,dncolor); |
|
 |
|
 |
|
Hope this helps
Blu-Ray
__________________
Remember - Take the path of least resistance.
|