chjlcn 发表于 2015-10-9 11:56

四维看盘主图公式立体看盘应用之一

本帖最后由 chjlcn 于 2015-10-9 12:04 编辑

**** Hidden Message *****

昨日:黄金线上阳盖阴选股公式选到的个股
http://www.178448.com/thread-996026-1-1.html

黄金线上阳盖阴选股
20个有5个涨停 成功率25%
14个5%以上    成功率70%
17个4%以上    成功率85%
19个3%以上    成功率95%
20个全部收阳成功率100%
http://att.178448.com/forum/201510/08/155953hmfg6tm6s9msndnw.jpg

我写的黄金柱主图指标--金将军
http://www.178448.com/thread-994639-1-1.html

以下是我最近写的选股公式,欢迎观看建议.

黄金线上阳盖阴选股公式 即将发布
过凹间峰选股公式 即将发布
涨停龙虎榜选股公式 http://www.178448.com/thread-990850-1-1.html
顺势二牛选股公式 http://www.178448.com/thread-990083-1-1.html

板后单枪选股公式 http://www.178448.com/thread-984366-1-1.html
板后双枪选股公式 http://www.178448.com/thread-984772-1-1.html
板后缩量不破21选股公式 http://www.178448.com/thread-990849-1-1.html

T4缩量变异选股公式 http://www.178448.com/thread-972147-1-1.html
T4放量变异选股公式 http://www.178448.com/thread-972140-1-1.html
黄金柱选股公式 http://www.178448.com/thread-972569-1-1.html

超跌选股公式 http://www.178448.com/thread-985270-1-1.html
超跌选股公式应用示例 http://www.178448.com/thread-989332-1-1.html

高量柱选股公式 http://www.178448.com/thread-972564-1-1.html
梯量柱选股公式 http://www.178448.com/thread-972157-1-1.html
天鹰开路选股公式 http://www.178448.com/thread-987681-1-1.html

缩量双阴选股公式 http://www.178448.com/thread-982057-1-1.html
缩量不破31选股公式 http://www.178448.com/thread-983173-1-1.html


补充内容 (2015-10-27 07:51):
涨停预报专家V2尝鲜的进,速度要快
http://www.178448.com/thread-1010335-1-1.html

肥子二哥 发表于 2016-4-30 07:49

