找回密码
 立即注册

QQ登录

只需一步,快速开始

广告载入中...
查看: 1280|回复: 20

我自已用了好多年的公式。

[复制链接]
发表于 2017-9-8 10:21 | 显示全部楼层 |阅读模式

马上注册,享用更多功能,让你轻松玩转本论坛。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
         这公式虽然是拼接出来的,但我觉得用起来还不错!望各位大侠指教!
         公式:


现价RAWLINE(CURRBARSCOUNT=TOTALBARSCOUNT,CONST(C),
     CURRBARSCOUNT=1,C,3)DOTLINE,COLORFF7F00;


MAA05:=MA(C,05),COLORGREEN  ,  LINETHICK1;
MAA24: MA(C,24),COLOR0000FF ,  LINETHICK1;
KS:IF(MAA05>MAA24,MAA05,MAA24),COLORGREEN;




倍量:VOL>=REF(V,1)*1.9 AND C>=O,NODRAW;
DRAWTEXT(倍量,LOW*0.99,''),COLORGREEN;
STICKLINE(倍量,OPEN,CLOSE,2,0),COLORYELLOW;
K1:=SUMBARS(倍量,1);
STICKLINE(K1,REF(C,K1-1),REF(C,K1-1),10,0),COLORFF7F00;
价涨不破:=LLV(L,3)>=REF(L,3);
三日量缩:=HHV(VOL,3)<REF(VOL,3);
倍量柱:=C/REF(C,1)>=1.03 AND VOL>=REF(VOL,1)*1.90;
梯量柱:=VOL>REF(VOL,1) AND REF(VOL,1)>REF(VOL,2);
梯黄金柱:=REF(梯量柱,3) AND 价涨不破 AND 三日量缩;
STICKLINE(梯量柱,OPEN,CLOSE,0.003,0),COLORLIRED;
STICKLINE(梯黄金柱,LLV(L,3),LLV(L,3),30,1),COLORGREEN;



均价:AMOUNT/VOL/100,NODRAW;
假阴:=O>C AND 均价>REF(C,1);
DRAWTEXT(假阴,L-0.2,''),COLORMAGENTA;
STICKLINE(假阴,O,C,0.0001,0),COLORRED;


阳涨幅:=3.5; 阳倍量:=1.9;单阳收:=C;单阳开:=O;
单阳:=单阳收>=REF(C,1)*(1+阳涨幅/100)AND VOL>REF(VOL,1)*阳倍量;
DRAWTEXT(CURRBARSCOUNT<100 AND 单阳,L*0.98,''),COLOR00FFFF;
高不破价:=REF(C,BARSLAST(单阳));
低不破价:=REF(L,BARSLAST(单阳));
单阳不破:=CURRBARSCOUNT<100 AND BARSLAST(单阳)<11 AND (LLV(L,BARSLAST(单阳))>低不破价 OR LLV(L,BARSLAST(单阳))=低不破价);
STICKLINE(单阳不破,高不破价,高不破价,0,0),COLORMAGENTA;  
STICKLINE(单阳,单阳开,单阳收,0.3,0),COLORRED;


长阴:=C<O*0.952;
二分之一MAX(C,O)+MIN(C,O))/2,NODRAW;
三分之二MAX(C,O)-MIN(C,O))/3*2+MIN(C,O)NODRAW;
三分之一MAX(C,O)-MIN(C,O))/3+MIN(C,O)NODRAW;
STICKLINE(长阴,C,二分之一,0.001,0),COLORBLUE;
STICKLINE(长阴,(C+O)/2,(C+O)/2,0.3,0),COLORBLUE;


