MA5:MA(CLOSE,5),LINETHICK1,colorFFFFFF;MA10:MA(CLOSE,10),LINETHICK1,color00FFFF;
MA21:MA(CLOSE,21),LINETHICK1,color00FF00;MA30:MA(CLOSE,30),LINETHICK1,colorFF00FF;
MA60:MA(CLOSE,60),LINETHICK1,color0000FF;MA120:MA(CLOSE,120),LINETHICK1,colorFFFF00;
买线:EMA(CLOSE,2),color000001;卖线:EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),POINTDOT,color000001;
bBUY:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);DRAWTEXT(bBUY,(LOW
* 0.99),'Ψ'),LINETHICK3,colorF00FF0;
DRAWTEXT(SEL,(HIGH *
1.01),'◎'),LINETHICK3,colorFFFFFF;
STICKLINE((买线 >=
卖线),LOW,HIGH,0.1,0),color0000FF;
STICKLINE((买线 >=
卖线),CLOSE,OPEN,5,0),color0000AA;
STICKLINE((买线 >=
卖线),CLOSE,OPEN,3,0),color0000CC;
STICKLINE((买线 >=
卖线),CLOSE,OPEN,2,0),color0000DD;
STICKLINE((买线 >=
卖线),CLOSE,OPEN,1,0),color0000FF;
STICKLINE((买线 <
卖线),CLOSE,OPEN,1,0),colorFFFF00;
STICKLINE((买线 <
卖线),CLOSE,OPEN,2,0),colorDDDD00;
STICKLINE((买线 <
卖线),CLOSE,OPEN,3,0),colorCCCC00;
STICKLINE((买线 <
卖线),CLOSE,OPEN,5,0),colorAAAA00;
STICKLINE((买线 <
卖线),LOW,HIGH,0.1,0),colorFFFF00;
STICKLINE((CROSS(买线,卖线) OR
CROSS(卖线,买线)),LOW,HIGH,0.1,0),color00FFFF;
STICKLINE((CROSS(买线,卖线) OR
CROSS(卖线,买线)),OPEN,CLOSE,5,0),color00AAAA;
STICKLINE((CROSS(买线,卖线) OR
CROSS(卖线,买线)),OPEN,CLOSE,3,0),color00CCCC;
STICKLINE((CROSS(买线,卖线) OR
CROSS(卖线,买线)),OPEN,CLOSE,2,0),color00DDDD;
STICKLINE((CROSS(买线,卖线) OR
CROSS(卖线,买线)),OPEN,CLOSE,1,0),color00FFFF;
请高手帮我改一下,这个公式!帮我改成同花顺的!
- 提问者网友:末路
- 2021-04-22 08:28
- 五星知识达人网友:醉吻情书
- 2021-04-22 08:46
MA5:MA(CLOSE,5), colorFFFFFF;
MA10:MA(CLOSE,10),color00FFFF;
MA21:MA(CLOSE,21),color00FF00;
MA30:MA(CLOSE,30),colorFF00FF;
MA60:MA(CLOSE,60),color0000FF;
MA120:MA(CLOSE,120),colorFFFF00;
买线:EMA(CLOSE,2),colorblue;
卖线:EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),color000001;
bBUY:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);DRAWTEXT(bBUY,(LOW * 0.99),'Ψ'),colorF00FF0;
DRAWTEXT(SEL,(HIGH *1.01),'◎'),colorFFFFFF;
STICKLINE(买线>=卖线,LOW,HIGH,1,0),color0000FF;
STICKLINE(买线>=卖线,C,OPEN,5,0),color0000AA;
STICKLINE(买线>=卖线,C,OPEN,3,0),color0000CC;
STICKLINE(买线>=卖线,C,OPEN,2,0),color0000DD;
STICKLINE(买线>=卖线,C,OPEN,1,0),color0000FF;
STICKLINE(买线<卖线,C,OPEN,1,0),colorFFFF00;
STICKLINE(买线<卖线,C,OPEN,2,0),colorDDDD00;
STICKLINE(买线<卖线,C,OPEN,3,0),colorCCCC00;
STICKLINE(买线<卖线,C,OPEN,5,0),colorAAAA00;
STICKLINE(买线<卖线,L,HIGH,1,0),colorFFFF00;
STICKLINE(CROSS(买线,卖线) OR(CROSS(卖线,买线)),L,HIGH,1,0),color00FFFF;
STICKLINE(CROSS(买线,卖线)OR(CROSS(卖线,买线)),OPEN,C,5,0),color00AAAA;
STICKLINE(CROSS(买线,卖线)OR(CROSS(卖线,买线)),OPEN,C,3,0),color00CCCC;
STICKLINE(CROSS(买线,卖线)OR(CROSS(卖线,买线)),OPEN,C,2,0),color00DDDD;
STICKLINE(CROSS(买线,卖线)OR(CROSS(卖线,买线)),OPEN,C,1,0),color00FFFF;
另外在公式编辑器上的曲线属性的坐标类型上选择主图坐标就OK了。