同花顺主力资金LGH公式
本人在前人基础上修改的第一个公式,真诚感谢原创!没有您,没有这个公式。
源码
主力资金:EMA(100*(C-LLV(LOW,30))/(HHV(H,30)-LLV(LOW,30)),3), colorred,LINETHICK2;
即将爆发线: 65,COLOR00FF00;
起爆线:80,colorwhite,LINETHICK1;
DRAWTEXT(CROSS(主力资金,起爆线),主力资金,'★爆发') ,coloryellow; TMD:=C-REF(C,1);
金线:100*EMA(EMA(TMD,5),5)/EMA(EMA(ABS(TMD),5),5),colorwhite,LINETHICK1;
银线:MA(金线,10),COLOR00FF00,LINETHICK1;
STICKLINE(金线>银线 , 金线,银线 ,0.1,0),colorred,LINETHICK2;
STICKLINE(银线>金线,金线,银线,0.1,0),colorgreen,LINETHICK2;
爆发线:30,COLORFF00FF,LINETHICK1;
起步线:0,colorwhite,LINETHICK1;
DRAWTEXT(CROSS(起爆线,主力资金),起爆线,'□空仓') ,coloryellow;
抄底线:-25,colorgreen,LINETHICK1;
DRAWTEXT(CROSS(金线,爆发线),金线,'★爆发') ,coloryellow;
DRAWTEXT(CROSS(主力资金,即将爆发线),主力资金,'◆加仓') ,coloryellow;
DRAWTEXT(CROSS(金线,起步线),金线,'◆加仓') ,coloryellow;
DRAWTEXT(CROSS(金线,抄底线),金线,'▲半仓') ,coloryellow;
LC:= REF(C,1);
F1:=ZIG(3,10);
方向:IF((F1> REF(F1,1)),-40,105),colorwhite,LINETHICK2;
DRAWTEXT(CROSS(抄底线,方向),抄底线,'●进场') ,coloryellow;
DRAWTEXT(CROSS(方向,抄底线),方向+20,'●出场') ,coloryellow;
DRAWTEXT(CROSS(金线,起爆线),金线,'★爆发') ,coloryellow;