%> 大智慧长线短作主图指标公式_教育巴巴炒股教程网
大智慧长线短作主图指标公式 2483

本公式是经典技术指标的综合应用,它最大的好处:能帮你回避深幅调整和大熊市,如附图15,《上证指数》从6000多点--1600多点,没有发出1个 “关注”、“加仓”的信号;股价调整时,也不发出“关注”、“加仓”的信号,如附图16,说明《置信电气》近期处在调整中。股价处于主升浪或强势时,公式会发出多个“关注”、“加仓”的信号!如附图17,说明《新海宜》近期处在强势上升中。其他使用方法,请股友细细品味。如果作为“交易系统”,请遵循:右侧交易和波段操作的原则。

源码如下:


DRAWTEXTREL(300,20,'---------------[长 线 短 作:抓 住 主 升 浪]----------------'),LINETHICK1,Color80BEFF;

DRAWGBKLAST(c>0,STRIP(RGB(0,0,0),RGB(0,130,130),0));


STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,8,0),colorFF5B00;

STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,7,0),colorFF6C00;

STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,6,0),colorFF7B00;

STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5,0),colorFF9C00;

STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,4,0),colorFFBE00;

STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3.5,0),colorFFCC00;

STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1.5,0),colorFFFF00;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,8,0),color070084;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,7,0),color0000A3;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,6,0),color0000B7;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5,0),color0000CD;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,4,0),color0000E9;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),color0754E9;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1.5,0),color076EF3;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),color077BF3;

STICKLINE((CLOSE > OPEN),OPEN,LOW,1,0),color0726CA;

STICKLINE((CLOSE > OPEN),CLOSE,HIGH,1,0),color0726CA;

STICKLINE((OPEN > CLOSE),CLOSE,LOW,1,0),colorDE9100;

STICKLINE((OPEN > CLOSE),OPEN,HIGH,1,0),colorDE9100;


MA5:=MA(CLOSE,5);

MA21:=MA(CLOSE,21);

MA65:=MA(CLOSE,65);

EA5: EMA(CLOSE,5);

FILLRGN(EA5,MA21,MA21>EA5,RGB(0,255,200),MA21<EA5,RGB(255,190,200)),LAYER7;




DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);

DEA:=EMA(DIFF,9);

MACD:=2*(DIFF-DEA);


RSV:=(CLOSE-LLV(LOW, 55))/(HHV(HIGH, 55)-LLV(LOW, 55))*100;

K:=SMA(RSV, 13, 1);

D:=SMA(K, 5, 1);

J:=3*K-2*D;

KM3:=EMA(K, 3);


LC:=REF(CLOSE,2);

RSI:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;


drawicon(cross(EA5,MA21),L-0.06,7),align1,LINETHICK2,LAYER0;

drawicon(cross(MA21,EA5),H+0.1,8),align1,LINETHICK2,LAYER0;

顶部:IF(CROSS(KM3,J) AND ref(J,1)>80,-100,0),COLORGREEN,linethick0;

DRAWTEXT(顶部,H+H*0.005, '★顶部'),COLORGREEN,linethick1;

减仓:IF(RSI< REF(RSI,1) AND RSI>79,-100,0),colorWHITE,linethick0;

DRAWTEXT(减仓,H+H*0.005 ,'▼减仓'),colorWHITE,linethick1;

多排:=COUNT(MA21>MA65,10)=10;

GX:=MAX(MA5,MAX(MA21,MA65));

DX:=MIN(MA5,MIN(MA21,MA65));

整理:=ABS(GX/DX-1)*100<=15;

强势:=COUNT(MACD<0,10)=10;

目标:=IF(多排 AND 整理 AND 强势,5,0);

关注:IF(CROSS(0.1,目标) AND CROSS(MACD,0),8,0),COLOR00FFFF,LINETHICK0;

TPX:=MIN(MA65*1.15,MA21*1.13);

加仓:IF(CROSS(C,TPX) AND 整理 AND MA65>REF(MA65,1),10,0),COLOR0000FF,LINETHICK0;

DRAWTEXT(关注,l-l*0.005,'★关注'),COLOR00FFFF,LAYER0;

DRAWTEXT(加仓,l-l*0.005,'▲加仓'),COLOR0000FF;



 

{股票教程网-http://9188edu.com承接通达信软件和公式破解,普通加密破解,完全加密破解,导入密码破解,时间限制破解,公式编写,可按您的要求写公式指标,价格按难度不同报价,有需要可以找我们}