求同花顺均线变色源码
FF:=VAR1>REF(VAR1,1);
PARTLINE(Var1,FF,RGB(255,0,0),1,RGB(0,255,0)),LINETHICK2;
求博易大师变色均线的代码?
博易大师变色均线代码(以21日均线-“万能线”为例)
一、当均线开始上翘时变彩色,当均线开始下拐后变绿色
MA21:MA(C,21),COLOR00FF00,LINETHICK4;
PARTLINE(MA21>REF(MA21,1),MA21),COLORRED,LINETHICK4;
PARTLINE(MA21<REF(MA21,1),MA21),COLOR008800,LINETHICK4;
二、当K线突破均线变彩色,当K线跌破均线后变绿色
MA21:MA(C,21),COLOR00FF00,LINETHICK4;
PARTLINE(C>MA21,MA21),COLORRED,LINETHICK4;
PARTLINE(C<MA21,MA21),COLOR00CD00,LINETHICK4;
求高手帮写个同花顺股票软件均线变色指标
MA10:MA(C,10),COLORRED;
跌:IF(MA(CLOSE,10)<=REF(MA(CLOSE,10),1),MA(CLOSE,10),DRAWNULL),COLORGREEN;更多
朋友,代码好像不对啊,K线已经收完K线了,K线收盘价已经收在10日均线下面,10日均线却不变绿色,相反K线收盘价格冲破10日均线也没有马上变红色,10日均线变色反应有点慢。
是的,因为均线取得是平均值,正常,如果改成5或者1,就会变快。单那个时候就失去均线的意义了
朋友,这代码是改那里的啊?我不怕它变快,我要的就是快,准确的变色,1、当K线收盘价,收在10日均线上方,均线就变为红色,2、当K线收盘价,跌破收在10日均线下方时,均线变成绿色线。
顾比均线的通达信源码
E3:EMA(C,3),COLOR61DC16;
E5:EMA(C,5),COLOR61DC16;
E8:EMA(C,8),COLOR61DC16;
E10:EMA(C,10),COLOR61DC16;
E12:EMA(C,12),COLOR61DC16;
E15:EMA(C,15),COLOR61DC16;
E30:EMA(C,30),COLORD1875A;
E35:EMA(C,35),COLORD1875A;
E40:EMA(C,40),COLORD1875A;
E45:EMA(C,45),COLORD1875A;
E50:EMA(C,50),COLORD1875A;
E60:EMA(C,60),COLORD1875A;
IF(E3>REF(E3,1),E3,DRAWNULL),COLORYELLOW;
IF(E5>REF(E5,1),E5,DRAWNULL),COLORYELLOW;
IF(E8>REF(E8,1),E8,DRAWNULL),COLORYELLOW;
IF(E10>REF(E10,1),E10,DRAWNULL),COLORYELLOW;
IF(E12>REF(E12,1),E12,DRAWNULL),COLORYELLOW;
IF(E15>REF(E15,1),E15,DRAWNULL),COLORYELLOW;
IF(E30>REF(E30,1),E30,DRAWNULL),COLORFF00FF;
IF(E35>REF(E35,1),E35,DRAWNULL),COLORFF00FF;
IF(E40>REF(E40,1),E40,DRAWNULL),COLORFF00FF;
IF(E45>REF(E45,1),E45,DRAWNULL),COLORFF00FF;
IF(E50>REF(E50,1),E50,DRAWNULL),COLORFF00FF;
IF(E60>REF(E60,1),E60,DRAWNULL),COLORFF00FF;
STICKLINE(C>O,C,O,1,0),COLORRED;
STICKLINE(C>O,H,L,0,0),COLORRED;
STICKLINE(C<=O,C,O,1,0),COLORFFFF52;
STICKLINE(C<=O,H,L,0,0),COLORFFFF52;
DRAWICON(EMA(C,8)>EMA(C,15) AND EMA(C,40)>REF(EMA(C,40),1) AND CROSS(EMA(C,3),EMA(C,35)),L-0.20,24);
DRAWICON(EMA(C,15)>EMA(C,40) AND EMA(C,35)>REF(EMA(C,35),1) AND CROSS(EMA(C,3),EMA(C,5)),L-0.20,25);
DRAWICON(ABS(EMA(C,15)-EMA(C,60))/C<0.01 AND EMA(C,15)>EMA(C,30) AND O<EMA(C,3) AND C>EMA(C,3) AND O<EMA(C,15) AND C>EMA(C,15) AND O<EMA(C,30) AND C>EMA(C,30) AND O<EMA(C,60) AND C>EMA(C,60),L-0.20,27);
DRAWICON(ABS(EMA(C,45)-EMA(C,30))/C<0.011 AND EMA(C,3)>EMA(C,15) AND EMA(C,15)>EMA(C,40) AND CROSS(EMA(C,5),EMA(C,60)),L-0.20,13);
A1:=OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN<EMA(C,60);
A2:=C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60)));
A3:=V/MA(V,10)>1.2;
A4:=C/REF(C,1)>1.049;
出水芙蓉:=A1 AND A2 AND A3 AND A4 AND O<EMA(C,60) AND C>EMA(C,60);
DRAWICON(出水芙蓉,L-0.20,9);
求高手编写个MT4均线变色指标
MA60:MA(C,60),COLORWHITE,LINETHICK2;
IF(MA60>REF(MA60,1),MA60,DRAWNULL),COLORRED,LINETHICK2;
IF(MA60<REF(MA60,1),MA60,DRAWNULL),COLORGREEN,LINETHICK2;
横盘时为白色,上涨红色,下跌绿色
LINETHICK2代表线的粗细,数字可以自己改。
求博易大师变色均线的代码?当均线开始上翘变彩色,当均线开始下拐变绿色!
博易大师变色均线代码(以21日均线-“万能线”为例)
一、当均线开始上翘时变彩色,当均线开始下拐后变绿色
MA21:MA(C,21),COLOR00FF00,LINETHICK4;
PARTLINE(MA21>REF(MA21,1),MA21),COLORRED,LINETHICK4;
PARTLINE(MA21<REF(MA21,1),MA21),COLOR008800,LINETHICK4;
二、当K线突破均线变彩色,当K线跌破均线后变绿色
MA21:MA(C,21),COLOR00FF00,LINETHICK4;
PARTLINE(C>MA21,MA21),COLORRED,LINETHICK4;
PARTLINE(C<MA21,MA21),COLOR00CD00,LINETHICK4;