STICKLINE(C/REF(C,1)>=1.04 OR C/REF(C,1)<=0.96,(C+O)/2,(C+O)/2,2,1),COLORLIBLUE;{中分线};
STICKLINE(C/REF(C,1)>=1.04 OR C/REF(C,1)<=0.96,(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),2,1),COLORLIBLUE;{上三一线};
STICKLINE(C/REF(C,1)>=1.04 OR C/REF(C,1)<=0.96,(MAX(O,C)-MIN(O,C))/3+MIN(O,C),(MAX(O,C)-MIN(O,C))/3+MIN(O,C),2,1),COLORLIBLUE;{下三一线};




XX_151:=3;
XX_152:=0;
XX_153:=ABS(LOW-REF(LOW,1))<=XX_152;
XX_154:=ABS(LOW-REF(LOW,2))<=XX_152;
XX_155:=ABS(LOW-REF(LOW,3))<=XX_152;
XX_156:=ABS(LOW-REF(LOW,4))<=XX_152;
XX_157:=ABS(LOW-REF(LOW,5))<=XX_152;
XX_158:=XX_153 OR XX_154 OR XX_155 OR XX_156 OR XX_157;
XX_159:=FILTER(XX_158,XX_151);
XX_160:=BARSLAST(XX_159);
XX_161:=REF(LOW,XX_160);
XX_162:=ABS(LOW-XX_161)<=XX_152;
STICKLINE(XX_159,LOW,LOW,31,(-1)),COLORMAGENTA;
XX_163:=ABS(HIGH-REF(HIGH,1))<=XX_152;
XX_164:=ABS(HIGH-REF(HIGH,2))<=XX_152;
XX_165:=ABS(HIGH-REF(HIGH,3))<=XX_152;
XX_166:=ABS(HIGH-REF(HIGH,4))<=XX_152;
XX_167:=ABS(HIGH-REF(HIGH,5))<=XX_152;
XX_168:=XX_163 OR XX_164 OR XX_165 OR XX_166 OR XX_167;
XX_169:=FILTER(XX_168,XX_151);
XX_170:=BARSLAST(XX_169);
XX_171:=REF(HIGH,XX_170);
XX_172:=ABS(HIGH-XX_171)<=XX_152;
STICKLINE(XX_169,HIGH,HIGH,31,(-1)),COLORGREEN;


长阴短柱:=C/REF(C,1)<=0.96 AND V<HHV(V,30)/1.9;
DRAWTEXT(长阴短柱,O,'-------------------------------
----------------------------------------------------
--------------------------------------'),COLOR7FFF00;
STICKLINE(C/REF(C,1)>1.091,C,O,2,0),COLORFF1CAE;



VAR35:=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);{大资金活动有未来}
大资金买进A选:{有未来}DRAWTEXT(VAR35 AND COUNT(VAR35,30)=1,LOW*0.98,'◆A'),LINETHICK1,COLORFF00FF;
VAR36:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));
VAR37:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) - LLV(LOW,5))),34));
AABB:=IF(CROSS(VAR36,MA(VAR37,5)),LOW * 0.98,DRAWNULL),CROSSDOT,LINETHICK3,COLOREE00EE;
大资金买进B选:{无未来+有未来}DRAWTEXT((CROSS(VAR36,MA(VAR37,5)) AND (VAR35 AND COUNT(VAR35,30)=1)),L*0.96,'◆B');

多头线:EMA(C,1.5),COLOR0000CC,LINETHICK0;
空头线:EMA(C,5),COLORMAGENTA,LINETHICK0;
均衡线:EMA(空头线,5),COLORGREEN,LINETHICK0;
VARF1:=COUNT(CROSS(多头线,均衡线),2)=1;
VARF2:=COUNT(CROSS(空头线,均衡线),2)=1;
ZAI:=FILTER(VARF1 AND VARF2,2);
DRAWTEXT(ZAI,均衡线*0.98,'★'),COLOR00FF00;



发表于 2017-10-31 11:21 | 显示全部楼层
现价RAWLINE(CURRBARSCOUNT=TOTALBARSCOUNT,CONST(C),CURRBARSCOUNT=1,C,3)DOTLINE,COLOR545454;
VARR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));  

