通达信:=REF(C,1);
红绿趋势主图:=MAX(C,通达信);
指标:=MIN(C,通达信);
wssa2:=REF(C,1)>REF(指标,1);{股票公式-股票指标www.gs6699.com}
wssa3:=REF(C,1)<REF(红绿趋势主图,1);
STICKLINE(C>=通达信,指标,红绿趋势主图,2.7,0),COLORRED;
STICKLINE(C<通达信,指标,红绿趋势主图,2.7,0),COLOR008000;
STICKLINE(wssa2 AND C>=REF(通达信,1),指标,红绿趋势主图,2.7,0),COLORRED;
STICKLINE(wssa2 AND C<REF(通达信,1),红绿趋势主图,REF(通达信,1),2.7,0),COLORRED;
STICKLINE(wssa2 AND C<REF(通达信,1),REF(通达信,1),C,2.7,0),COLOR008000;
STICKLINE(wssa3 AND C<=REF(通达信,1),指标,红绿趋势主图,2.7,0),COLOR008000;
STICKLINE(wssa3 AND C>REF(通达信,1),指标,REF(通达信,1),2.7,0),COLOR008000;
STICKLINE(wssa3 AND C>REF(通达信,1),REF(通达信,1),C,2.7,0),COLORRED;
wssa4:EMA(CLOSE,5),COLORRED;
wssa5:IF(wssa4<REF(wssa4,1),wssa4,DRAWNULL),COLORGREEN;