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?