您现在的位置:程序化交易>> 股票公式>> 大智慧>> 大智慧公式>>正文内容

黑马短线买卖公式源码[大智慧公式]

相关标签:大智慧解盘指标源码 、 大智慧饱和度指标源码 、 大智慧分时指标源码 、 大智慧bs指标源码 、 大智慧宝塔线指标源码 、 大智慧sar指标源码 、 大智慧成交量指标源码 、 大智慧指标公式分时买 、 大智慧多周期指标源码 、 黑马指标源码大智慧版 、 大智慧指标公式大全 、 大智慧指标公式下载 、 大智慧选股指标公式 、 大智慧散户线指标公式 、 最好的大智慧指标公式 、

 

 

原理解析:


 

 

 

 来源:程序化99 ( WWW.CXH99.COM )

源码:

{短买DRAWGBKLAST(CLOSE > 0,STRIP(RGB(180,180,180),RGB(1,1,1),0));VAR0:=HHV(CLOSE,2);VAR1:=LLV(CLOSE,2);VAR2:=MA(CLOSE,3);VAR3:=(3 * CLOSE + LOW + OPEN + HIGH)/6;VAR4:=CLOSE > REF(CLOSE,1) AND CLOSE > REF(CLOSE,2);VAR5:=REF(VAR4,1) AND CLOSE <= REF(CLOSE,1) AND CLOSE >= REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE >= REF(CLOSE,1) AND CLOSE <= REF(CLOSE,2);VAR7:=REF(VAR6,1) AND CLOSE <= REF(CLOSE,1) AND CLOSE >= REF(CLOSE,2);VAR8:=REF(VAR7,1) AND CLOSE >= REF(CLOSE,1) AND CLOSE <= REF(CLOSE,2);VAR9:=REF(VAR8,1) AND CLOSE <= REF(CLOSE,1) AND CLOSE >= REF(CLOSE,2);VAR10:=REF(VAR9,1) AND CLOSE >= REF(CLOSE,1) AND CLOSE <= REF(CLOSE,2);VAR11:=REF(VAR10,1) AND CLOSE <= REF(CLOSE,1) AND CLOSE >= REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE >= REF(CLOSE,1) AND CLOSE <= REF(CLOSE,2);VAR13:=REF(VAR12,1) AND CLOSE <= REF(CLOSE,1) AND CLOSE >= REF(CLOSE,2);VAR14:=REF(VAR13,1) AND CLOSE >= REF(CLOSE,1) AND CLOSE <= REF(CLOSE,2);VAR15:=REF(VAR14,1) AND CLOSE <= REF(CLOSE,1) AND CLOSE >= REF(CLOSE,2);VAR16:=CLOSE < REF(CLOSE,1) AND CLOSE < REF(CLOSE,2);VAR17:=REF(VAR16,1) AND CLOSE >= REF(CLOSE,1) AND CLOSE <= REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE <= REF(CLOSE,1) AND CLOSE >= REF(CLOSE,2);VAR19:=REF(VAR18,1) AND CLOSE >= REF(CLOSE,1) AND CLOSE <= REF(CLOSE,2);VAR20:=REF(VAR19,1) AND CLOSE <= REF(CLOSE,1) AND CLOSE >= REF(CLOSE,2);VAR21:=REF(VAR20,1) AND CLOSE >= REF(CLOSE,1) AND CLOSE <= REF(CLOSE,2);VAR22:=REF(VAR21,1) AND CLOSE <= REF(CLOSE,1) AND CLOSE >= REF(CLOSE,2);VAR23:=REF(VAR22,1) AND CLOSE >= REF(CLOSE,1) AND CLOSE <= REF(CLOSE,2);VAR24:=REF(VAR23,1) AND CLOSE <= REF(CLOSE,1) AND CLOSE >= REF(CLOSE,2);VAR25:=REF(VAR24,1) AND CLOSE >= REF(CLOSE,1) AND CLOSE <= REF(CLOSE,2);VAR26:=REF(VAR25,1) AND CLOSE <= REF(CLOSE,1) AND CLOSE >= REF(CLOSE,2);VAR27:=REF(VAR26,1) AND CLOSE >= REF(CLOSE,1) AND CLOSE <= REF(CLOSE,2);VAR28:=REF(VAR16 OR VAR17 OR VAR18 OR VAR19 OR VAR20 OR VAR21 OR VAR22 OR VAR23 OR VAR24 OR VAR25 OR VAR26 OR VAR27,1) AND VAR4;VAR29:=REF(VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15,1) AND VAR16;VAR30:=IF(VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15,1,0);VAR31:=IF(VAR30,VAR1,0);今离场价:REF(VAR31,1),LINETHICK0,COLORRED;VAR32:=IF(VAR16 OR VAR17 OR VAR18 OR VAR19 OR VAR20 OR VAR21 OR VAR22 OR VAR23 OR VAR24 OR VAR25 OR VAR26 OR VAR27,1,0);VAR33:=IF(VAR32,VAR0,0);今进场价:REF(VAR33,1),LINETHICK0,COLORGREEN;VAR34:=VAR28;VAR35:=VAR29;VAR36:=(CLOSE - MA(CLOSE,34))/MA(CLOSE,34) * 100 < -14;辰星线:(20 * VAR3 + 19 * REF(VAR3,1) + 18 * REF(VAR3,2) + 17 * REF(VAR3,3) + 16 * REF(VAR3,4) + 15 * REF(VAR3,5) + 14 * REF(VAR3,6) + 13 * REF(VAR3,7) + 12 * REF(VAR3,8) + 11 * REF(VAR3,9) + 10 * REF(VAR3,10) + 9 * REF(VAR3,11) + 8 * REF(VAR3,12) + 7 * REF(VAR3,13) + 6 * REF(VAR3,14) + 5 * REF(VAR3,15) + 4 * REF(VAR3,16) + 3 * REF(VAR3,17) + 2 * REF(VAR3,18) + REF(VAR3,20))/211,COLORRED;牵牛线:MA(CLOSE,26),COLORMAGENTA;VAR37:=IF(VAR2 > (20 * VAR3 + 19 * REF(VAR3,1) + 18 * REF(VAR3,2) + 17 * REF(VAR3,3) + 16 * REF(VAR3,4) + 15 * REF(VAR3,5) + 14 * REF(VAR3,6) + 13 * REF(VAR3,7) + 12 * REF(VAR3,8) + 11 * REF(VAR3,9) + 10 * REF(VAR3,10) + 9 * REF(VAR3,11) + 8 * REF(VAR3,12) + 7 * REF(VAR3,13) + 6 * REF(VAR3,14) + 5 * REF(VAR3,15) + 4 * REF(VAR3,16) + 3 * REF(VAR3,17) + 2 * REF(VAR3,18) + REF(VAR3,20))/211,(20 * VAR3 + 19 * REF(VAR3,1) + 18 * REF(VAR3,2) + 17 * REF(VAR3,3) + 16 * REF(VAR3,4) + 15 * REF(VAR3,5) + 14 * REF(VAR3,6) + 13 * REF(VAR3,7) + 12 * REF(VAR3,8) + 11 * REF(VAR3,9) + 10 * REF(VAR3,10) + 9 * REF(VAR3,11) + 8 * REF(VAR3,12) + 7 * REF(VAR3,13) + 6 * REF(VAR3,14) + 5 * REF(VAR3,15) + 4 * REF(VAR3,16) + 3 * REF(VAR3,17) + 2 * REF(VAR3,18) + REF(VAR3,20))/211,VAR2);PARTLINE(VAR37,VAR37 > REF(VAR37,1),RGB(255,153,0)),LINETHICK2,COLOR0099FF;PARTLINE((20 * VAR3 + 19 * REF(VAR3,1) + 18 * REF(VAR3,2) + 17 * REF(VAR3,3) + 16 * REF(VAR3,4) + 15 * REF(VAR3,5) + 14 * REF(VAR3,6) + 13 * REF(VAR3,7) + 12 * REF(VAR3,8) + 11 * REF(VAR3,9) + 10 * REF(VAR3,10) + 9 * REF(VAR3,11) + 8 * REF(VAR3,12) + 7 * REF(VAR3,13) + 6 * REF(VAR3,14) + 5 * REF(VAR3,15) + 4 * REF(VAR3,16) + 3 * REF(VAR3,17) + 2 * REF(VAR3,18) + REF(VAR3,20))/211,(20 * VAR3 + 19 * REF(VAR3,1) + 18 * REF(VAR3,2) + 17 * REF(VAR3,3) + 16 * REF(VAR3,4) + 15 * REF(VAR3,5) + 14 * REF(VAR3,6) + 13 * REF(VAR3,7) + 12 * REF(VAR3,8) + 11 * REF(VAR3,9) + 10 * REF(VAR3,10) + 9 * REF(VAR3,11) + 8 * REF(VAR3,12) + 7 * REF(VAR3,13) + 6 * REF(VAR3,14) + 5 * REF(VAR3,15) + 4 * REF(VAR3,16) + 3 * REF(VAR3,17) + 2 * REF(VAR3,18) + REF(VAR3,20))/211 > REF((20 * VAR3 + 19 * REF(VAR3,1) + 18 * REF(VAR3,2) + 17 * REF(VAR3,3) + 16 * REF(VAR3,4) + 15 * REF(VAR3,5) + 14 * REF(VAR3,6) + 13 * REF(VAR3,7) + 12 * REF(VAR3,8) + 11 * REF(VAR3,9) + 10 * REF(VAR3,10) + 9 * REF(VAR3,11) + 8 * REF(VAR3,12) + 7 * REF(VAR3,13) + 6 * REF(VAR3,14) + 5 * REF(VAR3,15) + 4 * REF(VAR3,16) + 3 * REF(VAR3,17) + 2 * REF(VAR3,18) + REF(VAR3,20))/211,1),RGB(255,0,0)),LINETHICK2,COLORRED;PARTLINE((20 * VAR3 + 19 * REF(VAR3,1) + 18 * REF(VAR3,2) + 17 * REF(VAR3,3) + 16 * REF(VAR3,4) + 15 * REF(VAR3,5) + 14 * REF(VAR3,6) + 13 * REF(VAR3,7) + 12 * REF(VAR3,8) + 11 * REF(VAR3,9) + 10 * REF(VAR3,10) + 9 * REF(VAR3,11) + 8 * REF(VAR3,12) + 7 * REF(VAR3,13) + 6 * REF(VAR3,14) + 5 * REF(VAR3,15) + 4 * REF(VAR3,16) + 3 * REF(VAR3,17) + 2 * REF(VAR3,18) + REF(VAR3,20))/211,(20 * VAR3 + 19 * REF(VAR3,1) + 18 * REF(VAR3,2) + 17 * REF(VAR3,3) + 16 * REF(VAR3,4) + 15 * REF(VAR3,5) + 14 * REF(VAR3,6) + 13 * REF(VAR3,7) + 12 * REF(VAR3,8) + 11 * REF(VAR3,9) + 10 * REF(VAR3,10) + 9 * REF(VAR3,11) + 8 * REF(VAR3,12) + 7 * REF(VAR3,13) + 6 * REF(VAR3,14) + 5 * REF(VAR3,15) + 4 * REF(VAR3,16) + 3 * REF(VAR3,17) + 2 * REF(VAR3,18) + REF(VAR3,20))/211 < REF((20 * VAR3 + 19 * REF(VAR3,1) + 18 * REF(VAR3,2) + 17 * REF(VAR3,3) + 16 * REF(VAR3,4) + 15 * REF(VAR3,5) + 14 * REF(VAR3,6) + 13 * REF(VAR3,7) + 12 * REF(VAR3,8) + 11 * REF(VAR3,9) + 10 * REF(VAR3,10) + 9 * REF(VAR3,11) + 8 * REF(VAR3,12) + 7 * REF(VAR3,13) + 6 * REF(VAR3,14) + 5 * REF(VAR3,15) + 4 * REF(VAR3,16) + 3 * REF(VAR3,17) + 2 * REF(VAR3,18) + REF(VAR3,20))/211,1),RGB(0,255,0)),COLORGREEN;PARTLINE(MA(CLOSE,26),MA(CLOSE,26) > REF(MA(CLOSE,26),1),RGB(255,0,255)),COLORMAGENTA;PARTLINE(MA(CLOSE,26),MA(CLOSE,26) < REF(MA(CLOSE,26),1),RGB(51,153,102)),COLOR669933;STICKLINE(BARSTATUS=2 AND (VAR30 OR REF(VAR30,1)=1) AND REF(VAR31,1) <> 0,REF(VAR31,1),REF(VAR31,1),30,1),COLORRED;STICKLINE(BARSTATUS=2 AND (VAR32 OR REF(VAR32,1)=1) AND REF(VAR33,1) <> 0,REF(VAR33,1),REF(VAR33,1),30,1),COLORGREEN;STICKLINE(CLOSE >= OPEN,LOW,HIGH,0,0),COLOR0000CC;STICKLINE(CLOSE < OPEN,LOW,HIGH,0,0),COLOR999900;STICKLINE(1,CLOSE,OPEN,8,0),COLOR858500;STICKLINE(CLOSE >= OPEN,CLOSE,OPEN,8,0),COLOR0000E5;STICKLINE(VAR30,CLOSE,OPEN,6,0),COLOR000055;STICKLINE(VAR30,CLOSE,OPEN,5,0),COLOR000088;STICKLINE(VAR30,CLOSE,OPEN,4,0),COLOR0000AA;STICKLINE(VAR30,CLOSE,OPEN,3,0),COLOR0000CC;STICKLINE(VAR30,CLOSE,OPEN,2,0),COLOR0000EE;STICKLINE(VAR30,CLOSE,OPEN,1,0),COLORRED;STICKLINE(VAR32,CLOSE,OPEN,6,0),COLOR555500;STICKLINE(VAR32,CLOSE,OPEN,5,0),COLOR888800;STICKLINE(VAR32,CLOSE,OPEN,4,0),COLORAAAA00;STICKLINE(VAR32,CLOSE,OPEN,3,0),COLORCCCC00;STICKLINE(VAR32,CLOSE,OPEN,2,0),COLOREEEE00;STICKLINE(VAR32,CLOSE,OPEN,1,0),COLORCYAN;VAR38:=CLOSE - OPEN;STICKLINE(VAR36,OPEN,CLOSE - VAR38/2,6,0),COLOR555555;STICKLINE(VAR36,OPEN,CLOSE - VAR38/2,5,0),COLOR888888;STICKLINE(VAR36,OPEN,CLOSE - VAR38/2,4,0),COLORAAAAAA;STICKLINE(VAR36,OPEN,CLOSE - VAR38/2,3,0),COLORCCCCCC;
CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
WARNING('http://www.cxh99.com',CURRENTTIME>180000 and (CXH=1 OR CXH=6));
DRAWTEXTREL(10 ,10 ,'指标公式');

 

 

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 511411198  有需要帮忙请点击这里留言!!!进行 有偿 编写!不贵!点击查看价格!

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容