同花顺红线上穿黄线买
孙悟空:(L*4+C*3+O*2+H)/10,colorFF00FF,Linethick2;
二郎神:EMA(孙悟空,21),COLOR00FF00,Linethick1;
差距:=孙悟空-二郎神;
STICKLINE(差距>=0,(孙悟空-差距*0.05),(孙悟空-差距*0.15),3,0) ,COLOR00ffff;
STICKLINE(差距>=0,(孙悟空-差距*0.2),(孙悟空-差距*0.35),3,0) ,COLOR00ccff;
STICKLINE(差距>=0,(孙悟空-差距*0.4),(孙悟空-差距*0.55),3,0) ,COLOR0099ff;
STICKLINE(差距>=0,(孙悟空-差距*0.6),(孙悟空-差距*0.75),3,0) ,COLOR0066ff;
STICKLINE(差距>=0,(孙悟空-差距*0.8),(孙悟空-差距*0.95),3,0) ,COLOR0000cc;
STICKLINE(差距<0,(二郎神+差距*0.05),(二郎神+差距*0.15),3,0) ,COLOR006600;
STICKLINE(差距<0,(二郎神+差距*0.2),(二郎神+差距*0.35),3,0) ,COLOR009900;
STICKLINE(差距<0,(二郎神+差距*0.4),(二郎神+差距*0.55),3,0) ,COLOR00cc00;
STICKLINE(差距<0,(二郎神+差距*0.6),(二郎神+差距*0.75),3,0) ,COLOR00ff00;
STICKLINE(差距<0,(二郎神+差距*0.8),(二郎神+差距*0.95),3,0) ,COLOR66ff00;
DRAWTEXT(CROSS(孙悟空,二郎神),孙悟空,'▲'),LINETHICK2,COLORFF00FF;
DRAWTEXT(CROSS(二郎神,孙悟空),二郎神,'▼'),LINETHICK2,COLOR00FF00;
TIPTEXT(ISNULL(REFX(CLOSE,1)),0,' '),colorred;
TIPTEXT(ISNULL(REF(CLOSE,1)),0,'');