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

Re: [RT] WinMidas for Metastock



PureBytes Links

Trading Reference Links

Yarroll,

I am posting below the ammendments I have made to the original code I
posted. Will appreicate your checking them out for accuracy. They resolve
the problem you mentioned as well as the scaling issue(when the S/R line
starts from zero). Also some people had commented about relevance of the
volume number in the WinMidas equation. To test for that I had computed a
Anchored Moving Average (anchored to a particular date). I am appending
the code for that as well for those who might want to see for themselves
the significance if any, of the volume element in the WinMidas
equation.

The next issue that needs tackling in order to have to the complete
WinMidas system is the "Top/Bottom finder"
coding. Much as I try to comprehend the math involved I get lost in the
formulae and description given by Levine in his articles. Could you go
over the same and please let me know how to sort that one out? If that is
resolved then we could have a reasonable prediction system-that is if the
examples given by Levine in his articles are to be believed.

TIA

Rakesh


AMMENDED WINMIDAS CODE

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:=Typical()*V;

cumpv:=Cum(pvol);

cumvol:=Cum(V);

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

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

sr:=sr1/sr2;

sr;

ANCHORED MOVING AVERAGE


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);
  
cumtp:=Cum(TYPICAL());
basecumtp:= ValueWhen(1, numdays=1, Ref(cumtp,-1)); 
avgval:=(cumtp-basecumtp)/numdays;

avgval;


At 02:26 PM 7/16/01 +0200, you wrote:
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/
                                                                        Rakesh Sahgal
                                                                        C -165(1st Floor), Greater Kailash - I,
                                                                        New Delhi - 110 048
                                                                        India.
                                                                        Tel.: 91-11-647-6462,91-11-643-0010
                                                                        eMail:  rakeshsahgal@xxxxxxx
                                                                                rsahgal@xxxxxxxx

Rakesh SahgalOnline Status: 



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





Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.