logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages12>
Options
Go to last post Go to first unread
totus  
#1 Posted : Friday, June 10, 2005 6:55:05 PM(UTC)
totus

Rank: Newbie

Groups: Registered, Registered Users
Joined: 6/10/2005(UTC)
Posts: 9

In the June 05 Stocks and Commodities magazine p.25 "Less is More", the writer talks about an oscillator called (true strength index),creater Willaim Blau. How can i get this formula and how could i add it to the [censored]nal. I am a beginner and am just learning this. oz_pdt_03p
StorkBite  
#2 Posted : Friday, June 10, 2005 9:29:15 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
totus  
#3 Posted : Sunday, June 12, 2005 12:45:10 PM(UTC)
totus

Rank: Newbie

Groups: Registered, Registered Users
Joined: 6/10/2005(UTC)
Posts: 9

From what I have read this index is very good, better than most of the rest. Has anyone used it, and if so what has been your experience with it?
wabbit  
#4 Posted : Sunday, June 12, 2005 1:45:56 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
What did you read? Where did you read it? Can you post whatever information you have on this indicator. From what I can see, without looking at it on a chart, the formula: 100*( Mov(Mov(ROC(C,1,$),25,E),13,E) / Mov(Mov(Abs(ROC(C,1,$)),25,E),13,E) ) is a twice filtered volatility indicator. Take the indicator apart and start by looking at the guts of the problem: ROC(C,1,$) / Abs(ROC(C,1,$)+0.0001) {to prevent divide by zero errors} Plot this on a chart and see what indications it gives, if any. I doubt that too much will be visible 'cause it will just whipsaw all over the place. Try changing the periods: prd:=Input("Periods",1,100,1); ROC(C,prd,$) / Abs(ROC(C,prd,$)+0.0001) and see how changing the 'length' of the function changes the signal. I guess this will just whipsaw around a lot too, so now apply a moving average to the signal: prd1:=Input("ROC Periods",1,100,1); prd2:=Input("MA Periods",1,100,25); Mov(ROC(C,prd1,$) / Abs(ROC(C,prd1,$)+0.0001),prd2,e) I think this will smooth things out a little, but there will be little jagged edges along a smoother path than previous. To smooth these out, filter these again: prd1:=Input("ROC Periods",1,100,1); prd2:=Input("MA Periods",1,100,25); prd3:=Input("Smoothing Periods",1,100,13); Mov(Mov(ROC(C,prd1,$) / Abs(ROC(C,prd1,$)+0.0001),prd2,e),prd3,e) Now you should a smooth indicator, bounded between -100 and 100. BUT WHAT DOES IT SHOW YOU? We have just re-created the indicator, in much the same way as the original creator might have done it. What does it show? As far as I can tell, nothing! Smoothing data with multiple moving averages is fraut with all sorts of problems. These double MAs have been added to make the graph nice! "Easier to interpret" some call it. Crap. It distorts the truth in my book. I dont think much of this indicator, or the plethora of indicators like it. They dont have any scientific or mathematical or conceptual basis. Stick with concepts like MACD and StdDevs, at least they have their foundations in science and come with a users manual! Hope this helps. wabbit :D
wabbit  
#5 Posted : Sunday, June 12, 2005 1:59:08 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
... and thinking a little more on the subject and looking again at the core of the code: ROC(C,1,$) / Abs(ROC(C,1,$)) in pseudo code says: If the price went up then return a value of 1 If the price went down then return a value of -1 If the price didnt change then return a value of 0 So the core can rewritten along the lines of: x:=If(ROC(C,1,$)>0,1,If(ROC(C,1,$)<0,-1,0)) Doesnt look too mathematical now does it? wabbit :D
totus  
#6 Posted : Sunday, June 12, 2005 3:31:49 PM(UTC)
totus

Rank: Newbie

Groups: Registered, Registered Users
Joined: 6/10/2005(UTC)
Posts: 9

