高分请把以下通达信预警公式修改为 大智慧分时预警公式.请高手赐教.
{主力散户线预警(选股)}{主力散户线预警(选股)}M:=60;N:=30;散户线:=100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(L...
{主力散户线预警(选股)}
{主力散户线预警(选股)}
M:=60;
N:=30;
散户线:=100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M));
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;
主力散户线预警:CROSS(REF(散户线,1),散户线) AND CROSS(走势,REF(走势,1)); 展开
{主力散户线预警(选股)}
M:=60;
N:=30;
散户线:=100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M));
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;
主力散户线预警:CROSS(REF(散户线,1),散户线) AND CROSS(走势,REF(走势,1)); 展开
3个回答
展开全部
n:=0.001;
A:=BARSCOUNT(C)-BARPOS+1;
A1:=DAY<>REF(DAY,1);
A2:=BARSLAST(A1)+1;
A3:=MA(C,A2);
A4:=SUM(AMOUNT,A2)/SUM(VOL,A2)/100;
A5:=IF(CAPITAL>0,A4,A3);
现价:=IF(A<=A2,CLOSE,0);
均价:=IF(A<=A2,A5,0);
昨收:=ref(c,barslast(time<=093100)+1);
开盘:=barslast(time<=093600)+1;
横盘条件:=abs((现价-均价)/均价)<0.01 and 均价>昨收*0.986 and 均价>=ref(均价,1);
横盘:=last(横盘条件)>=60;
二分涨速:=(c-ref(c,2))/(ref(c,2)*2);
二分量:=MIN(V,REF(V,1));
横盘最大量:=hhv(v,barslast(last(横盘条件)=1)+1);
con:二分量>ref(横盘最大量,2)*1.3 and ref(横盘,2)=1 and 二分涨速>n;
按你的要求写了,以上源码是在大智慧上实现的,通达信的会运行不通过,有问题再hi我吧~~~
A:=BARSCOUNT(C)-BARPOS+1;
A1:=DAY<>REF(DAY,1);
A2:=BARSLAST(A1)+1;
A3:=MA(C,A2);
A4:=SUM(AMOUNT,A2)/SUM(VOL,A2)/100;
A5:=IF(CAPITAL>0,A4,A3);
现价:=IF(A<=A2,CLOSE,0);
均价:=IF(A<=A2,A5,0);
昨收:=ref(c,barslast(time<=093100)+1);
开盘:=barslast(time<=093600)+1;
横盘条件:=abs((现价-均价)/均价)<0.01 and 均价>昨收*0.986 and 均价>=ref(均价,1);
横盘:=last(横盘条件)>=60;
二分涨速:=(c-ref(c,2))/(ref(c,2)*2);
二分量:=MIN(V,REF(V,1));
横盘最大量:=hhv(v,barslast(last(横盘条件)=1)+1);
con:二分量>ref(横盘最大量,2)*1.3 and ref(横盘,2)=1 and 二分涨速>n;
按你的要求写了,以上源码是在大智慧上实现的,通达信的会运行不通过,有问题再hi我吧~~~
展开全部
M:=60;
N:=30;
散户线:=100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M));
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,8));
主力散户线预警:CROSS(REF(散户线,1),散户线) AND CROSS(走势,REF(走势,1));{分析周期:分时}
N:=30;
散户线:=100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M));
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,8));
主力散户线预警:CROSS(REF(散户线,1),散户线) AND CROSS(走势,REF(走势,1));{分析周期:分时}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
M:=60;
N:=30;
散户线:=100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M));
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,8));
主力散户线预警:CROSS(REF(散户线,1),散户线) AND CROSS(走势,REF(走势,1));
分时预警的时候周期记住一定要选择分时,
N:=30;
散户线:=100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M));
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,8));
主力散户线预警:CROSS(REF(散户线,1),散户线) AND CROSS(走势,REF(走势,1));
分时预警的时候周期记住一定要选择分时,
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询