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

[RT] WinMidas system formula for MetaStock



PureBytes Links

Trading Reference Links

I was trying to write a formula for the Winmidas system in MetaStock
and came up with the following formula:

eMonth:=Input("Enter the Month",1,12,1);
eDate:=Input("Enter the Date",1,31,1);
eYear:=Input("Enter the Year",0,2100,0);

numdays:= -1 * BarsSince(DayOfMonth()=eDate AND Month() =emonth AND
Year()=eyear);

pvol:=MP()*V;
cumpv:=Cum(pvol);
cumvol:=Cum(V);


sr1:=cumpv-Ref(cumpv,numdays);
sr2:=cumvol-ref(cumvol,numdays);

sr:=sr1/sr2;

sr;


The problem I am encountering:

The "ref" function has to be used to anchor the
support/res. level to a key breakout date from where the s/r level is
computed. Metastock refuses to accept the variable "numdays" in
the "REF" function and the error message states that the value
to be used in this function needs to be a constant and cannot be a
variable.However the WinMidas system requires that the values of cumpvol
and cum vol on the breakout date be deducted from their respective
current values.  Is it possible to circumvent this rule using some
other function?

Any help will be greatly appreciated. Thanks in advance


Rakesh Sahgal


                                                                        

Rakesh
SahgalOnline
Status:







Yahoo! Groups Sponsor












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.