最新更新 - 网站地图 -
您的当前位置:首页 > 股票公式 > 公式技巧 > (宝塔绿色柱平底)选股指标

(宝塔绿色柱平底)选股指标

来源:网络 点击: 时间:2022-12-28 10:50:29

编写要求:

麻烦各位老师请帮忙,宝塔绿色柱要求低平第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 VOLREF(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);

    Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号

    免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!

    Top