2. 进入大智慧------ 特色功能------ 自编指标------ 常用------ 技术指标------ 新建,在出现的指标编辑区的下面的空白处,把刚考的源码粘贴上,将指标名称复制后粘贴到指标名称栏------ 确认------ 退出。
3.如有参数的,如:N 1 100 15之类,则需将这类数据填充到参数表中。
4.指标源码以外的内容,如:名称,说明以及参数等等,凡在{ }以外的,均要删除,或者用{ }将其括上。
5、在大智慧的底部显示栏中点击指标名称即可看到刚刚导入的指标。
二、rar和exp格式指标文件文件的引入方法:
有一兄弟问偶:
大哥,请教个问题,你在指标区发的 金牌黑马(大智慧)我觉得很好,下载了,但是不知道怎么用在大智慧上,我是新手,麻烦你有时间的话,告诉我好吗?谢谢啦
偶是这样答复滴:
复制指标->打开大智慧-> 功能 菜单->自编指标->新建->下面空白处点鼠标右键选 粘贴 ->最上面 指标名称 输入 金牌黑马 ->确认->打开随便一只个股的K线图->输入 jphm 回车(jphm是 金牌黑马 的拼音代码)->你会发现K线图变了->搞定!
上面是指标原码的使用方式,下面说说.EXP格式的使用方法,.EXP是大智慧的指标模块,只有大智慧才能使用,用法如 下:
打开大智慧->功能->自编指标->引入->选择你的EXP文件->全部选中->确定。如果是rar格式的文件,需要解压文件,解压到dzh ind export,然后 打开大智慧->功能->自编指标->引入->选择你的EXP文件->全部选中->确定。
恭喜你,你已经学会了 黑马出生在黎明前》,可验证牛股。*
已经改进,直接拷贝到大智慧中就能用了,
复制内容到剪贴板代码:
LC:=EMA(CLOSE,3);
A:=((SMA(MAX((CLOSE - LC),0),6,1) / SMA(ABS((CLOSE - LC)),6,1)) * 100);
B:=MA(A,10);
QVAR2:=IF(((HIGH + LOW) = (REF(HIGH,1) + REF(LOW,1))),0,MAX(ABS((HIGH - REF(HIGH,1))),ABS((LOW - REF(LOW,1)))));
QVAR3:=IF(((HIGH + LOW) = (REF(HIGH,1) + REF(LOW,1))),0,MAX(ABS((HIGH - REF(HIGH,1))),ABS((LOW - REF(LOW,1)))));
QVAR4:=(SUM(QVAR2,13) / (SUM(QVAR2,13) + SUM(QVAR3,13)));
QVAR5:=(SUM(QVAR3,13) / (SUM(QVAR3,13) + SUM(QVAR2,13)));
QVAR9:=((100 - (3 * SMA((((CLOSE - LLV(LOW,75)) / (HHV(HIGH,75) - LLV(LOW,75))) * 100),20,1))) + (2 * SMA(SMA((((CLOSE - LLV(LOW,75)) / (HHV(HIGH,75) - LLV(LOW,75))) * 100),20,1),15,1)));
QVARA:=((100 - (3 * SMA((((OPEN - LLV(LOW,75)) / (HHV(HIGH,75) - LLV(LOW,75))) * 100),20,1))) + (2 * SMA(SMA((((OPEN - LLV(LOW,75)) / (HHV(HIGH,75) - LLV(LOW,75))) * 100),20,1),15,1)));
QVARB:=(((QVAR9 REF(QVARA,1)) AND (VOL REF(VOL,1))) AND (CLOSE REF(CLOSE,1)));
QVAR1A:=((((HHV(HIGH,21) - CLOSE) / (HHV(HIGH,21) - LLV(LOW,21))) * 100) - 10);
QVAR1B:=(((CLOSE - LLV(LOW,21)) / (HHV(HIGH,21) - LLV(LOW,21))) * 100);
QVAR1C:=SMA(QVAR1B,13,8);
QVAR1D:=SMA(QVAR1A,21,8);
杀机乍现:=SMA(QVAR1C,21,8);
见礼台:((A 15) AND ((杀机乍现 - QVAR1D) (0 - 65)));
关注3:(IF((见礼台 0),40,0) * O),LINETHICK3;
A1:=COST(95);
A2:=COST(5);
天眼通:=(((A1 - A2) * 100) / (A1 + A2));
庄影难逃[DZH]
复制内容到剪贴板代码:
Var2:=REF(LOW,1);
Var3:=SMA(ABS(LOW-Var2),3,1)/SMA(MAX(LOW-Var2,0),3,1)*100;
Var4:=EMA(IF(CLOSE*1.2,Var3*10,Var3/10),3);
Var5:=LLV(LOW,38);
Var6:=HHV(Var4,38);
Var7:=IF(LLV(LOW,90),1,0);
Var8:=EMA(IF(LOW =Var5,(Var4+Var6*2)/2,0),3)/618*Var7;
有庄的影子: STICKLINE(Var8,0,Var8,6,1) , COLORffaaff;
趋势线: (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100 ,COLORaabbdd;
aa:=((ref(趋势线,1) ref(趋势线,2)and 趋势线 -30) and 趋势线 =ref(趋势线,1)) or (ref(cross(-30,趋势线),1) and cross(趋势线,-30)) or 趋势线=-30;
drawtext(aa,500,'砸锅卖田买'),coloryellow;
砸锅卖田买:if(aa,500,-30),coloryellow;
bb:=((ref(趋势线,1) ref(趋势线,2)and 趋势线 -20 and 趋势线 -25) and趋势线 =ref(趋势线,1)) or (ref(cross(-20,趋势线),1) and cross(趋势线,-20));
drawtext(bb,300,'见底信号'),colorred;
见底信号:if(bb,300,-20),colorred;
cc:=((ref(趋势线,1) ref(趋势线,2)and 趋势线 -25 and 趋势线 -30) and 趋势线 =ref(趋势线,1)) or (ref(cross(-25,趋势线),1) and cross(趋势线,-25));
drawtext(cc,400,'莫错失机会'),color00ff00;
莫错失机会:if(cc,400,-25),color00ff00;
底部快显:if(cross(-20,趋势线),100,-20),linethick2,colorf0f000;
drawtext(cross(-20,趋势线),120,'★'),colorf0f000;
机会来临:if(cross(-25,趋势线),150,-25),linethick2,colorf00ff0;
drawtext(cross(-25,趋势线),170,'★'),colorf00ff0;
砸锅卖田等:if(cross(-30,趋势线),200,-30),linethick2,colorwhite;
drawtext(cross(-30,趋势线),220,'★'),colorwhite;
{见底信号:}-20,colorred,pointdot;
{莫要错失机会:}-25,colorlime,pointdot;
{砸锅卖田等着你:}-30,coloryellow,pointdot;
一线定牛熊主图
VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) /
(HHV(HIGH,21) - LLV(LOW,21))));
VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) /
(HHV(HIGH,21) - LLV(LOW,21))));
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) /
(HHV(HIGH,6) - LLV(LOW,6))),34));
DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.97),8);
DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.05),9);
DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.97),'●买'),
colorGreen,linethick1;
DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.05),'▼减仓'),
colorYellow,linethick1;
牛熊线:EMA(MA(CLOSE,3),34),COLORFF00FF,LINETHICK2;
STICKLINE(C =牛熊线 AND C =O,C,O,5,0),COLORRED;
STICKLINE(C =牛熊线 AND C =O,H,L,0,0),COLORRED;
STICKLINE(C =牛熊线 AND C O,C,O,5,1),COLORRED;
STICKLINE(C =牛熊线 AND C O,O,H,0,0),COLORRED;
STICKLINE(C =牛熊线 AND C O,C,L,0,0),COLORRED;
操盘手(主图)
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=cross(买线,卖线);
SEL:=cross(卖线,买线);
drawtext(bu,LOW*0.996,'B'),colorred,linethick3;
drawtext(sel,HIGH*1.028,'S'),colorffff00,linethick3;
stickline(买线 =卖线,low,high,1,0),colorred;
stickline(买线 =卖线,close,open,4.5,0),color0000aa;
stickline(买线 =卖线,close,open,4,0),color0000cc;
stickline(买线 =卖线,close,open,3,0),color0000cc;
stickline(买线 =卖线,close,open,2,0),color0000ee;
stickline(买线 卖线,close,open,4.5,0),coloraaaa00;
stickline(买线 卖线,close,open,4,0),colorbbbb00;
stickline(买线 卖线,close,open,3,0),colorcccc00;
stickline(买线 卖线,close,open,2,0),coloreeee00;
stickline(买线 卖线,low,high,1,0),colorffff00;
stickline(cross(买线,卖线) or cross(卖线,买线),open,close,3,0),color00ffff;
指导线: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),linethick1,ColorFFffFF;
界: MA(CLOSE,27),linethick1,Color00FFFF;
6庄散筹码(大智慧)
庄筹估算值:EMA(WINNER(C)*70,3),colorffcc66, linethick2;
散筹估算值:EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,3),color0099ff,linethick2;
获利线:EMA(WINNER(C)*100,3),colorwhite;
庄筹线:EMA(WINNER(C)*70,5),colorred,linethick2;
散筹线:EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,5),coloryellow,linethick2;
收:=winner(C)*100;
开:=winner(O)*100;
博弈K线长:MAX(ABS(收-开),ABS(收-REF(收,1))),pointdot,colorwhite{ff00ff};
STICKLINE(庄筹线 散筹线,庄筹线,散筹线,0,0),COLOrwhite;
stickline(收 =REF(收,1),0,博弈K线长,0,0),colorred;
stickline(收 =REF(收,1),0,博弈K线长,0,0),color00ff00;
{庄筹线:EMA(WINNER(C)*70,5), colorred, linethick2;
散筹线:EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5),colorgreen, linethick2;}
5,colorwhite,pointdot;
20,coloryellow,pointdot;
40,colorffcc66,pointdot;
60,colorff00ff,pointdot;
cc:FILTER( (CROSS(5,庄筹线) and 散筹线 20 )*60,10 ),colorgreen;
DRAWTEXT(cc ,60 ,'海底捞活鱼(抄底)' ),colorff00ff;
aa:= ref(庄筹线,30) 40 or ref(庄筹线,20)
aa1:=cross(庄筹线,散筹线);
DRAWTEXT(AA1,70,'鸡雀升天'),color00ff00;
bb:=CROSS(28,庄筹线) and 散筹线 40 and aa=1 and LLV(l ,60 ) LLV(l ,250 );
DRAWTEXT(bb,60,'决战诱空'),colorwhite;
IF(bb,30,60 ),colorgreen;
7大智慧主图-----股市脑电波
{股市脑电波}
Var2:=(3*CLOSE+LOW+OPEN+HIGH)/6;
Var3:=(20*Var2+19*REF(Var2,1)+18*REF(Var2,2)+17*REF(Var2,3)+16*REF(Var2,4)+15*REF(Var2,5)+14*REF(Var2,6)+13*REF(Var2,7)+
12*REF(Var2,8)+11*REF(Var2,9)+10*REF(Var2,10)+9*REF(Var2,11)+8*REF(Var2,12)+7*REF(Var2,13)+6*REF(Var2,14)+5*REF(Var2,15)
+4*REF(Var2,16)+3*REF(Var2,17)+2*REF(Var2,18)+REF(Var2,20))/210;
Var4:=MA(Var3,13);
Var5:=EMA(MA(CLOSE,3),34);
Var6:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
Var7:=MA(Var6,5);
Var8:=MA(Var6,10);
STICKLINE(IF(Var3 Var5,Var3 =1.015*Var4,Var3 =1.005*Var4),Var3,Var4,10,1),COLOR006600 ;
〖空头市场〗:0,color006600;
STICKLINE(Var3 1.005*Var4,Var3,Var4,10,1),COLORff00ff{003366};
〖多头市场〗:0,colorff00ff{003366};
DRAWTEXT(FILTER(MA(Var6,10) Var7,1),Var8,' '),COLORRED;
『脑电波上升』:0,colorred;
DRAWTEXT(FILTER(MA(Var6,10) =Var6,1),Var8,' '),COLOR00ff00;
『脑电波下跌』:0,color00ff00;
『多空安全线』: Var5,circledot,COLORWHITE;
{〖关注点〗: }STICKLINE(COUNT(Var3 1.005*Var4 AND Var3 =REF(Var3,1),2)=2 OR
COUNT(IF(Var3 Var5,Var3 =1.015*Var4,Var3 =1.005*Var4) AND Var3 =REF(Var3,1),2)=2,Var3,Var4,10,0),COLORYELLOW;
〖关注点〗: 0,coloryellow;
STICKLINE(C =O,C,O,7,0),COLORRED;
STICKLINE(C =O,C,O,4,0),COLOR7070ff{B0B0FF};
STICKLINE(C =O,C,O,2,0),COLORYELLOW;
STICKLINE(C =O,H,L,0,0),COLORYELLOW;
STICKLINE(C =O,C,O,7,0),COLORFF2020;
STICKLINE(C =O,C,O,4,0),COLORFF6600;
STICKLINE(C =O,C,O,2,0),{COLORCYAN;}colorffcc66;
STICKLINE(C =O,H,L,0,0),{COLORCYAN}colorffcc66;
DRAWTEXT(REF(CROSS(Var3,Var4),2) AND Var3 1.005*Var4,Var4,'★买入点'),COLORwhite;
DRAWTEXT(CROSS(Var6,Var7) AND Var7 Var8,Var3*0.95,'▲多空争夺'),COLORyellow;
{DRAWTEXT(CROSS(Var7,Var6) AND Var7 Var8,Var3*1.05,'▼洗盘'),COLORwhite;}
Var9:=1/WINNER(CLOSE);
VarA:=MA(CLOSE,13);
VarB:=100-ABS((CLOSE-VarA)/VarA*100);
VarC:=LLV(LOW,75);
VarD:=HHV(HIGH,75);
VarE:=(VarD-VarC)/100;
VarF:=SMA((CLOSE-VarC)/VarE,20,1);
Var10:=SMA((OPEN-VarC)/VarE,20,1);
Var11:=3*VarF-2*SMA(VarF,15,1);
Var12:=3*Var10-2*SMA(Var10,15,1);
Var13:=100-Var12;
Var14:=100-Var11;
Var15:=MA(WINNER(CLOSE*0.95)*100,3);
Var16:=100-IF(Var9 5,IF(Var9 100,Var9,VarB-10),0);
Var17:=Var15 VarB;
Var18:=REF(LOW,1)*0.9;
Var19:=LOW*0.9;
Var1A:=(Var19*VOL+Var18*(CAPITAL-VOL))/CAPITAL;
Var1B:=EMA(Var1A,30);
Var1C:=CLOSE-REF(CLOSE,1);
Var1D:=MAX(Var1C,0);
Var1E:=ABS(Var1C);
Var1F:=SMA(Var1D,7,1)/SMA(Var1E,7,1)*100;
Var20:=SMA(Var1D,13,1)/SMA(Var1E,13,1)*100;
Var21:=BARSCOUNT(CLOSE);
Var22:=SMA(MAX(Var1C,0),6,1)/SMA(ABS(Var1C),6,1)*100;
Var23:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
Var24:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
Var25:=SMA((SMA(Var24,4,1)-50)*2,3,1);
Var26:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
Var27:=SMA(Var26,4,1);
Var28:=SMA(Var27,3,1);
Var29:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
Var2A:=Var22 =25 AND Var23 -95 AND Var29 20 AND Var25 -30 AND Var28 30 AND Var1B-CLOSE =-0.25 AND Var1F 22 AND Var20 28
AND Var21
DRAWTEXT(CROSS(Var2A,0.5) AND COUNT(Var2A=1,10)=1,Var4,'♂发射资金(超短线操作)'),COLORRED;
DRAWTEXT(CROSS(Var17,0.5) AND COUNT(Var17=1,10)=1,Var3,'激烈交锋'),COLORWHITE;
Var326:=IF(CLOSE REF(CLOSE, 1),88,0);
Var327:=IF(CLOSE/REF(CLOSE, 1) 1.050AND HIGH/CLOSE 1.010 AND Var326 0, 91, 0);
STICKLINE(Var327 90,L*0.99,L*0.95,4,0),COLORYELLOW;
DRAWTEXT(Var327 90,LOW*0.95,'追涨'),COLORYELLOW;
8压力位
STICKLINE(c o or c=o and c ref(c,1),l,h,0.1,0),colorred;
STICKLINE(c o or c=o and c ref(c,1),o,c,7,0),colorred;
STICKLINE(c o or c=o and c =ref(c,1),l,h,0.1,0),colorred;
STICKLINE(c o or c=o and c =ref(c,1),o,c,7,0),colorblue;
RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K24:=SMA(RSV24,3,1);
D24:=SMA(K24,3,1);
J24:=3*K24-2*D24;
压力位:IF(CROSS(j24,j),H,REF(H,BARSLAST(CROSS(j24,j)))),COLORRED,LINETHICK0;
支撑位:IF(CROSS(j,j24),L,REF(L,BARSLAST(CROSS(j,j24)))),COLORFFCCCC,LINETHICK0;
MA10:MA(C,10),coloryellow;
年线:ma(c,250),colorffcc66;
BB10:=atan((MA10-ref(MA10,1)))*3.1416*10;
STICKLINE(BB10 1 and MA10 ref(MA10,1), MA10,REF(MA10,1),4,0),coloryellow;
STICKLINE(BB10 1 and MA10 ref(MA10,1), MA10,REF(MA10,1),4,1),COLOR00FF00;
MA20:MA(C,20),COLORFF00FF,POINTDOT;
BB20:=atan(MA20-ref(MA20,1))*3.1416*10;
STICKLINE(BB20 1,MA20,ref(MA20,1),4,0),COLORff00ff;
STICKLINE(BB20 1,MA20,ref(MA20,1),4,1),COLORbbcccc;
MA55:MA(C,55),COLORBLUE,POINTDOT;
BB55:=atan(MA55-ref(MA55,1))*3.1416*10;
STICKLINE(BB55 1,MA55,ref(MA55,1),4,0),COLORWHITE;
STICKLINE(BB55 1,MA55,ref(MA55,1),4,1),COLORBLUE;
Var1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);
Var2:=CROSS(Var1,0.9);
Var3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);
Var4:=CROSS(Var3,0.9);
压力:REF(HIGH,BARSLAST(Var2)),POINTDOT,ColorEA91B5;
STICKLINE(CLOSE,REF(HIGH,BARSLAST(Var2)),REF(HIGH,BARSLAST(Var2)),5,0),Color00ff00{EA91B5};
支撑:REF(LOW,BARSLAST(Var4)),POINTDOT,Color0087FF;
STICKLINE(CLOSE,REF(LOW,BARSLAST(Var4)),REF(LOW,BARSLAST(Var4)),5,0),Color0087FF;
买卖 指标
var1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
var2:=HIGH-REF(HIGH,1);
var3:=REF(LOW,1)-LOW;
var4:=SUM(IF(var2 0 AND var2 var3,var2,0),25);
var5:=SUM(IF(var3 0 AND var3 var2,var3,0),25);
var6:=var4*100/var1;
var7:=var5*100/var1;
var8:=MA(ABS(var7-var6)/(var7+var6)*100,15);
var9:=(var8+REF(var8,15))/2;
A:=(var7 var6 AND var7 25 AND var6
B:ZIG(3,50/5)*100,colorwhite;
g:MA(B,2),coloryellow;
D:=CROSS(B,g)*1000,colorred;
W:=cross(g,B)*1000,colorblue;
E:=REF(INDEXC,1);
F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1);
var10:=F AND F
var11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
var12:=SMA(var11,3,1);
var13:=SMA(var12,3,1);
var14:=var13 AND var13
mm:=A AND D AND var10 AND var14 ;
DRAWTEXT(W=1000,b*1.05,'卖' ),COLOR00ff00;
DRAWTEXT(D=1000,b*1.05,'买'),COLORred;
9背离指标
主线:=(ma(close,6)+ma(close,12)+ma(close,24)+ma(close,36))/4,linethick2,colorff00ff;
股价重心:=dma(amount/vol/100,vol/capital),colorgreen,linethick2;
ma14:=ema(close,14);
ma34:=ema(close,26);
ma54:=ema(close,54);
ma90:=ema(close,90);
ma120:ema(close,120),pointdot,linethick2,colorwhite;
年线:ema(c,250),coloryellow,linethick2;
{中短波}
hz:=ema(close,13);
短波:ema(hz,1),color00dd00,linethick1;
中波:ema(hz,26),colorred,linethick1;
均线148天:=ema(c,148),pointdot,linethick1,colorgreen;
成本:=sum(amount,0)/sum(vol,0)/100,coloryellow ,linethick2 ;
hz2:ema(hz,8),colorgreen,linethick2;
hz4:ema(hz,39),colorff00ff,linethick2;
a1:stickline(hz2 hz4,短波,hz4,1.5,0),colorblue ;
a2:stickline(短波 hz2,短波,hz2,3,0),colorgreen;
a3:stickline(中波 hz4,中波,hz4,2,0),colorff00ff;
{慢速kdj}
rsv:=(close-llv(low,60))/(hhv(high,60)-llv(low,60))*100;
fastk:=sma(rsv,12,1);
k:=sma(fastk,9,1),coloryellow;
d:=sma(k,3,1),linethick2,colorblue;
j:=3*k-2*d,linethick1,colorgreen;
{中波}
var11:=3*sma((close-llv(low,75))/(hhv(high,75)-llv(low,75))*100,20,1)-2*sma(sma((close-llv(low,75))
/(hhv(high,75)-llv(low,75))*100,20,1),15,1);
var22:=100-var11;
中势线:=(-1)*(ema(var22,1)-50)+42,coloryellow,linethick2;
tz:=(close-llv(low,331))/(hhv(high,331)-llv(low,331))*100;
强势线:=sma(tz,5,1),linethick2,colorred;
大盘线:=70*(hhv(high,39)-close)/(hhv(high,39)-llv(low,39)),linethick1,color009900;
{量选}
aa:=vol/sum(vol,13);
bb:=dma(c,aa);
cc:=vol/sum(vol,34);
dd:=dma(c,cc);
{背离}
var00:=winner(close);
var1:=forcast(var00,10);
var2:=ma(var1,3);
var3:=ma(var2,12);
var4:=ma(var3,16);
var5:=ma(var4,31);
var6:=ma(var5,55);
var7:=var5;
var8:=var4 var2*1.11 and var3 var2*1.095;
a:=var4/var2;
b:=var3/var2;
var9:=var2 var1*0.95;
td:=var2/var1;
var1h:=indexc;
var2h:=ma(var1h,6);
var3h:=ma(var1h,24);
var4h:=ma(var1h,32);
var5h:=ma(var1h,62);
var6h:=ma(var1h,105);
var7h:=var5h;
var8h:=var4h var2h*1.11 and var3h var2h*1.095;
var9h:=var2h var1h*0.95;
pt:=(if(h=l and c=o and l=c and c 0 and ref(h,1)=ref(l,1) and ref(c,1)=ref(o,1)
and ref(h,1)=ref(c,1) and ref(c,1) 0,0,1))
g:=(var7h and var8h and var9h and close/cost(8) =0.7985
and (count(c=l,4) 3 or c ref(c,1)))and pt or
var7 and var8 and var9 and close/cost(5) =0.8 and
((var1 open or var1 ref(open,1) or
ref(var1,1)));
背离:=var2 ref(var2,1) and a ref(a,1);
买入信号1:=var1 a andvar2
买入信号2:=b a and1 b and a 1 and h=hhv(h,21);
buy:=count(背离,20) 1 and 买入信号2=1 and c o or cross(bb,dd);
drawicon(cross(短波,hz2),中波,1);
drawtext(cross(主线,ma90) and 大盘线 36 and j k and 强势线 ref(强势线,1) and 中势线 ref(中势线,1) and 短波-ref(短波,1) 0.088 and hz4-ref(hz4,1) 0.028 or
cross(主线,ma120) and 大盘线 36 and j k and 强势线 ref(强势线,1) and 中势线 ref(中势线,1) and 短波-ref(短波,1) 0.088 and hz4-ref(hz4,1) 0.028 or
cross(ma120,均线148天) and 大盘线 36 and j k and 强势线 ref(强势线,1) and 中势线 ref(中势线,1) and 短波-ref(短波,1) 0.088 and hz4-ref(hz4,1) 0.028 or
cross(中势线,33) and 短波 hz2 and o ref(o,1) and c ref(c,1) and j d and j 65 and 大盘线 36 and 强势线 36 and 主线 ref(主线,1)
and 强势线 ref(强势线,1) and 中势线 ref(中势线,1) and 中势线 70and c o and ma34 ref(ma34,1) and 短波-ref(短波,1) 0.088 and hz4-ref(hz4,1) 0.028 or
cross(短波,hz2) and 大盘线 36 and 短波 中波 and 中波 hz4 and 短波-ref(短波,1) 0.088 and hz4-ref(hz4,1) 0.028 or
j k and 大盘线 36 and 短波 hz2 and cross(强势线,36) or cross(短波,hz2) and cross(强势线,36) or cross(j,k)and cross(强势线,33)
or cross(短波,hz2) and cross(强势线,54)
or cross(j,k) and 大盘线 36 and j 65 and c o and 短波-ref(短波,1) 0.088 or
cross(j,k) and 短波 hz2 and j 68and 短波 ref(短波,1)and hz2 ref(hz2,1) and 中势线 ref(中势线,1) and 短波-ref(短波,1) 0.088 or
cross(j,k) and 大盘线 36 and j 68 and 短波-ref(短波,1) 0.088 or cross(j,k) and cross(短波,hz2) and 大盘线 36 or
cross(短波,hz2) and 大盘线 36 and j k and j 68 and 强势线 ref(强势线,1) and 中势线 ref(中势线,1) and 短波-ref(短波,1) 0.088 or
cross(短波,hz2) and 中波 ma120 and 中波 均线148天 and hz2 ma120 and ma120 均线148天 and 短波-ref(短波,1) 0.088 or
cross(j,k) and 强势线 54 and 强势线 ref(强势线,1) and j 68
or count(背离,20) 1 and 短波 hz2 and o ref(o,1) and c ref(c,1) and j d and j 65 and 买入信号2=1 and 主线 ref(主线,1)
and 中势线 ref(中势线,1) and 中势线 70 and c o or
cross(bb,dd) and j 74 and ma34 ref(ma34,1) and 短波-ref(短波,1) 0.088 or
大盘线 36 and j d and j 65 and c o and 短波 ref(短波,1) and cross(hz2,中波) and 短波-ref(短波,1) 0.088and o ref(c,1) or
c o and 短波 ref(短波,1) and j d and j 65 and 大盘线 36 and cross(中势线,33) and 中势线-ref(中势线,1) 0.23 and 短波-ref(短波,1) 0.088
and o ref(c,1) and 强势线 12 or
短波 hz2 and 中波 hz4 and 大盘线 36 and cross(j,k) and j 65 and 短波-ref(短波,1) 0.088 or
短波 hz2 and 大盘线 36 and cross(j,k) and j 65 and 短波-ref(短波,1) 0.088 or cross(j,k) and cross(短波,hz2) and 大盘线 36 and j 56 or
短波 hz2 and 中波 hz4 and 大盘线 36and j d and j 65 and cross(hz4,年线) and 短波-ref(短波,1) 0.088 or
短波 hz2 and hz2 hz4 and 大盘线 36and j d and j 65 and j 65 and cross(强势线,46) and 短波-ref(短波,1) 0.088 or
短波 hz2 and 大盘线 36and j d and j 65 and cross(中势线,36) and 短波-ref(短波,1) 0.088
,hz2-0.18,'!追'),colorwhite;{好}
drawtext(cross(短波,hz2) and c o and j kand j d and 大盘线 36 and c hz4,l*1.09,'●'),coloryellow;
drawtext(cross(短波,hz2) and c o and j kand j d and 大盘线 36 and c hz4,l*1.12,'做趋势'), coloryellow;
DRAWTEXT(cross(短波,hz2),C,'♂');
DRAWTEXT(cross ( 中波,hz4),C,'♂');
DRAWTEXT(cross ( 中波,ma120),C,'♂');
DRAWTEXT(cross (hz4,ma120),C,'♂');
本文转载 金爵别墅 老师的帖 并无提供公式下载,请参考公式编辑录像自己编辑成公式