Read it in the June 05 Stocks and Commodities magazine p.25 "Less is More", the writer talks about an oscillator called (true strength index),creater Willaim Blau. It eliminated many false exits that the other ocillators had and increased profitablility. The writer used it agains't the stochastic.
wabbit  
#7 Posted : Sunday, June 12, 2005 11:28:54 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
I don't subscribe to S&C magazine. As a matter of fact the only subscription I have is to Roy Larsen's excellent MS Tips and Tricks. I used to get all sorts of newsletters and mags, but they all say the same thing. Get a copy of the most popular shares magazine in your area from six months ago and have a look at their "expert" opinions. How many predictions have come true. Now look back one year, 18 months and two years. See any patterns forming? Is there a link to an online S&C variant? Maybe the author of the article also posts on their own site? Perhaps you might like to write a precis of the article (caution: copyright sensitivities) and post it here. As I said, the author may have been able to show where it can be used in a profitable against a particular (probably) small universe of stocks, in a particular market condition that doesnt exist now. I could show you how it is not profitable against a larger universe of stocks in today's market. The author said his indicator was more profitable when compared to stochs, but then again stochs only work well in particular markets under some very specific conditions. So what was the author comparing it to? I am sure Mr Bollinger would try to show how his system is more profitable again. Mr Hull would do the same again. There are loads of people still left cueing up here to take your money. Who do you believe? Be very careful reading. There are a lot of people out there who make their money, not from trading, but from writing articles and creating "systems" they later sell. You wont make any money, but they certainly do. Yours! Some of them do get very rich from doing this. Anyway, please post more information, and it will be discussed further. Until then, why not use the System Tester to run some trials of your own and see how the reults compare. Thats what MS is for! wabbit :D
totus  
#8 Posted : Monday, June 13, 2005 2:20:47 PM(UTC)
totus

Rank: Newbie

Groups: Registered, Registered Users
Joined: 6/10/2005(UTC)
Posts: 9

The gentleman who wrote this indicator is one of the foremost TA experts out there. Here are a few links if anyone wants a peak. http://www.elitetrading.de/site/z0471027294.html http://www.activetraderm...m/special/hartle0102.htm I have been using the testing system and it is very good but would like to add some new indicators and test them out to see how they would do.
rolfwidmer  
#9 Posted : Monday, June 13, 2005 2:34:55 PM(UTC)
rolfwidmer

Rank: Newbie

Groups: Registered, Registered Users
Joined: 5/14/2005(UTC)
Posts: 5
Location: Switzerland

Hi I agree to wabbit. Just testing it with a statistical approach shows you whether a specific indicator works in general or not. A lot of esoteric stuff is looking fine on the paper (i.e. on the one chart selected for this indicator) but on a big universe you often could roll a dice. Rolf
totus  
#10 Posted : Monday, June 13, 2005 3:11:44 PM(UTC)
totus

Rank: Newbie

Groups: Registered, Registered Users
Joined: 6/10/2005(UTC)
Posts: 9

