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

Notification

Icon
Error

Options
Go to last post Go to first unread
jjstein  
#1 Posted : Saturday, June 18, 2011 4:20:41 PM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
I cannot get Metastock to match the chart [censored]Arms posted during an audio interview at the 5:30 mark. Here is a screen capture:

CHART HERE.



Below is what I have tried so far, code & chart:
{*****************************************}
{* _NYSE TRIN *}
Smooth:=Input("Smooth:",1,200,10);
Period:=Input("Periods:",1,500,144);
ADI:=Security("\MetaStock Data\BM Data\X.NYSE-A",C);
USV:=Security("\MetaStock Data\BM Data\X.NYSE-A",V);
DCI:=Security("\MetaStock Data\BM Data\X.NYSE-D",C);
DSV:=Security("\MetaStock Data\BM Data\X.NYSE-D",V);

Trin:=(Sum(ADI,Period)/Sum(DCI,Period))/
(Sum(USV,Period)/Max(Sum(DSV,Period),1));
TrinSmooth:=mov(Trin,Smooth,W);

Trin;TrinSmooth;
{*****************************************}
CHART HERE.



{*****************************************}
{* _NYSE TRIN Before *}

Smooth:=Input("Smooth",1,500,144);

ADI:=Security("C:\MetaStock Data\BM Data\X.NYSE-A",C);
USV:=Security("C:\MetaStock Data\BM Data\X.NYSE-A",V);
DCI:=Security("C:\MetaStock Data\BM Data\X.NYSE-D",C);
DSV:=Security("C:\MetaStock Data\BM Data\X.NYSE-D",V);

ADI:=Mov(ADI,Smooth,S);
DCI:=Mov(DCI,Smooth,S);
USV:=Mov(USV,Smooth,S);
DSV:=Mov(DSV,Smooth,S);
Trin:=(ADI/Max(DCI,1))/Max((USV/Max(DSV,1)),1);
Trin;
{*****************************************}
CHART HERE.




{*****************************************}
{* _NYSE TRIN After *}

Smooth:=Input("Smooth",1,500,144);

ADI:=Security("C:\MetaStock Data\BM Data\X.NYSE-A",C);
USV:=Security("C:\MetaStock Data\BM Data\X.NYSE-A",V);
DCI:=Security("C:\MetaStock Data\BM Data\X.NYSE-D",C);
DSV:=Security("C:\MetaStock Data\BM Data\X.NYSE-D",V);

Trin:=(ADI/Max(DCI,1))/Max((USV/Max(DSV,1)),1);
Mov(Trin,Smooth,S);
{*****************************************}
CHART HERE.



Anyone have a suggestion?

wabbit  
#2 Posted : Sunday, June 19, 2011 2:43:05 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)
Right click on the y-axis of your TRIN indicators and invert the scale. I cannot see you charts (????) but [censored]likes to turn things over in his indicator for some reason???

wabbit [:D]

jjstein  
#3 Posted : Sunday, June 19, 2011 7:19:25 PM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
They're already inverted. They just don't match, and I can't figure out why -- the TRIN calculation has been around for awhile -- unless I've messed up or he's doing something new/unpublished.

Couldn't embed the charts, so if you click on them, it should open a new window with the chart.

wabbit  
#4 Posted : Monday, June 20, 2011 1:00:39 AM(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'm on the iPhone at the moment, some things just don't work... will look later when I can get a connection from laptop.

wabbit [:D]

MS Support  
#5 Posted : Wednesday, June 22, 2011 4:57:33 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,960

Thanks: 92 times
Was thanked: 155 time(s) in 150 post(s)
Traditionally, the TRIN is a calculation of the current days value only. I did not catch in the interview how the time periods were being applied. Straight averaging does not seem to work.

A second possibility is a difference in the data. Is he using data for the NYSE, the NASDAQ, or a combination of the two. Further, different vendors count the advancing and declining issues differently. some include Warrants and Preferred shares, some don't, and some do a mix.

I believe you should be able to get a plot close to what is shown, but an exact match may be impossible without using the same data [censored]Arms used.
jjstein  
#6 Posted : Wednesday, June 22, 2011 8:08:37 PM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
>>I did not catch in the interview how the time periods were being applied.

It should be what's marked on the chart I screen-captured: 144-Days Arms Index.


>>I believe you should be able to get a plot close to what is shown

I thought so too, but if you click on the charts and view them side-by-side, it's not really even close. Since TRIN has been around for a few decades, the calculation be standard and Metastock should certainly be able to do it.

Will try to re-post, if I can figure out how to "embed" the charts.

MS Support  
#7 Posted : Monday, June 27, 2011 1:48:18 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,960

Thanks: 92 times
Was thanked: 155 time(s) in 150 post(s)
As I stated in my original post, the TRIN traditionally does not use time periods. it is a series of points calculated independently of past or future data. The Original TRIN is calculated with just the Advancing and Declining issues and Volume of that day.

"I did not catch in the interview how the time periods were being applied" was not a reference to the number of periods but how the data was being used. is this a simple average, a weighted average, a summation, or some other calculation.

I have been doing more research and came across the Open-10 TRIN:

ADI:=Security("C:\MetaStock Data\BM Data\us&ADVQ",C);
USV:=Security("C:\MetaStock Data\BM Data\us&UVOQ",C);
DCI:=Security("C:\MetaStock Data\BM Data\us&DECQ",C);
DSV:=Security("C:\MetaStock Data\BM Data\us&DVOQ",C);
(Sum(ADI,10)/Sum(DCI,10))/
(Sum(USV,10)/Sum(DSV,10))


Maybe using that as a starting point will get you closer to the posted chart.

Users browsing this topic
Guest (Hidden)
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.