文华财经均价多空线变色趋势主图指标公式源码:
均价:=(2*C+(H-L)/2+L+O)/4;
价差:=SUM(均价-REF(均价,1),3)/3;
实价:=(均价+价差);
NN:=26;
N:=IF(PERIOD=5,2,IF(PERIOD=6,1,IF(PERIOD=7,0.5,4)));
黑马线:=EMA(-100*(HHV(实价,NN*N)-(实价+均价)/2)/(HHV(实价,NN*N)-LLV(均价,NN*N)),6)+60,COLORRED,LINETHICK2;
航向:=REF(均价,BARSLAST(CROSS(黑马线,MA(黑马线,5)))),COLORWHITE,LINETHICK1;
方向:MA(航向,5),COLOR9900FF,LINETHICK2;
PARTLINE(C<方向,方向,COLOR00BB00),LINETHICK2;