DRAWKLINE(H,O,L,C);
TJ:=VOL>=REF(V,1)*1.95 AND C>REF(C,1)*1.01;
STICKLINE(TJ,OPEN,CLOSE,1.5,0),COLORYELLOW;
倍量:VOL>=REF(V,1)*1.9 AND C>=O,NODRAW;
DRAWTEXT(倍量,LOW*0.99,''),COLORYELLOW;
STICKLINE(倍量,OPEN,CLOSE,0.5,0),COLORYELLOW;
K1:=SUMBARS(倍量,1);
STICKLINE(K1,REF(O,K1-1),REF(O,K1-1),10,0),COLORYELLOW;
STICKLINE(K1,REF(C,K1-1),REF(C,K1-1),10,0),COLORYELLOW;
价涨不破:=LLV(L,3)>=REF(L,3);
三日量缩:=HHV(VOL,3)<REF(VOL,3);
梯量柱:=VOL>REF(VOL,1) AND REF(VOL,1)>REF(VOL,2);
梯黄金柱:=REF(梯量柱,3) AND 价涨不破 AND 三日量缩;
STICKLINE(梯量柱,OPEN,CLOSE,0.7,0),COLORLIRED;
STICKLINE(梯黄金柱,LLV(L,3),LLV(L,3),30,1),COLORD9D919;
缩倍柱:=REF(V,1)>=V*1.9 AND C/REF(C,1)>1.005;
STICKLINE(缩倍柱,C,O,0.5,0),COLORGREEN;
缩倍柱1:=REF(V,1)>=V*1.9 AND C/REF(C,1)<=1;
STICKLINE(缩倍柱1,C,O,0.5,0),COLORGREEN;
高量柱:=C/REF(C,1)>=1.03 AND VOL=HHV(VOL,35);
STICKLINE(高量柱,OPEN,CLOSE,0.7,0),COLORRED;

VAR2:=1*AMOUNT;
月天量:=VAR2=HHV(VAR2,20);
季天量:=VAR2=HHV(VAR2,60);
百天量:=VAR2=HHV(VAR2,100);
年天量:=VAR2=HHV(VAR2,240);
天量: (季天量 OR 百天量 OR 年天量),NODRAW;
DRAWTEXT(天量,LOW*0.95,''),COLORRED;
STICKLINE(天量,OPEN,CLOSE,0.5,0),COLORRED;
K11:=SUMBARS(天量,1);
STICKLINE(K11,REF(C,K11-1),REF(C,K11-1),10,0),COLORRED;

双阴出货:=FILTER(COUNT(C<O,2)=2 AND L<REF(C,1),5);
DRAWTEXT(双阴出货,H,'!'),COLORGREEN;

A:=ABS(MIN(C,O)-L)/ABS(MAX(C,O)-MIN(C,O))>1.7 AND C>O;
B:=ABS(MIN(C,O)-L)/ABS(MAX(C,O)-MIN(C,O))>1.7 AND C<O;
STICKLINE(A,OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(B,OPEN,CLOSE,3,0),COLOR00FF00;

STICKLINE(CLOSE>OPEN,(CLOSE+OPEN)/2,(CLOSE+OPEN)/2,2,1),COLORRED;
昨中价位:REF(OPEN,1)+REF(CLOSE,1)/2,COLORYELLOW,NODRAW;
上三分之一位: (MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),NODRAW;
下三分之一位: (MAX(O,C)-MIN(O,C))/3+MIN(O,C),NODRAW;

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 MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;
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)),COLORD9D919,POINTDOT;
STICKLINE(C,前期高位,前期高位,8,0),COLORD9D919;
{高点:=(C/REF(C,BARSLAST(HD))-1)*100,NODRAW;
STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;};
前期低位:REF(LOW,BARSLAST(LD)),COLORFF00FF,POINTDOT;
STICKLINE(CLOSE,前期高位,前期高位,10,0),COLORGREEN;
STICKLINE(CLOSE,前期低位,前期低位,10,0),COLORGREEN;

