RPY指标判断中期顶部(季度,半年,一年)
STOCKDAYS:=250;
HALFDAYS:=125;
QUARTERDAYS:=62;
LOW1:=LLV(L,QUARTERDAYS);HIGH1:=HHV(H,QUARTERDAYS);
LOW2:=LLV(L,HALFDAYS);HIGH2:=HHV(H,HALFDAYS);
LOW3:=LLV(L,STOCKDAYS);HIGH3:=HHV(H,STOCKDAYS);
季度相对价位:(C-LOW1)/(HIGH1-LOW1)*100;
半年相对价位:(C-LOW2)/(HIGH2-LOW2)*100;
年度相对价位:(C-LOW3)/(HIGH3-LOW3)*100;
STOCKDAYS:=250;
HALFDAYS:=125;
QUARTERDAYS:=62;
LOW1:=REF(LLV(L,QUARTERDAYS),DAYNUM);HIGH1:=REF(HHV(H,QUARTERDAYS),DAYNUM);
LOW2:=REF(LLV(L,HALFDAYS),DAYNUM);HIGH2:=REF(HHV(H,HALFDAYS),DAYNUM);
LOW3:=REF(LLV(L,STOCKDAYS),DAYNUM);HIGH3:=REF(HHV(H,STOCKDAYS),DAYNUM);
季度相对价位:=(REF(C,DAYNUM)-LOW1)/(HIGH1-LOW1)*100;
半年相对价位:=(REF(C,DAYNUM)-LOW2)/(HIGH2-LOW2)*100;
年度相对价位:=(REF(C,DAYNUM)-LOW3)/(HIGH3-LOW3)*100;
IF(TYPE1=1,季度相对价位>=HIGHVAL,IF(TYPE1=2,半年相对价位>=HIGHVAL,年度相对价位>=HIGHVAL));
thanks for the sharing! 牛的一批! 找了很久的东西! 帮你顶下哈!! 看帖回帖是美德!:lol
页:
[1]