MA8:=MA(CLOSE,10),COLOR00FFFF; MA63:=MA(CLOSE,63),COLOR00FF00; MA144:=MA(CLOSE,144),COLORFF00FF, LINETHICK2; 强势5:=MA(C,5),COLORWHITE,LINETHICK1; VAR3:=LLV(HIGH,240); VAR4:=100*(CLOSE-VAR3)/VAR3; VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100; VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100; VAR7:=0; VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100; VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100; VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0); VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3); VAR12:=ZIG(3,6)=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3); VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3); VAR14:=ZIG(3,22)=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3); VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3); VAR16:=ZIG(3,51)=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3); VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3); VAR18:=ZIG(3,72)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3); VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150); 买1:=VAR10; 买2:=(VAR11+VAR13+VAR15+VAR17); 卖1:=(VAR12+VAR14+VAR16+VAR18); B:IF(买1>0 OR 买2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW; DRAWTEXT(买1>0 OR 买2>0,LOW*1,'买入'),COLORRED; S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN; {DRAWTEXT(卖1>0,HIGH*1,'卖出'),COLORGREEN;} {股灵吧决策} VAR100:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20)))); VAR200:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20)))); VAR300:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) - LLV(LOW,5))),34)); F:IF(CROSS(VAR200,MA(VAR300,5)),LOW * 0.98,DRAWNULL),CROSSDOT,LINETHICK3,COLOREE00EE; 生命线:MA(CLOSE,22),LINETHICK2,COLORRED; N:=10; T1:=CONST(HHVBARS(V,N)); T0:IF(CURRBARSCOUNT<=N+3,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL),COLORFF00FF; IF(CURRBARSCOUNT=T1+1,T0,DRAWNULL),CIRCLEDOT,COLORFF00FF; DRAWTEXT(ISLASTBAR,T0,' 量能平台'),COLORCC00CC; MA135:=MA(VOL,135); TJ1:=VOL=HHV(VOL,10) AND VOL>1.7*REF(VOL,1) AND C>=REF(C,1) AND C>=O AND VOL<=MA135*3.5; LJL:=FILTER(TJ1,3); TJ3:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(LOW,3),1,0); ST:=TJ3=1; CL:=FILTER(ST,3); STICKLINE(LJL,OPEN,CLOSE,1,0),COLORYELLOW; DRAWTEXT(LJL,L*1,'支撑'),COLORF00FF0; A:MA(C,22)COLORBLUE,,LINETHICK2; X:=A IF(X-1,A,DRAWNULL)COLORRED,,LINETHICK2; MA5:=MA(CLOSE,5),COLORWHITE; MA10:=MA(CLOSE,10),COLORYELLOW; MA30:=MA(CLOSE,30),COLORMAGENTA; MA60:=MA(CLOSE,60),COLORGREEN; MA120:=MA(CLOSE,120),COLORLIMAGENTA; MA240:=MA(CLOSE,240),COLORBLUE,NODRAW; VOL5:=MA(VOL,5),COLORWHITE; VOL10:=MA(VOL,10),COLORYELLOW; VOL40:=MA(VOL,20),COLORFF00FF ; 量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1) DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE; AA1:=BARSLAST(MA60>MA30 AND (MA30=MA10 OR MA30>MA10)); BB1:=REF(COUNT(C CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3; 芙蓉出水:=BB1 AND CC1,COLOR00FF00; DRAWTEXT(芙蓉出水,H+0.3,'芙蓉出水'),COLORFF00FF; STICKLINE(芙蓉出水,H,L,1,1),COLORFF00FF; STICKLINE(芙蓉出水,O,C,3,1),LINETHICK2,COLORFF00FF; MA1:=MA(CLOSE,5); MA2:=MA(CLOSE,10); MA3:=MA(CLOSE,20); ZJ:=AMOUNT/10000;{资金} TM:=V-MA(V,10);{量填满} 一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1OPEN ; DRAWTEXT(一穿三,L-0.012,'一穿三'),COLORFF00FF; STICKLINE(一穿三,OPEN,CLOSE,1,0),COLORFF00FF; TY:=C; A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10); A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10); 前期高位:REF(C,BARSLAST(HD)),COLORBLUE,POINTDOT; STICKLINE(C,前期高位,前期高位,8,0),COLORGREEN; {高点:=(C/REF(C,BARSLAST(HD))-1)*100,NODRAW; STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;} 三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3); 三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2)) 三日价涨A:=C>=REF(C,1); 三日价涨B:=C 三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3); TIM:=IF(DATE<1140214,1,0); 缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM; 百日低量:=(VOL=LLV(VOL,100))*TIM; 倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM; 四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM; 四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM; 前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0; 倍量黄金柱:=四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立; 高量黄金柱:=四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立; 黄金柱:=倍量黄金柱 OR 高量黄金柱; 次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨B AND 前三引用不成立; 次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨B AND 前三引用不成立; 次黄金柱:=次倍量黄金柱 OR 次高量黄金柱; 准倍量黄金柱:=NOT(黄金柱 OR 次黄金柱) AND 四日前倍量柱 AND ((三日量缩 AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立; 准高量黄金柱:=NOT(黄金柱 OR 次黄金柱) AND 四日前高量柱 AND (三日量缩 AND 三日价涨C) AND 前三引用不成立; 准黄金柱:=准倍量黄金柱 OR 准高量黄金柱; 倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立; 高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立; 将军柱:=倍量将军柱 OR 高量将军柱; 次倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立; 次高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立; 次将军柱:=次倍量将军柱 OR 次高量将军柱; 准倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前倍量柱 AND 三日价涨C AND 前三引用不成立; 准高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前高量柱 AND 三日价涨C AND 前三引用不成立; 准将军柱:=准倍量将军柱 OR 准高量将军柱; BACKSET100:=BACKSET(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱 OR 准将军柱,4); FILTER100:=FILTER(BACKSET100,3),NODRAW; BACKSET101:=BACKSET(黄金柱,4); FILTER101:=FILTER(BACKSET101,3); BACKSET102:=BACKSET(次黄金柱,4); FILTER102:=FILTER(BACKSET102,3); BACKSET103:=BACKSET(准黄金柱,4); FILTER103:=FILTER(BACKSET103,3); BACKSET104:=BACKSET(将军柱,4); FILTER104:=FILTER(BACKSET104,3); BACKSET105:=BACKSET(次将军柱,4); FILTER105:=FILTER(BACKSET105,3); BACKSET106:=BACKSET(准将军柱,4); FILTER106:=FILTER(BACKSET106,3); 黄金线下影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3); 黄金线实体下端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O,3)) AND MIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0; 黄金线上影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3); 黄金线实体上端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) 黄金线实体中间:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))MIN(REF(C,3),REF(O,3)); 黄金线实体中间1:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))MIN(REF(C,3),REF(O,3)) AND REF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2)); 黄金线实体中间2:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))MIN(REF(C,3),REF(O,3)) AND REF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2)); 黄金线实体中间3:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))MIN(REF(C,3),REF(O,3)) AND L=MIN(MIN(L,REF(L,1)),REF(L,2)); BACKSET201:=BACKSET(黄金线下影线,4); FILTER201:=FILTER(BACKSET201,3),NODRAW; BACKSET202:=BACKSET(黄金线实体下端,4); FILTER202:=FILTER(BACKSET202,3),NODRAW; BACKSET203:=BACKSET(黄金线上影线,4); FILTER203:=FILTER(BACKSET203,3),NODRAW; BACKSET204:=BACKSET(黄金线实体上端,4); FILTER204:=FILTER(BACKSET204,3),NODRAW; BACKSET205:=BACKSET(黄金线实体中间,4); FILTER205:=FILTER(BACKSET205,3),NODRAW; BACKSET2051:=BACKSET(黄金线实体中间1,4); FILTER2051:=FILTER(BACKSET2051,3),NODRAW; BACKSET2052:=BACKSET(黄金线实体中间2,4); FILTER2052:=FILTER(BACKSET2052,3),NODRAW; BACKSET2053:=BACKSET(黄金线实体中间3,4); FILTER2053:=FILTER(BACKSET2053,3),NODRAW; BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER201)); BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER202)); BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER203)); BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER204)); BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER205)); BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2051)); BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2052)); BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2053)); 最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051),BT2052),BT2053); DAY1:=SUMBARS(FILTER100,1),NODRAW; HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,REF(LOW,DAY1-1)),0),NODRAW; HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C,O),MIN(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW; HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY1-1)),0),NODRAW; HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX(C,O),MAX(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW; HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1<2,DRAWNULL,REF(LOW,DAY1-2))),0),NODRAW; HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LOW,IF(DAY1<3,DRAWNULL,REF(LOW,DAY1-3))),0),NODRAW; HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LOW,IF(DAY1<4,DRAWNULL,REF(LOW,DAY1-4))),0),NODRAW; 黄金线:=HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52+HJX1_53,COLORYELLOW,NODRAW; 立桩量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1); 立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0))); 立桩量三日不破:=BARSLAST(立桩量)=3 AND REF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2)); BACKSET300:=BACKSET(立桩量三日不破,4); BACKSET301:=BACKSET(立桩量三日突破,4); 立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量; DRAWTEXT(立桩量成立,HIGH*1.01,'↙立桩量'),COLOR00FF00; DRAWTEXT(FILTER101,LOW*1,'↖黄金柱'),COLORYELLOW; STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW; DRAWTEXT(FILTER102,LOW*1,'↖次黄金柱'),COLORYELLOW; DRAWTEXT(FILTER104,LOW*1,'↖将军柱'),COLORYELLOW; STICKLINE(FILTER104,OPEN,CLOSE,1.5,0),COLORYELLOW; K1:=SUMBARS(FILTER104,1); STICKLINE(K1,REF(L,K1-2),REF(L,K1-2),10,0),COLORYELLOW; K2:=SUMBARS(FILTER101,1); STICKLINE(K2,REF(L,K2-2),REF(L,K2-2),10,0),COLORYELLOW; X1:=(C+L+H)/3; BB5:=ATAN(EMA(X1,7)-REF(EMA(X1,7),1))*3.1416*10; EMA3:=EMA(C,3); DRAWTEXT(FILTER(BB5>1 AND EMA(X1,7)>REF(EMA(X1,7),1),10), LOW*1,'★∠45'),COLORFFFFFF; 总股本:=FINANCE(1)/100000000,POINTDOT,COLOR0000FF; 流通股本:=FINANCE(7)/100000000,POINTDOT,COLORYELLOW; 解禁股:=IF((流通股本-REF(流通股本,1))>0,(流通股本-REF(流通股本,1)),0),COLORYELLOW;{流通股增加} DRAWTEXT(解禁股>0, HIGH*1.05,'解禁'),COLORGREEN; 冻结:=IF((流通股本-REF(流通股本,1))<0,(REF(流通股本,1)-流通股本),0),COLORGREEN;{流通股减少}; DRAWTEXT(冻结>0, HIGH*1.05,'冻结'),COLORGREEN; 波峰距离: PEAKBARS(3,百分比,1),NODRAW; 波谷值:=TROUGH(2,百分比,1); 波谷距离:=TROUGHBARS(2,百分比,1);{HTTP://U.178448.COM/SPACE.PHP?UID=30578} 距离:=CURRBARSCOUNT,NODRAW;      {WEN98编写} CC2:=REF(C,1); 比前跌率:=(CC2-C)*100/CC2; 本日跌率:=(O-C)*100/O; 距离FK1:=波峰距离-1;{波峰右边K距离} 线位置:= REF(L,距离FK1),{NODRAW}; TJ11:=波峰距离>波谷距离+5 AND 波峰距离<120; TJ2:=REF(本日跌率,距离FK1)>3 OR REF(比前跌率,距离FK1)>3;{跌率>3%} TJ33:=距离<240; TJ4:=REF(C,距离FK1) AND REF(C,距离FK1) 画线条件:= 线位置=REF(线位置,1) AND TJ2 AND TJ4;{画线条件} STICKLINE(画线条件,线位置,线位置,15,1),COLORMAGENTA;{画线} 画线: IF(画线条件,线位置,DRAWNULL),COLORMAGENTA;{画线} 打字条件:=FILTER(画线条件 AND TJ11 AND TJ33,20); DRAWTEXT(打字条件,线位置*1.01,'凹口平衡线'),COLORGREEN;{此行可省}; 波谷值1: CONST(TROUGH(2,百分比,1)),NODRAW;{前M个ZIG转向波谷值} 波谷距离1:= 1+CONST(TROUGHBARS(2,百分比,1)),NODRAW;{前M个ZIG转向波谷到当前距离} {例如:TROUGH(2,5,2)表示%5最低价ZIG转向的前2个波谷到当前的周期数}; 波峰值:= CONST(PEAK(1,百分比,右数峰序)); {例如EAK(1,5,1)表示%5最高价ZIG转向的上一个波峰的数值} 允许误差:=0.024; XG:= ABS(波峰值-波谷值1)<=允许误差 {AND BARSCOUNT(V)>60}; 波峰距离1:= 1+CONST(PEAKBARS(1,百分比,右数峰序)),NODRAW; {PEAKBARS(K,N,M)表示之字转向ZIG(K,N)的前M个波峰到当前的周期数,M必须大于等于1} 距离1:=CURRBARSCOUNT; DRAWLINE(距离1=波峰距离1 AND XG,波谷值1,距离=1,波谷值1,1),COLORMAGENTA; DRAWTEXT(距离1=波谷距离1 AND XG,L*0.98,' 精准峰谷线'),COLORYELLOW; DRAWICON(距离1=波峰距离1,H*1.01,2);{波峰位置} DRAWICON(距离1=波谷距离1,L*0.985,1);{波谷位置} 精准点:=(ABS(H-波谷值1)<=允许误差 OR ABS(L-波谷值1)<=0.024) {AND 距离<=120}; STICKLINE(精准点,波谷值1,波谷值1,3,1),COLORYELLOW; {画精准谷底线} 波谷值2:= CONST(TROUGH(2,百分比,2)); 波谷值3:= CONST(TROUGH(2,百分比,3)); 波谷值4:= CONST(TROUGH(2,百分比,4)); 波谷距离2:= 1+CONST(TROUGHBARS(2,百分比,2)); 波谷距离3:= 1+CONST(TROUGHBARS(2,百分比,3)); 波谷距离4:= 1+CONST(TROUGHBARS(2,百分比,4)); XG2:= ABS(波谷值1-波谷值2)<=允许误差; XG3:= ABS(波谷值1-波谷值3)<=允许误差; XG4:= ABS(波谷值1-波谷值4)<=允许误差; XGL:=(距离1=波谷距离2 AND XG2) OR (距离1=波谷距离3 ANDXG3)   OR (距离1=波谷距离4 ANDXG4); DRAWLINE(XGL,波谷值1,距离1=1,波谷值1,1),COLORLIGREEN; DRAWTEXT(XGL,L*0.98,' 精准谷底线'),COLORWHITE;

我爱涨板 发表于 2016-10-7 16:30

N1:=100;
N2:=3;
N3:=0;
N4:=1;
N5:=1;
N6:=1;
N7:=1;
N8:=1;
N9:=0;
N10:=0;
N11:=0;
N12:=3;
周期:CURRBARSCOUNT,NODRAW,COLORGREEN;
X_1:=REFX(HHV(MAX(OPEN,CLOSE),N1),周期-1);
X_2:=REFX(LLV(LOW,N1),周期-1);
X_3:=CLOSE/REF(CLOSE,1)<=1-N2/100 AND OPEN>CLOSE AND DATE<=1151101;
均五:IF(N9>0,MA(CLOSE,5),DRAWNULL),COLORWHITE;
均十:IF(N10>0,MA(CLOSE,10),DRAWNULL),COLORYELLOW;
均二十:IF(N11>0,MA(CLOSE,20),DRAWNULL),COLORMAGENTA;
X_4:=IF(N12=1,0.5,IF(N12=2,1,IF(N12=3,(-1),IF(N12=4,3,4))));
X_5:=0;
X_6:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1)),周期-1);
X_7:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_6)),周期-1);
X_8:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_7)),周期-1);
X_9:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_8)),周期-1);
X_10:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_9)),周期-1);
X_11:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_10)),周期-1);
X_12:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_11)),周期-1);
X_13:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_12)),周期-1);
X_14:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_13)),周期-1);
X_15:=REFX(BARSLAST(X_3 AND OPEN<X_1),周期-1)+1;
X_16:=REFX(BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_6),周期-1)+1;
X_17:=REFX(BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_7),周期-1)+1;
X_18:=REFX(BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_8),周期-1)+1;
X_19:=REFX(BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_9),周期-1)+1;
X_20:=REFX(BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_10),周期-1)+1;
X_21:=REFX(BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_11),周期-1)+1;
X_22:=REFX(BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_12),周期-1)+1;
X_23:=REFX(BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_13),周期-1)+1;
X_24:=IF(N3=1,1,COUNT(MAX(OPEN,CLOSE)>X_6,X_15-周期)=0);
X_25:=IF(N3=1,1,COUNT(MAX(OPEN,CLOSE)>X_7,X_16-周期)=0);
X_26:=IF(N3=1,1,COUNT(MAX(OPEN,CLOSE)>X_8,X_17-周期)=0);
X_27:=IF(N3=1,1,COUNT(MAX(OPEN,CLOSE)>X_9,X_18-周期)=0);
X_28:=IF(N3=1,1,COUNT(MAX(OPEN,CLOSE)>X_10,X_19-周期)=0);
X_29:=IF(N3=1,1,COUNT(MAX(OPEN,CLOSE)>X_11,X_20-周期)=0);
X_30:=IF(N3=1,1,COUNT(MAX(OPEN,CLOSE)>X_12,X_21-周期)=0);
X_31:=IF(N3=1,1,COUNT(MAX(OPEN,CLOSE)>X_13,X_22-周期)=0);
X_32:=IF(N3=1,1,COUNT(MAX(OPEN,CLOSE)>X_14,X_23-周期)=0);
STICKLINE(周期<X_15 AND X_24,X_6,X_6,X_4,X_5),COLORLIGREEN;
STICKLINE(周期<X_16 AND X_25,X_7,X_7,X_4,X_5),COLORLIBLUE;
STICKLINE(周期<X_17 AND X_26,X_8,X_8,X_4,X_5),COLORLIGREEN;
STICKLINE(周期<X_18 AND X_27,X_9,X_9,X_4,X_5),COLORLIBLUE;
STICKLINE(周期<X_19 AND X_28,X_10,X_10,X_4,X_5),COLORLIGREEN;
STICKLINE(周期<X_20 AND X_29,X_11,X_11,X_4,X_5),COLORLIBLUE;
STICKLINE(周期<X_21 AND X_30,X_12,X_12,X_4,X_5),COLORLIGREEN;
STICKLINE(周期<X_22 AND X_31,X_13,X_13,X_4,X_5),COLORLIBLUE;
STICKLINE(周期<X_23 AND X_32,X_14,X_14,X_4,X_5),COLORLIGREEN;
DRAWTEXT(ISLASTBAR,X_6,VAR2STR(X_6,2)),COLORLIRED;
DRAWTEXT(ISLASTBAR,X_7,VAR2STR(X_7,2)),COLORLIRED;
DRAWTEXT(ISLASTBAR,X_8,VAR2STR(X_8,2)),COLORLIRED;
DRAWTEXT(ISLASTBAR,X_9,VAR2STR(X_9,2)),COLORLIRED;
DRAWTEXT(ISLASTBAR,X_10,VAR2STR(X_10,2)),COLORLIRED;
DRAWTEXT(ISLASTBAR,X_11,VAR2STR(X_11,2)),COLORLIRED;
DRAWTEXT(ISLASTBAR,X_12,VAR2STR(X_12,2)),COLORLIRED;
DRAWTEXT(ISLASTBAR,X_13,VAR2STR(X_13,2)),COLORLIRED;
DRAWTEXT(ISLASTBAR,X_14,VAR2STR(X_14,2)),COLORLIRED;
X_33:=LOW*0.98;
A:IF(N4>0 AND X_6=OPEN AND X_3,X_33,DRAWNULL),STICK,COLORLIGREEN;
B:IF(N4>0 AND X_7=OPEN AND X_3,X_33,DRAWNULL),STICK,COLORLIBLUE;
D:IF(N4>0 AND X_8=OPEN AND X_3,X_33,DRAWNULL),STICK,COLORLIGREEN;
E:IF(N4>0 AND X_9=OPEN AND X_3,X_33,DRAWNULL),STICK,COLORLIBLUE;
F:IF(N4>0 AND X_10=OPEN AND X_3,X_33,DRAWNULL),STICK,COLORLIGREEN;
G:IF(N4>0 AND X_11=OPEN AND X_3,X_33,DRAWNULL),STICK,COLORLIBLUE;
I:IF(N4>0 AND X_12=OPEN AND X_3,X_33,DRAWNULL),STICK,COLORLIGREEN;
J:IF(N4>0 AND X_13=OPEN AND X_3,X_33,DRAWNULL),STICK,COLORLIBLUE;
K:IF(N4>0 AND X_14=OPEN AND X_3,X_33,DRAWNULL),STICK,COLORLIGREEN;
DRAWTEXT(N6>0 AND REFX(X_6=OPEN AND X_3,1),X_2,VAR2STR(X_16-X_15,0)),COLORCYAN,LINETHICK9;
DRAWTEXT(N6>0 AND REFX(X_7=OPEN AND X_3,1),X_2,VAR2STR(X_17-X_16,0)),COLORGREEN,LINETHICK9;
DRAWTEXT(N6>0 AND REFX(X_8=OPEN AND X_3,1),X_2,VAR2STR(X_18-X_17,0)),COLORCYAN,LINETHICK9;
DRAWTEXT(N6>0 AND REFX(X_9=OPEN AND X_3,1),X_2,VAR2STR(X_19-X_18,0)),COLORGREEN,LINETHICK9;
DRAWTEXT(N6>0 AND REFX(X_10=OPEN AND X_3,1),X_2,VAR2STR(X_20-X_19,0)),COLORCYAN,LINETHICK9;
DRAWTEXT(N6>0 AND REFX(X_11=OPEN AND X_3,1),X_2,VAR2STR(X_21-X_20,0)),COLORGREEN,LINETHICK9;
DRAWTEXT(N6>0 AND REFX(X_12=OPEN AND X_3,1),X_2,VAR2STR(X_22-X_21,0)),COLORCYAN,LINETHICK9;
DRAWTEXT(N6>0 AND REFX(X_13=OPEN AND X_3,1),X_2,VAR2STR(X_23-X_22,0)),COLORGREEN,LINETHICK9;
X_34:=CLOSE/REF(CLOSE,1)>=1.099 AND CLOSE=HIGH;
STICKLINE(N7>0 AND X_34,OPEN,CLOSE,(-1),0),COLORMAGENTA;
X_35:=CLOSE/REF(CLOSE,1)<=0.9 AND LOW=CLOSE;
STICKLINE(N5>0 AND X_35,OPEN,CLOSE*1.009,(-1),0),COLORLIBLUE;
DRAWTEXT(N8>0 AND X_3 AND OPEN=X_6,HIGH,VAR2STR(周期,0)),COLORGREEN,LINETHICK9;
DRAWTEXT(N8>0 AND X_3 AND OPEN=X_7,HIGH,VAR2STR(周期,0)),COLORCYAN,LINETHICK9;
DRAWTEXT(N8>0 AND X_3 AND OPEN=X_8,HIGH,VAR2STR(周期,0)),COLORGREEN,LINETHICK9;
DRAWTEXT(N8>0 AND X_3 AND OPEN=X_9,HIGH,VAR2STR(周期,0)),COLORCYAN,LINETHICK9;
DRAWTEXT(N8>0 AND X_3 AND OPEN=X_10,HIGH,VAR2STR(周期,0)),COLORGREEN,LINETHICK9;
DRAWTEXT(N8>0 AND X_3 AND OPEN=X_11,HIGH,VAR2STR(周期,0)),COLORCYAN,LINETHICK9;
DRAWTEXT(N8>0 AND X_3 AND OPEN=X_12,HIGH,VAR2STR(周期,0)),COLORGREEN,LINETHICK9;
DRAWTEXT(N8>0 AND X_3 AND OPEN=X_13,HIGH,VAR2STR(周期,0)),COLORCYAN,LINETHICK9;
DRAWTEXT(N8>0 AND X_3 AND OPEN=X_14,HIGH,VAR2STR(周期,0)),COLORGREEN,LINETHICK9;
DRAWTEXT(ISLASTBAR,X_2,VAR2STR(X_15,0)),COLORGREEN,LINETHICK9;
STICKLINE(周期<X_23,X_2,X_2,X_4,X_5),COLORLIGREEN;

