同花顺MACD强势指标公式
SHORT:=12;
LONG:=26;
M:=9;
DIFF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIFF,M);
MACD:2*(DIFF-DEA);
Zero:0;
斜率12:=REF(DIFF,1)-REF(DIFF,2);
斜率01:=DIFF-REF(DIFF,1);
DRAWTEXT(((斜率01>斜率12)AND(MACD>0)
AND(斜率12>0.0006)
//AND(REF(MACD,1)>MACD)
),DIFF,'强势↑'),colorlired;
DRAWTEXT(((斜率01>斜率12)AND(MACD>0)
AND(REF(MACD,1)>MACD)
AND(斜率12>0.0006)
),Zero,'强势↑必买'),colorlired;
DRAWTEXT(((REF(DIFF,2)>REF(DIFF,1))AND(REF(DIFF,1)<DIFF)),DIFF,'↑上攻'),colorgreen;
//IF((斜率01>斜率12)AND(MACD>0))THENBUY;
同花顺短线操作指标公式
N:=IF(BARSCOUNT(C)>=10,10,BARSCOUNT(C));
D1:=DATE;
DC:=IF(D1<20180131,1,0);
STICKLINE(C>=MA(C,N)ANDDC,MA(C,N),MA(C,N*0.7),14,0),colorred;
//IF(D1=MA(C,N)ANDREF(C,1)<MA(C,N),LOW,1),0);
STICKLINE(C<MA(C,N)ANDDC,MA(C,N),MA(C,N*0.7),14,0),colorgreen;
//IF(D1=MA(C,N),LOW,2),0);)
同花顺黄金布林主图指标公式
N:=26;
P:=2;
MID:MA(CLOSE,N);
UPPER:MID+P*STD(CLOSE,N);
LOWER:MID-P*STD(CLOSE,N);
MA5:MA(CLOSE,5);
MA250:MA(CLOSE,250);
晴天线S:MID+(UPPER-MID)*0.382;
晴天线X:MID-(MID-LOWER)*0.382;
MID:MA(C,20),colorred;
上升:IF(MID>REF(MID,1),MID,DRAWNULL),colorred,LINETHICK3;
下降:IF(MID<=REF(MID,1),MID,DRAWNULL),colorgreen,LINETHICK3
同花顺双线合一上涨指标公式
N1:=3;
N2:=21;
Var1:=HHV(HIGH,1*5);
Var2:=LLV(LOW,1*5);
二线分开空仓:SMA((CLOSE-Var2)/(Var1-Var2),8,1)*100,colorgreen;
二线合一持股:EMA(HHV(二线分开空仓,3),1),colorred,linethick2;
s:n1,DOTLINE,colorgreen;
b:n2,DOTLINE,colorred;
A:=IF((CLOSE>126.32),(AMOUNT/100000),VOL);
主力:MA(A,4),LINETHICK0,coloryellow;
游资:MA(A,8),LINETHICK0,colorgreen;
大户:MA(A,16),LINETHICK0,colorred;
散户:MA(A,32),LINETHICK0,colorliblue;
主力比例:CEILING(((主力/(((主力+游资)+大户)+散户))*100)),LINETHICK0,coloryellow;
游资比例:CEILING(((游资/(((主力+游资)+大户)+散户))*100)),LINETHICK0,colorgreen;
大户比例:CEILING(((大户/(((主力+游资)+大户)+散户))*100)),LINETHICK0,colorred;
散户比例:CEILING(((散户/(((主力+游资)+大户)+散户))*100)),LINETHICK0,colorliblue;
警戒线:MA(A,180),colormagenta;
STICKLINE((主力>0),0,主力,3,0),COLOR009CFF;
STICKLINE((主力>0),0,主力,2.8,0),COLOR009CFF;
STICKLINE((主力>0),0,主力,2.5,0),COLOR00C0FF;
STICKLINE((主力>0),0,主力,1.5,0),COLOR00D1FF;
STICKLINE((主力>0),0,主力,1,0),COLOR00EAFF;
STICKLINE((主力>0),0,主力,0.7,0),COLOR00FFFF;
DRAWTEXT(CROSS(主力,游资),主力,'始');
DRAWTEXT(CROSS(游资,主力),游资,'终');
A:=IF((CLOSE>126.32),(AMOUNT/100000),VOL);
主力:MA(A,4),LINETHICK0,coloryellow;
游资:MA(A,8),LINETHICK0,colorgreen;
大户:MA(A,16),LINETHICK0,colorred;
散户:MA(A,32),LINETHICK0,colorliblue;
主力比例:CEILING(((主力/(((主力+游资)+大户)+散户))*100)),LINETHICK0,coloryellow;
游资比例:CEILING(((游资/(((主力+游资)+大户)+散户))*100)),LINETHICK0,colorgreen;
大户比例:CEILING(((大户/(((主力+游资)+大户)+散户))*100)),LINETHICK0,colorred;
散户比例:CEILING(((散户/(((主力+游资)+大户)+散户))*100)),LINETHICK0,colorliblue;
警戒线:MA(A,180),colormagenta;
STICKLINE((主力>0),0,主力,3,0),COLOR009CFF;
STICKLINE((主力>0),0,主力,2.8,0),COLOR009CFF;
STICKLINE((主力>0),0,主力,2.5,0),COLOR00C0FF;
STICKLINE((主力>0),0,主力,1.5,0),COLOR00D1FF;
STICKLINE((主力>0),0,主力,1,0),COLOR00EAFF;
STICKLINE((主力>0),0,主力,0.7,0),COLOR00FFFF;
DRAWTEXT(CROSS(主力,游资),主力,'始');
DRAWTEXT(CROSS(游资,主力),游资,'终');
评论(0)