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

[EquisMetaStock Group] Re:Help with a couple of formulas



PureBytes Links

Trading Reference Links



You cannot reply to this message via email because you have chosen not
to disclose your email address to the group.  Please use this
page to reply.
 




Hi,I have recently upgraded to Metastock V8 EOD and am 
pleased with the significant improvements to the System Tester. I have been 
using an alternate program in the last few years but would like to get back into 
Metastock.However, in order to start using the System Tester I am 
struggling with the Code to achieve a couple of Values and would appreciate any 
help.I am trying to find the Value of the Close and 
the Number of Periods to this Close when this Close is the lowest Close 
within the 13 days immediately prior to the Rule being true that the 13 period 
SMA crosses above the 21 period SMA. Ultimately I am trying to achieve an 
annualised rate of return from this low point to use as an indicator and value 
for a system rule. I am used to having an "Offset" period that can be deployed 
when starting to evaluate a Rule, but I do not see one in Metastock.The 
code that I have written and seems to be working OK is as 
follows:CrossUp:= Cross(Mov(CLOSE,13,SIMPLE), 
Mov(CLOSE,21,SIMPLE));CrossUpDays:=  
BarsSince(CrossUp);CrossClose:= 
ValueWhen(1,CrossUp,C);Regards,Gordon 
Sutherland






Yahoo! Groups Sponsor


<font face=arial
size=-2>ADVERTISEMENT<img src="http://ad.doubleclick.net/ad/N879.ameritrade.yahoo/B1054521.11;sz=300x250;adc=ZHS;ord=1034556475?"; alt="" width="300" height="250"
border="0">









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





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