[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RT] WinMidas for Metastock



PureBytes Links

Trading Reference Links

Hello RTs,

Sorry to come back so late about that... but, a few days (weeks? months?)
ago Rakesh posted the WinMidas code for Metastock.
I've added a line to it, getting rid of the annoying division-by-zero
problem.
Here you go (below).

BTW, anyone coded the WinMidas fast line?

All the best,
Yarroll

{WinMidas for Metastock}

eMonth:=Input("Enter the Month-MM",1,12,1);
eDate:=Input("Enter the Date-DD",1,31,1);
eYear:=Input("Enter the Year-YYYY",0,2100,0);
numdays:=BarsSince(DayOfMonth()=eDate AND
Month() =emonth AND Year()=eyear);
pvol:=MP()*V;
cumpv:=Cum(pvol);
cumvol:=Cum(V);

basecumpv:=ValueWhen(1, numdays=0, cumpv);
basecumvol:=ValueWhen(1, numdays=0, cumvol);

sr1:=cumpv-basecumpv;
sr2:=cumvol-basecumvol;

sr:=sr1/sr2;

WinM:=If(   (sr=0), L,   sr);

WinM;



To unsubscribe from this group, send an email to:
realtraders-unsubscribe@xxxxxxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/