顶:=MAX(C,O);底:=MIN(C,O);
峰:=顶=REFX(HHV(顶,5),2);
谷:=底=REFX(LLV(底,5),2);
超跌:=C/HHV(顶,20)<0.7;
刹车:=谷 AND 超跌;
DRAWTEXT(刹车,2*L-顶,'刹车'),COLORFF00FF;
凹间峰:=COUNT(刹车,8)>0 AND 峰;
DRAWTEXT(凹间峰,2*H-底,''),COLORFF00FF;
凹间峰顶:=REF(顶,BARSLAST(凹间峰));
换档:=COUNT(凹间峰,8)>0 AND 谷;
DRAWTEXT(换档,2*L-H,'换档'),COLORGREEN;
上车:=COUNT(换档,8)>0 AND COUNT(C>凹间峰顶,BARSLAST(凹间峰))=1;
DRAWTEXT(上车,凹间峰顶,'←←←上车'),COLORFF00FF;
DRAWNUMBER(COUNT(凹间峰,2)=1 AND COUNT(凹间峰,1)=0,凹间峰顶,凹间峰顶),COLORBLUE;
DRAWTEXT(C<凹间峰顶 AND COUNT(C>凹间峰顶,BARSLAST(凹间峰))<1,凹间峰顶,''),COLORGREEN;

买线:=EMA(C,4);
卖线:=EMA(SLOPE(C,20)*10+C,35);
DRAWTEXT(CROSS(买线,卖线),LOW*1.00,'←买'),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(卖线,买线),HIGH*1.01,''),COLORGREEN;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(90,RSI) , HIGH*1.01,''),COLOR00FF00 ;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+
      13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7
      *REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
主力成本:EMA(X,13),COLORFF00FF,LINETHICK0;
ZZ:=(O+H+L)/3;
YC:=(H+L)/2;
YCHJX:=(EMA(ZZ,4))+(YC-REF(ZZ,3))/4;
今日买点:EMA(ZZ,3),COLORYELLOW,LINETHICK0;
明日买点:YCHJX,LINETHICK0;
昨测今日买点:REF(YCHJX,1),LINETHICK0;
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(MA15,FF),(HIGH * 1.02),''),COLOR00FF00;
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'←拐点买'),COLOR00FFFF;
回复

使用道具 举报

发表于 2017-9-10 09:37 | 显示全部楼层
再发一个高成功的指标,阳包阴不破
回复

使用道具 举报

发表于 2017-9-10 08:52 | 显示全部楼层
111111111111111111111111
回复

使用道具 举报

发表于 2017-9-8 10:57 | 显示全部楼层
谢谢分享!
回复

使用道具 举报

发表于 2017-9-8 12:53 | 显示全部楼层
谢谢楼主的分享!
回复

使用道具 举报

发表于 2017-9-8 15:30 | 显示全部楼层
谢谢楼主分享
回复

使用道具 举报

发表于 2017-9-10 00:13 | 显示全部楼层
谢谢楼主的分享!
回复

使用道具 举报

发表于 2017-9-10 09:38 | 显示全部楼层
什么版本用?
回复

使用道具 举报

头像被屏蔽
发表于 2017-9-18 14:00 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

头像被屏蔽
发表于 2017-10-1 01:00 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

头像被屏蔽
发表于 2017-10-1 01:14 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

头像被屏蔽
发表于 2017-10-20 01:00 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

发表于 2017-10-22 19:51 | 显示全部楼层

谢谢楼主的分享!
回复

使用道具 举报

发表于 2017-10-31 11:24 | 显示全部楼层
谢谢楼主分享。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|股海明灯官网 ( 京ICP备18020431号 )

GMT+8, 2024-11-27 03:52 , Processed in 0.109248 second(s), Total 13, Slave 13 queries , Gzip On, MemCached On.

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表