(宝塔绿色柱平底)选股指标
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
编写要求:
麻烦各位老师请帮忙,宝塔绿色柱要求低平第2柱发出预警宝塔代码YC2:=REF(CLOSE,2);YC:=REF(CLOSE,1),LINETHICK0;TJ:=YC>=YC2;YH:=MAX(YC2,YC),LINETHICK0;YL:=MIN(YC2,YC),LINETHICK0;TH:=MAX(YC,CLOSE),LINETHICK0;TL:=MIN(YC,CLOSE),LINETHICK0;RH:=TH,LINETHICK0;RL1:=IF(TJ=0,YH,MAX(TL,YL)),LINETHICK0;RL:=IF(RL1>RH,RH,RL1),LINETHICK0;GL:=TL,LINETHICK0;GH1:=IF(TJ=0,MIN(YH,TH),YL),LINETHICK0;GH:=IF(GH1REF(L,2),REF(C,2),IF(C>REF(C,1),C,REF(C,1))); TOWER:BASE1,LINETHICK0;STICKLINE(GH>GL,GH,GL,2.5,0),COLOR008000;STICKLINE(RH>RL,RH,RL,2.5,0),COLORRED;STICKLINE(RH=RL AND GH=GL,RH,RL,2.5,0),COLORRED;PAR2:=ROUND((TOWER/8)+0.5);PAR1:=PAR2*0.03;T4:=REF(TOWER,4),LINETHICK0;T3:=REF(TOWER,3),LINETHICK0;T2:=REF(TOWER,2),LINETHICK0;T1:=REF(TOWER,1),LINETHICK0;A:=RH-RL,LINETHICK0;B:=GH-GL,LINETHICK0;P1:=IF(A>2*B,1,0);P2:=IF(B>2*A,1,0);BUY:ABS(T1-T3)<=PAR1 AND ABS(T2-T3)<=PAR1 AND P1=1,NODRAW;SALE:=ABS(T1-T3)<=PAR1 AND ABS(T2-T3)<=PAR1 AND P2=1;SALE1:=SALE AND VOL[REF(CLOSE,1)*0.965;DRAWICON(BUY,0.99*LOW,1);DRAWICON(SALE,HIGH*1.01,2);DRAWICON(REF(SALE1,1) AND P1=1,HIGH*1.01,9);]
解答:
YC2:=REF(CLOSE,2);
YC:=REF(CLOSE,1);
TJ:=YC>=YC2;
YH:=MAX(YC2,YC);
YL:=MIN(YC2,YC);
TH:=MAX(YC,CLOSE);
TL:=MIN(YC,CLOSE);
RH:=TH,LINETHICK0;
RL1:=IF(TJ=0,YH,MAX(TL,YL));
RL:=IF(RL1>RH,RH,RL1);
GL:=TL;
GH1:=IF(TJ=0,MIN(YH,TH),YL);
GH:=IF(GH1<GL,GL,GH1);
GL=REF(GL,1) AND EVERY(GH>GL,2);
选股票看什么指标最好 >
股票指标网
精彩评论