MetaStock formulas

04/03/05 13:27.28
Will alert if volume is twice the 20 day SMA for the last three days
Alert(V>=(Mov(V,20,S)*2),3)

04/03/05 13:30.02
If Bollinger bands expand more than 20% in a day
ROC((BBandTop(C,20,E,2)-BBandBot(C,20,E,2)),1,%)>20

04/03/05 13:30.41
Daily high penetrates Bollinger band top
H>BBandTop(C,20,E,2)

04/03/05 13:32.40
+DI is greater than -DI
PDI(14) > MDI(14)

04/03/05 13:34.15
DI Cross
cross(pdi(14), mdi(14))
or
cross(mdi(14) ,pdi(14))


04/03/05 13:35.12
5 days of increasing price
close>ref(close,-1)
and
ref(close,-1)>ref(close,-2)
and
ref(close,-2)>ref(close,-3)
and
ref(close,-3)>ref(close,-4)
and
ref(close,-4)>ref(close,-5)


04/03/05 13:36.17
Range over 3 weeks is greater than or equal to 5 points
roc(c,15,$)>=5

04/03/05 19:58.12
High breaks upper Bollinger band by 5%
(H-(H*.05))>(BBandTop(C,20,E,2))

04/04/05 22:36.45
6 times twice 20 day VOL
Sum( Fml( \"{VM} Twice 20 day VOL\") ,30)>6

04/24/05 18:37.34
Close is less than 10% of the 5 day high
c<((hhv(h,5)*.1)+hhv(h,5))

05/07/05 17:47.26
OHLC 6 DWM notes
This indicator plots 8 lines,Change the color of the Ref lines to red, change thr color of the A lines to green and change the color of the UC and LC lines to purple

What this indicator tries to do is to take the average of all of the prices of the past six days and plot them on a daily chart.
Then it takes the average of all of the prices of the past six weeks and plot them on the Daily Chart.Then it takes the average of all of the prices of the past six months and plots it on the Daily Chart.

It then uses the Weekly value and sets 10 % bands for extreme areas

05/08/05 17:26.20
My formula
A1:=Sum( Fml( \"{VM} Close within 1.7% of High\") ,20);
B1:=RSI(14);
C1:=PDI(14)>MDI(14);
d1:=Fml( \"{VM} Expanding Bollinger\");
e1:=PVI()>Ref(Mov(PVI(),5,E),-1);
e2:=ADX(7)>Mov(ADX(7),7,E);
f:=If((a1>8) AND (b1>50) AND (d1=1) AND (e1>0) AND (c1=1) AND (e2=1),1,-1);
f

05/22/05 21:30.07
6 4 Hi Lo Expert
Highlight Tab
{Long}
Buy:=Cross(C,Mov(Ref(H,-4),6,S));
Sell:=Cross(Mov(Ref(L,-4),6,S),C);
State:=If(BarsSince(Buy)>BarsSince(Sell),1,0);
State=0

{Short}
Buy:=Cross(C,Mov(Ref(H,-4),6,S));
Sell:=Cross(Mov(Ref(L,-4),6,S),C);
State:=If(BarsSince(Buy)>BarsSince(Sell),1,0);
State=1

Symbol Tab
{EL}
Buy:=Cross(C,Mov(Ref(H,-4),6,S));
Sell:=Cross(Mov(Ref(L,-4),6,S),C);
i:=Cum(Buy>-1 AND Sell>-1)=1;
x:=BarsSince(i OR Buy)<=BarsSince(i OR Sell)=0;
X=0 AND Ref(X,-1)>0

{ES}
Buy:=Cross(C,Mov(Ref(H,-4),6,S));
Sell:=Cross(Mov(Ref(L,-4),6,S),C);
i:=Cum(Buy>-1 AND Sell>-1)=1;
x:=BarsSince(i OR Buy)>=BarsSince(i OR Sell)=0;
X=0 AND Ref(X,-1)>0

05/22/05 22:05.14
ADX exit strategy
When ADX rises above both +DI and -DI it signals that the market is becoming overheated. Take profits when ADX turns downwards from above +DI and -DI.

07/10/05 16:38.17
Template for Latch
Buy:= ;
Sell:= ;
I:=Cum(Buy+Sell>-1)=1;
if(BarsSince(I or Buy) < BarsSince(I or Sell),1,-1)

05/25/13 15:02.01



05/25/13 15:02.27



05/25/13 15:02.41



09/06/15 8:37.12



12/08/15 14:11.39



12/08/15 14:11.49



08/16/19 19:42.40



06/11/20 13:21.52



06/24/20 10:08.43



07/18/20 10:53.41



07/22/20 22:42.50



07/26/20 6:16.35



07/29/20 3:36.05



07/31/20 15:45.22



08/03/20 21:26.40



08/08/20 8:28.30



08/11/20 15:19.10



08/19/20 5:51.52



08/20/20 7:26.16



08/22/20 1:32.28



08/23/20 3:17.58



09/07/20 7:56.20



09/09/20 6:29.45



09/12/20 9:24.59



09/15/20 16:22.30



10/08/20 1:01.53



10/16/20 8:39.19



10/16/20 8:40.34



10/25/20 5:34.24



10/27/20 2:37.23



10/28/20 5:39.02



11/08/20 22:40.32



11/10/20 20:40.59



11/25/20 6:03.34



12/14/20 1:51.24



12/16/20 17:03.20



04/24/21 8:34.50



04/26/21 22:35.10



05/06/21 17:44.19



05/09/21 4:12.08



08/22/21 4:08.47



08/24/21 8:48.49



09/19/21 14:35.04



09/21/21 17:34.37



10/13/21 14:36.38



10/21/21 0:21.36



11/22/21 22:40.17



01/08/22 5:45.46



02/01/22 19:15.49



02/09/22 14:54.56



03/10/22 12:12.44



03/12/22 16:37.08



03/16/22 3:58.04



03/18/22 7:33.19



05/12/22 22:28.48



05/13/22 18:26.25



05/15/22 3:35.10



05/15/22 23:18.00



06/05/22 15:54.15



07/11/22 10:30.26



07/13/22 19:39.07



07/24/22 3:37.04



07/26/22 11:12.05



08/03/22 20:14.45



08/06/22 4:45.59



09/06/22 10:31.55



09/16/22 8:46.20



09/18/22 11:05.23



10/11/22 16:22.12



12/10/22 3:03.57



12/10/22 10:58.22



12/10/22 12:51.14



09/07/23 21:34.33



09/08/23 3:59.03



12/18/23 6:02.47



12/28/23 8:38.55



03/31/24 22:27.49



04/11/24 10:24.30




Return