通达信均线金死叉早知道指标公式
N:=5;N1:=10;M:=20{GPGS};
maM:MA(C,M){GPGS};
MAN:MA(C,N){GPGS};
MAN1:=MA(C,N1){GPGS};
明日交叉点:((MAN-MAM)*M*N+REF(C,(M+1))*N-REF(C,(N+1))*M)/(N-M){GPGS};
交叉点均线:=MA(明日交叉点,5){GPGS};
明日交叉点M:((MAN1-MAM)*M*N1+REF(C,(M+1))*N1-REF(C,(N1+1))*M)/(N1-M){GPGS};
明日交叉点均线:=MA(明日交叉点M,5){GPGS};
BAR1:=MAM-MAN{GPGS};
BAR2:=MAM-MAN1{GPGS};
STICKLINE(BAR1>=0,MAM,明日交叉点,0,1)COLORWHITE{GPGS};
STICKLINE(BAR1<=0,MAM,明日交叉点,0,1)COLORCYAN{GPGS};
STICKLINE(BAR2>=0,MAM,明日交叉点M,0,1)COLORMAGENTA{GPGS};
STICKLINE(BAR2<=0,MAM,明日交叉点M,0,1)COLORLIBLUE;