长期均线主图 DRAWGBK(CURRBARSCOUNT=1 , RGB(0,0,0),RGB(0,0,0),0,'1',0);
DRAWGBK(ISLASTBAR, RGB(2,0,0),RGB(100,100,100),0,'0',0),LINETHICK2;
{题材数据 }
DRAWTEXT_FIX(ISLASTBAR,0,0,0,CODE),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,STKNAME),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.2,0,0,HYBLOCK),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.3,0,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.4,0,0,GNBLOCK),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0,0.1,0,FGBLOCK),COLORWHITE;
CHD1:EMA(CLOSE,17),DOTLINE,COLOR6600FF;
CHD2:EMA(CLOSE,102),COLORDB70DB,DOTLINE;
CND3:EMA (CLOSE,255),COLORYELLOW,DOTLINE;
AAX:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30);
JAXX:=DMA(CLOSE,AAX);
压力线1:=(1+9/100)*JAXX,COLORYELLOW,LINETHICK2;
AE1:=REF(C,12)=HHV(C,2*12+1); BE1:=FILTER(AE1,12); CE1:=BACKSET(BE1,12+1); HDE:=FILTER(CE1,12);
A2:=REF(C,12)=LLV(C,2*12+1); BE2:=FILTER(A2,12); CE2:=BACKSET(BE2,12+1); LD:=FILTER(CE2,12);
UUE:=BACKSET(BARSTATUS=2,BARSLAST(HDE)+1);
VVA:=UUE>REF(UUE,1);
前期高位:=REF(C,BARSLAST(HDE));
前期低位:=REF(C,BARSLAST(LD));
STICKLINE(H AND 0.=1,前期高位,前期高位,5,0),COLORYELLOW;
STICKLINE(L AND 0.=1,前期低位,前期低位,5,0),COLORGRAY;
STICKLINE(CROSS(C,REF(前期高位,1)) AND (VOL>=REF(V,1)*2 OR VOL>=REF(V,2)*2),H,L,0,0),COLOR33FFDD;
STICKLINE(CROSS(C,REF(前期高位,1)) AND (VOL>=REF(V,1)*2 OR VOL>=REF(V,2)*2),C,O,3,0),COLOR33CFDD;
STICKLINE(CROSS(C,REF(前期高位,1)) AND (VOL>=REF(V,1)*2 OR VOL>=REF(V,2)*2),C,O,2.5,0),COLOR33DFDD;
STICKLINE(CROSS(C,REF(前期高位,1)) AND (VOL>=REF(V,1)*2 OR VOL>=REF(V,2)*2),C,O,2,0),COLOR33EFDD;
STICKLINE(CROSS(C,REF(前期高位,1)) AND (VOL>=REF(V,1)*2 OR VOL>=REF(V,2)*2),C,O,1,0),COLOR33FFDD;
前高:REF(C,BARSLAST(VVA)),COLORWHITE,LINETHICK3;
顶高:REF(C,BARSLAST(VVA))*1.20,COLORLIGREEN,LINETHICK2;
AA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30);
JAX:=DMA(CLOSE,AA);
压力线:=(1+9/100)*JAX,DOTLINE,COLOR6600FF;
支撑线:=(1-9/100)*JAX,DOTLINE,COLORLIGREEN;
{跳空}
STICKLINE(REF(L,1)>H,H,REF(L,1),5,0),COLORGRAY;
STICKLINE(REF(H,1)<L,L,REF(H,1),5,0),COLORGRAY;
DRAWKLINE(H,O,L,C);
O1:=(SUM(EMA((CLOSE+LOW)/2,1)/3,3)),COLORWHITE,DOTLINE;
多头强势线:=(MA(CLOSE,4)+MA(CLOSE,7)+MA(CLOSE,13))/3,COLORWHITE,LINETHICK1;
强势线:=LLV(多头强势线,8),LINETHICK2,COLORLIBLUE;
DRAWICON(CROSS(O1,强势线),强势线-0.05,1);
DRAWTEXT(CROSS(O1,强势线),强势线*0.986,'↖主力');
DRAWTEXT(CROSS(CLOSE,强势线),强势线*0.956,'买★'),COLORYELLOW;
JJ:=(CLOSE+HIGH+LOW)/3;
A1:EMA(JJ,5),COLORYELLOW,LINETHICK2;
BB1:REF(A1,1),LINETHICK2,COLORWHITE;
XG:=CROSS(A1,BB1);
DRAWTEXT( XG,BB1*0.94,'↖买进'),COLORDB70DB;
DRAWICON( XG,BB1*0.96,1);
EXP120:=EMA(CLOSE,120);
EXP250:=EMA(CLOSE,250);
EXP400:=EMA(CLOSE,400);
N:=2;
A19:=(C - O) / REF(C,1) * 100;
A20:=REF(H,N) = HHV(H,2 * N + 1);
A21:=FILTER(A20,N);
A22:=BACKSET(A21,N + 1);
A23:=FILTER(A22,N);
A24:=REF(L,N) = LLV(L,2 * N + 1);
A25:=FILTER(A24,N);
A26:=BACKSET(A25,N + 1);
A27:=FILTER(A26,N);
A28:=(REF(LLV(L,2 * N),1) + REF(HHV(H,2 * N),1)) / 2;
A29:=(H + L) / 2;
A30:=(A23 AND NOT(A27 AND A28 >= A29)) OR ISLASTBAR OR BARSCOUNT(C) = 1;
A31:=A27 AND NOT(A23 AND A28 < A29);
A32:=REF(BARSLAST(A30),1) + 1;
A33:=BACKSET(A30 AND COUNT(A31,A32) > 0,LLVBARS(IF(A31,L,10000),A32));
A34:=A33 > REF(A33,1);
A35:=BACKSET(A34,2);
A36:=A35 > REF(A35,1);
A37:=A36 OR ISLASTBAR OR BARSCOUNT(C) = 1;
A38:=REF(BARSLAST(A37),1) + 1;
A39:=BACKSET(A37 AND COUNT(A23 AND NOT(A27 AND A28 >= A29),A38) > 0,HHVBARS(IF(A23 AND NOT(A27 AND A28 >= A29),H,0),A38));
A40:=A39 > REF(A39,1);
A41:=BACKSET(A40,2);
A42:=A41 > REF(A41,1);
A43:=BACKSET(ISLASTBAR,BARSLAST(A42) + 1);
A44:=A43 > REF(A43,1);
A45:=BACKSET(A44,REF(BARSLAST(A42),1) + 2);
A46:=A45 > REF(A45,1);
短期压力:DRAWLINE(A46,H,A44,H,1),LINETHICK2,COLORYELLOW;
AA1:=REF(C,10)=HHV(C,2*10+1);
BA1:=FILTER(AA1,10);
C1:=BACKSET(BA1,10+1);
HD:=FILTER(C1,10);
近期压力:REF(C,BARSLAST(HD)),COLORYELLOW NODRAW;
AS1:=REF(C,60)=HHV(C,2*60+1);
AS2:=FILTER(AS1,60);
AS3:=BACKSET(AS2,60+1);
AS4:=FILTER(AS3,60);
STICKLINE(C,近期压力,近期压力,10,0),COLOR6600FF ;
DRAWTEXT(ISLASTBAR,近期压力,' 近压力线');
{Y1:(SUM(EMA((CLOSE+LOW)/2,1)/3,3));
{IF(CLOSE>Y1,Y1,DRAWNULL),COLOR6600FF,LINETHICK2;
IF(CLOSE<Y1,Y1,DRAWNULL),COLORLIGREEN,LINETHICK2;}
A01:=REF(HIGH,3)=HHV(HIGH,2*3+1);
B1:=FILTER(A01,3);
C01:=BACKSET(B1,3+1);
D01:=FILTER(C01,3);{高点}
A02:=REF(LOW,3)=LLV(LOW,2*3+1);
B2:=FILTER(A02,3);
C02:=BACKSET(B2,3+1);
D02:=FILTER(C02,3);{低点}
E01:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;
E02:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍}
H01:=(D01 AND NOT(D02 AND E01>=E02)) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
H02:=D01 AND NOT(D02 AND E01>=E02);
L01:=D02 AND NOT(D01 AND E01=E02);
X01:=REF(BARSLAST(H01),1)+1;
F01:=BACKSET(H01 AND COUNT(L01,X01)>0,LLVBARS(IF(L01,LOW,10000),X01));
G01:=F01>REF(F01,1);
I01:=BACKSET(G01,2);
L0D:=I01>REF(I01,1);{过滤后低点}
L02:=L0D OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
X02:=REF(BARSLAST(L02),1)+1;
F02:=BACKSET(L02 AND COUNT(H02,X02)>0,HHVBARS(IF(H02,HIGH,0),X02));
G02:=F02>REF(F02,1);
I02:=BACKSET(G02,2);
HD0:=I02>REF(I02,1);{过滤后高点}
J1:=BACKSET(ISLASTBAR,MIN(BARSLAST(HD0),BARSLAST(L0D))+1);
J2:=J1>REF(J1,1);
A3:=H; B3:=REF(H,REF(BARSLAST(HD0),1)+1)>REF(H,REF(BARSLAST(HD0),1)+2+REF(BARSLAST(HD0),REF(BARSLAST(HD0),1)+2));
D3:=A3 AND B3 AND HD0;
E3:=BACKSET(D3,REF(BARSLAST(HD0),1)+2);
HH:=E3>REF(E3,1);{找出全部长期高点}
A4:=L>REF(L,REF(BARSLAST(L0D),1)+1);
B4:=REF(L,REF(BARSLAST(L0D),1)+1);
D4:=A4 AND B4 AND L0D;
E4:=BACKSET(D4,REF(BARSLAST(L0D),1)+2);
LL:=E4>REF(E4,1);{找出全部长期低点}
{DRAWICON(HH,H*1.01,8);
DRAWICON(LL,L*0.999,7);}
{分析家公式网 WWW.fxjgsw.com}
H3:=HH OR ISLASTBAR OR BARSCOUNT(C)=1; {后面进行过滤,方法同前。只是不用考虑高低点出现在同一K线}
X3:=REF(BARSLAST(H3),1)+1;
F3:=BACKSET(H3 AND COUNT(LL,X3)>0,LLVBARS(IF(LL,L,POW(1 |
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!