cgztjh 发表于 2016-6-5 07:55


地心引力线:(MA(C,30)+MA(C,72))/2,POINTDOT,COLORYELLOW;
引力区上轨:地心引力线*1.1,POINTDOT,COLORCYAN;
引力区下轨:地心引力线*0.9,POINTDOT,COLORBLUE;
X1:=HHV(H,3);
X2:=LLV(L,3);
XX:=(X1+X2)/2;
XC:=C;
XH:=H;
XL:=L;
LYA1:=IF (XH>REF(X1,1) AND XC>REF(XC,1),X2,IF (XL<REF(X2,1) AND XC<REF(XC,1),
X1,DRAWNULL));
LYA:=IF(LYA1=DRAWNULL,REF(LYA1,1),LYA1);
SNX2:=IF(LYA<H AND LYA>L,REF(LYA,1),LYA);
BB:=PLOYLINE(C>0,SNX2),COLORGREEN,LINETHICK1;
多空平衡: EMA(EMA(EMA(HIGH,7.23379625),7.23379625),1),COLORRED,LINETHICK1;
强势回挡: 多空平衡*0.9276620375,COLORGREEN,LINETHICK1;
弱势反弹: 多空平衡*0.868055,COLORD89837,LINETHICK1; {0.9}
最低安全:多空平衡*0.8263889,COLORGRAY,LINETHICK1;
高位止赢: 多空平衡*1.12170138,COLOR0089BB,LINETHICK1;
获利了结: 多空平衡*1.0723379625,COLORWHITE,LINETHICK1;
超涨出货: 多空平衡*1.1694444444,COLORWHITE,LINETHICK1;
BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100 ;
STICKLINE(BIAS2<-6,H,L,0,0),COLORGREEN;
STICKLINE(BIAS2<-6,C,O,1,1),COLORGREEN;
DRAWTEXT(ISLASTBAR,多空平衡,'平衡1.00'),COLORFFCC18;
DRAWTEXT(ISLASTBAR,强势回挡,'回挡0.93'),COLORFF18FF;
DRAWTEXT(ISLASTBAR,弱势反弹,'反弹0.87'),COLOR18FF18;
DRAWTEXT(ISLASTBAR,最低安全,'安全0.83'),COLOR18CCFF;
DRAWTEXT(ISLASTBAR,高位止赢,'止赢1.12'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,获利了结,'获利1.07'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,超涨出货,'超涨1.17'),COLORFFFFFF;
{红}
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,3.1,0 ),COLOR000033;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,2.7,0 ),COLOR000066;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,2.1,0 ),COLOR000099;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1.5,0 ),COLOR0000CC;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,0.9,0 ),COLOR0000FF;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,0.3,0 ),COLORCC66FF;
{蓝}
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3.1,0 ),COLOR990000;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2.7,0 ),COLORCC0000;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2.1,0 ),COLORFF4400;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,1.5,0 ),COLORFF8800;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.9,0 ),COLORFFCC00;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.3,0 ),COLORCYAN;
DIR1:=ABS(CLOSE-REF(CLOSE,5));
VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);
ER1:=DIR1/VIR1;
CS1:=ER1*(0.8-2/8)+2/8;
CQ1:=CS1*CS1;
AMA1:=EMA(DMA(CLOSE,CQ1),2) ,COLORWHITE;
DIR2:=ABS(CLOSE-REF(CLOSE,10));
VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);
ER2:=DIR2/VIR2
AMA2:EMA(DMA(CLOSE,CQ2),2),COLORGREEN,LINETHICK3;
AMA3:IF(AMA2/REF(AMA2,1)>0.997,AMA2,DRAWNULL),COLORBLUE,LINETHICK3;
AMA4:IF(AMA2/REF(AMA2,1)>1.001,AMA2,DRAWNULL),COLORRED,LINETHICK3;

qibuo 发表于 2015-10-9 12:02

#在这里快速回复#以下是我最近写的选股公式,欢迎观看建议.

970917 发表于 2015-10-9 12:03

谢谢分享{:soso_e160:}

幽幽谷 发表于 2015-10-9 12:09

谢谢分享{:soso_e183:}

lzh9182005 发表于 2015-10-9 12:10

katoda 发表于 2015-10-9 12:16

谢谢你的分享

理想丰华 发表于 2015-10-9 12:17

感谢楼主分享精彩观点

dnadin 发表于 2015-10-9 12:19

谢谢楼主分享

gian.liu 发表于 2015-10-9 12:21

中国股市将进入“独特复苏阶段”

血色筹码 发表于 2015-10-9 12:21

谢谢你的分享

抓住涨停 发表于 2015-10-9 12:49

8888888888888888888888888888888888888888

刘学量 发表于 2015-10-9 13:00

向高手学习!

ru0769 发表于 2015-10-9 14:31

学习学习。

ru0769 发表于 2015-10-9 14:34

学习学习。

人马座 发表于 2015-10-9 17:27

详细分析好好学习
页: [1] 2 3 4 5 6 7 8 9 10
查看完整版本: 四维看盘主图公式立体看盘应用之一