I have the indicator formula but would like to add it to the system tester but i do not know how to write it in the editor program to tell it when to sell and buy. I called Metastock, and they can help me once i know what to tell it to do. If anyone out there has done this already with this particular indicator, if you could help me. :lol: Certainly there are many things that look good on paper, but I am sure that it may be used as with anything else, along with a couple of other indicators to help out.
wabbit  
#11 Posted : Monday, June 13, 2005 3:13:49 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Have a play with this.... as an indicator (System Tester code to follow, soon) Change the "m" value to set the band widths to find the overbought and oversold levels: prd1:=Input("ROC Periods",1,100,1); prd2:=Input("MA Periods",1,100,25); prd3:=Input("Smoothing Periods",1,100,13); prd4:=Input("Trigger Periods",1,100,7); {plot:=Input("1-Use Lastvalue(), 2-Dynamic",1,2,2);} plot:=2; {use any other indicator in here} ind:=100*Mov(Mov(ROC(C,prd1,$)/Abs(ROC(C,prd1,$)+0.00001),prd2,E),prd3,E); fmDate:=Input("Start ddmmyy (0=first trade)",0,311299,0); fmDay:=If(fmDate=0,ValueWhen(1,Cum(1)=1,DayOfMonth()),Int(fmDate/10000)); fmMonth:=If(fmDate=0,ValueWhen(1,Cum(1)=1,Month()),Int((fmDate-fmDay*10000)/100)); fmYear:=If(fmDate=0,ValueWhen(1,Cum(1)=1,Year()),Int(fmDate-Int(fmDate/100)*100)); fmYear:=If(fmYear<100,If(fmYear<40,fmYear+2000,fmYear+1900),fmYear); toDate:=Input("End ddmmyy (0=last trade)",0,311299,0); toDay:=If(toDate=0,LastValue(DayOfMonth()),Int(toDate/10000)); toMonth:=If(toDate=0,LastValue(Month()),Int((toDate-toDay*10000)/100)); toYear:=If(toDate=0,LastValue(Year()),Int(toDate-Int(toDate/100)*100)); toYear:=If(toYear<100,If(toYear<40,toYear+2000,toYear+1900),toYear); betweenDates:=((DayOfMonth()>=fmDay AND Month()=fmMonth AND Year()=fmYear) OR (Month()>fmMonth AND Year()=fmYear) OR Year()>fmYear) AND ((DayOfMonth()<=toDay AND Month()=toMonth AND Year()=toYear) OR (Month()<toMonth AND Year()=toYear) OR Year()<toYear); MV:=Cum(If(betweenDates,ind,0))/Cum(If(betweenDates,1,0.00001)); MV:=If(plot=1,LastValue(MV),MV); SD:=Sqrt(Cum(Power(If(betweenDates,ind-MV,0),2))/Cum(If(betweenDates,1,0.00001))); SD:=If(plot=1,LastValue(SD),SD); {shift:=LastValue(BarsSince(betweenDates));} m:=1; MV:=Ref(Ref(ValueWhen(1,betweenDates,MV),-LastValue(BarsSince(betweenDates))),+LastValue(BarsSince(betweenDates))); LL:=Ref(Ref(ValueWhen(1,betweenDates,MV-m*SD),-LastValue(BarsSince(betweenDates))),+LastValue(BarsSince(betweenDates))); UL:=Ref(Ref(ValueWhen(1,betweenDates,MV+m*SD),-LastValue(BarsSince(betweenDates))),+LastValue(BarsSince(betweenDates))); ind; {red solid} mv; {blue solid} Mov(ind,prd4,E); {green solid} UL; {blue solid} LL; {blue solid} wabbit :D
wabbit  
#12 Posted : Monday, June 13, 2005 3:15:41 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
totus wrote:
I have the indicator formula but would like to add it to the system tester but i do not know how to write it in the editor program to tell it when to sell and buy. I called Metastock, and they can help me once i know what to tell it to do. If anyone out there has done this already with this particular indicator, if you could help me.
How do you want to set up your triggers? Indicator entering oversold region from above? Indicator leaving oversold region? Indicator above trigger MA? Indicator above trigger MA, one or both in oversold region on a Tuesday and a full moon? Your criteria here has to be EXCEPTIONALLY specific else the system tester will return erroneous results. Garbage in = garbage out. wabbit :
totus  
#13 Posted : Monday, June 13, 2005 3:29:49 PM(UTC)
totus

Rank: Newbie

Groups: Registered, Registered Users
Joined: 6/10/2005(UTC)
Posts: 9

Thanks so much but this is over my head :shock: Is what you wrote the same as the initial formula: 100 * ( Mov( Mov( ROC(C,1,$),25,E),13,E) / Mov( Mov( Abs(ROC(C,1,$)),25,E),13,E)) I added this to the building indicators option on metastock. they helped me with that. What you wrote what does that do and where does it go? Thanks
wabbit  
#14 Posted : Monday, June 13, 2005 3:38:39 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Create a new indicator, and copy the code into that new indicator, much like you did when you created the indicator with the mov(....... etc etc etc Click and drag the new indicator onto a chart, just like you did with your mov(....) indicator. Now the differences will become apparent. After you release the mouse to drop the indicator into the chart, the parameters window wll appear. This is where you can change the length of the moving averages and the trigger line. You can also bound the computations between two dates, or just leave them set at zero to compute across the entire chart. After you press OK the indicator will appear. Initially all the lines will be the same colour. Click on one of the lines and colour it appropriately as I have suggested in the code, or use your own scheme. Now to colour the second line, you have to click into open space in the window first, before now clicking on the second line to colour it. (Well at least I do!?) Colour the lines as you see fit. What you should see should resemble something along the lines of: The indicator will be a solid red line. The trigger line is a solid green line. The mean value line is a solid blue line (because the indicator doesnt necessarily oscillate around zero like the notes you posted mention!) The two other solid blue lines are one standard error either side of the mean value to indicate the overbought andoversold regions (play with the m value in the code to change this widtyh) wabbit :D P.S. The m value and the plot values are hard coded because I ran out of variables!
wabbit  
#15 Posted : Monday, June 13, 2005 3:42:38 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
My indicator looks something like: UserPostedImage wabbit :D
totus  
#16 Posted : Monday, June 13, 2005 4:10:18 PM(UTC)
totus

