EasyLanguage Treasure Chest

Status
Not open for further replies.
Hi Tums,
Thank you for this latest code, it works great. I was thinking about having it in front of the candle a certain distance and it would move as the candles formed. Either way does the trick. Once again, many thanks.


Tim
 
Tums, I like your solution better than the solution I used (with your help). How can you get the TSI signal line to plot as well as the TSI? I use the CCI as a histogram so no confusion.

Tim




Quote from Tums:

see if this would work...
you can adjust the TSI.Multiplier to make the TSI more visible.


<img src=http://www.elitetrader.com/vb/attachment.php?s=&postid=2285478>


p.s. You need to add the TSI function to your computer.
you can get the code here:
http://www.elitetrader.com/vb/showthread.php?s=&postid=2284287#post2284287



right click on attachment link to download the code:
 
Quote from raven4ns:
Hi Tums, Thank you for this latest code, it works great. I was thinking about having it in front of the candle a certain distance and it would move as the candles formed. Either way does the trick. Once again, many thanks. Tim

I tried it next to the candle, but there's not enough room for multiple tags when the tags are long, so I put them on the bottom.
 
Quote from raven4ns:
Tums, I like your solution better than the solution I used (with your help). How can you get the TSI signal line to plot as well as the TSI? I use the CCI as a histogram so no confusion.
Tim
I don't understand your question.
Both the TSI and the Signal lines are there.
I did not show it in my illustration, but it is in the Format Study.
Just select a color and the line will show up.
 
Hi Tums,
I can't get the TSI function to compile for some reason. It highlights the "T" in TSI about the second last line down and says error etc. Any ideas what might be wrong? I switched the XAverage for AMA and thought that might be it so I switched it back, still the error. Thank you for any help Tums.

Tim


Quote from raven4ns:

Tums, I like your solution better than the solution I used (with your help). How can you get the TSI signal line to plot as well as the TSI? I use the CCI as a histogram so no confusion.

Tim
 
Hi Tums,
Here is a shot of what my CCI/TSI indicator looks like in my Amibroker software. This is what I am trying to duplicate in MC.

Tim
 

Attachments

Quote from Tums:

Renko-Adaptive indicator
(based on ATR)
Written by konkop 07.03.2002.

note: Set the plot style to Bar High and Bar Low.


discussion.

<img src=http://www.elitetrader.com/vb/attachment.php?s=&postid=2254938 width=800>
note: the chart is for illustration only. the subcharts are not part of Renko.




Right click to down load:
120
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Using this indicator I only get 2 coloured lines on the chart - nothing else.
Unfortunately I have no clue how to get a pic into this thread.
Wouldn't be very helpful anyway I suppose since 2 lines are 2 lines.

Thanks.

GG
 
Quote from jficquette:

Here is Blau's True Strength Index. It double smooths momentum and then presents a signal line.

Blau was fascinated by double, triple smoothing changes in momentum and how a system could be built around them.


Basically, if the TSI is above zero and rising (above signal line) then the market is up. If the TSI is above zero but stepping down and below the signal line then you can't tell if the trend has changed or its just a consolation.

Same on the down side. Just reversed.

So in his deal you only trade when the TSI was > 0 and above the signal line or when the TSI < 0 and below the signal line. He says that is the only time when you have a clear sense of what the market is(has) doing(done).

John


First: Create the Function TSI:

Code:
[color=blue]
[LegacyColorValue = true]; 

inputs: 
	Price(NumericSeries), 
	Raw(NumericSimple), 
	Smooth(NumericSimple),
	U(NumericSimple);

vars: 
	NetChg(0);

	NetChg = Price - Price[1];

Value1 = 100 * XAverage(XAverage(XAverage(NetChg,Raw),Smooth),U);
Value2 = XAverage(XAverage(XAverage(AbsValue(NetChg),Raw),Smooth),U);

if Value2 <> 0 then
	TSI = Value1 / Value2
else
	TSI = 0;
[/color]

Then create the TSI indicator.

Code:
[color=blue]
[LegacyColorValue = true]; 
[SameTickOpt = True];
inputs: 
	Price(Close), 
	Raw(26), 
	Smoothed(12),
	Signal(5),
	OB(20),
	OS(-20);
 
Plot1(TSI(Price, Raw, Smoothed,1), "TSI");
Plot2(XAverage(Plot1,signal),"XAvg ");
Plot3(OB,"Overbought");
Plot4(OS,"Oversold");
[/color]



PS. The colors are set for grey charts.

The indicator does not work since

"TSI has not been declared"

Help much appreciated.

GG
 
Status
Not open for further replies.
Back
Top