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; |