Rank: Newbie

Groups: Registered, Registered Users
Joined: 6/10/2005(UTC)
Posts: 9

I will have to try yours as well. Thanks! I will have to get the book to find the correct wording. It gets difficult to do this when one is just learning. TA.
joetrade69  
#17 Posted : Tuesday, June 14, 2005 4:14:23 PM(UTC)
joetrade69

Rank:: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 121

r:=Input("first TSI time period",1,200,25); s1:=Input("second TSI time period",1,200,13); u:=Input("third TSI time period",1,200,7); tsi:=100*(Mov(Mov(CLOSE-Ref(CLOSE,-1),r,E),s1,E))/(Mov(Mov(Abs(CLOSE-Ref(CLOSE,-1)),r,E),s1,E)); tsi; Mov(tsi,u,E)
totus  
#18 Posted : Tuesday, June 14, 2005 5:56:51 PM(UTC)
totus

Rank: Newbie

Groups: Registered, Registered Users
Joined: 6/10/2005(UTC)
Posts: 9

Thanks Joe trader69! NOw what you have just supplied me with is the formula which i have; the rest is that what you programmed to use in the system tester? I went to the library and got the book with the orginal material from William Blau, in which the formula he has is: TSI(close,r,s) = 100*EMA(EMA(mtm,r),s) EMA(EMA(lmtml,r)s) The numerator has a line seperating the denominator. That represents a line, then he incorporates for trading purposes. The Ergodic Oscillator which he states consists of two parts: the Ergodic and its Signal Line give by: (which will be the entry and exits points). Ergodic(Close,r)=TSI(Close,r,5) SignalLine(Close,r)=EMA(TSI(Close,r,5),5) The formula for the Ergodic= Erodic( r) SignalLine( r) } inputs: r(32), ZeroLine(0); Value1=TSI(Close,r,5,1); Value2=XAverage(TSI(Close, r,5, 1), 5); plot1(Value1, "Ergodic"); plot2(Value2, "Soglin"); Plot3(ZeroLine, "Zero"); He did say that these are in tradestation lingo, but i am going to e-mail this to the help center so they can put it into metastock lingo so i can use it. Let me know if this makes sense to you or anyone out there.
kapetanj  
#19 Posted : Saturday, August 6, 2005 3:22:26 AM(UTC)
kapetanj

Rank: Newbie

Groups: Registered, Registered Users
Joined: 8/6/2005(UTC)
Posts: 2

Totus: Did you ever locate anything on the MS code for TSI? I also found the article extremely interesting, but have been striking out on locating the formula. I will pick up Blau's book in the near future before I use the oscillator. John Kapetan kapetanj4696@comcast.net
Jose  
#20 Posted : Saturday, August 6, 2005 9:45:31 AM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
Also, check out this version of the TSI: MetaStock -> Tools -> Indicator Builder -> New -> Copy and paste formula below. [code:1:23d70a4ccd] =================== True Strength Index =================== ---8<--------------------------- { http://www.metastocktools.com } pdsRoc:=Input("ROC periods",1,252,3); pdsEma:=Input("EMA periods",1,252,5); smooth:=Input("smoothing EMA periods",1,252,8); display:=Input("plot TSI=1, +/- slope signals=2",1,2,1); TSI:=100* Mov(Mov(ROC(C,pdsRoc,%),pdsEma,E),smooth,E)/ Mov(Mov(Abs(ROC(C,pdsRoc,%)),pdsEma,E),smooth,E); SlopeSig:= If(TSI>Ref(TSI,-1),1,If(TSI<Ref(TSI,-1),-1,0)); 0;If(display=2,SlopeSig,TSI) ---8<--------------------------- [/code:1:23d70a4ccd] jose '-) http://www.metastocktools.com .
Users browsing this topic
Guest (Hidden)
Similar Topics
True Strength Index [RESOLVED] (Formula Assistance)
by regsinha 11/30/2005 11:18:53 AM(UTC)
2 Pages12>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.