SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : Metastock 6.0 for Window

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: KTLe who wrote ()7/25/1999 7:40:00 AM
From: Richard Rockwell  Read Replies (2) of 4056
 
Clueless about Quotes+ codeing can this be translated to Metastock? Unfamiliar with pdi(14)>mdi(14) and what does this mean? println symbol,",", close(0):8:3,",", adx(0):6:2,",", pdm(0):6:2,",", mdm(0):6:2;
any help would be appreciated

//Cooper 1234 Buy, translated by Brooke Elise Nagler
output="Cooper1.lst";
//input="commplus.lst";
issuetype common;
daystoload=500;

Set ADX = 14;
Set PDM = 14;
Set MDM = 14;

if adx(0)>30 and //(ADX(14) > 30
pdm(0) > mdm(0) and //PDI(14) > MDI(14))

((low(0)<low(-1) and //(L < Ref(L,-1)
low(-1)<low(-2) and //Ref(L,-1) < Ref(L,-2)
low(-2)<low(-3)) //Ref(L,-2) < Ref(L,-3)

or

(low(-2)<low(-3) and //(Ref(L,-2) < Ref(L,-3)
low(-1)<low(-2) and //Ref(L,-1) < Ref(L,-2)
high(0)<=high(-1) and //H <= Ref(H,-1)
low(0)>=low(-1)) //L >= Ref(L,-1)

or

(high(-2)<=high(-3) and
low(-2)>=low(-3) and //(Ref(( H <= Ref(H,-1) AND (L >= Ref(L,-1)) ),-2)
low(-1)<low(-2) and //Ref(L,-1) < Ref(L,-2)
low(0)<low(-1))) //L < Ref(L,-1)

then

println symbol,",", close(0):8:3,",", adx(0):6:2,",", pdm(0):6:2,",", mdm(0):6:2;
endif;
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext