以下是和谐富力MA拐点主图 富力顶底趋势和富力丘陵顶底幅图公式(无源码的请下载附件导入)
和谐富力MA拐点主图 富力顶底趋势和富力丘陵顶底幅图公式
富力MA拐点2: 主图叠加
X_1:=EMA(CLOSE,2);
X_2:=EMA(SLOPE(CLOSE,13)*15+CLOSE,34);
X_3:=CROSS(X_1,X_2);
X_4:=CROSS(X_2,X_1);
STICKLINE(X_1>=X_2,LOW,HIGH,0,0),COLORRED;
STICKLINE(X_1>=X_2,CLOSE,OPEN,3,0),COLOR0000AA;
STICKLINE(X_1>=X_2,CLOSE,OPEN,2.5,0),COLOR0000CC;
STICKLINE(X_1>=X_2,CLOSE,OPEN,2,0),COLOR0000CC;
STICKLINE(X_1>=X_2,CLOSE,OPEN,1,0),COLOR0000EE;
STICKLINE(X_1<X_2,CLOSE,OPEN,3,0),COLORAAAA00;
STICKLINE(X_1<X_2,CLOSE,OPEN,2.5,0),COLORBBBB00;
STICKLINE(X_1<X_2,CLOSE,OPEN,2,0),COLORCCCC00;
STICKLINE(X_1<X_2,CLOSE,OPEN,1,0),COLOREEEE00;
STICKLINE(X_1<X_2,LOW,HIGH,0,0),COLORCYAN;
STICKLINE(CROSS(X_2,X_1),OPEN,CLOSE,1,0),COLORFF2400;
X_5:=EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,8);
X_6:=EMA(X_5,5);
X_7:=REFDATE(REF(HHV(HIGH,96),5),DATE);
X_8:=REFDATE(REF(LLV(LOW,96),5),DATE);
X_9:=BARSLAST(CURRBARSCOUNT=21);
X_10:=CONST(IF(ISLASTBAR=1,HHV(HIGH,X_9),0));
X_11:=CONST(IF(ISLASTBAR=1,LLV(LOW,X_9),0));
X_12:=X_10-X_11;
X_13:=EMA(CLOSE,9)-EMA(CLOSE,21);
吸:XLPL.NOTEXT吸,NODRAW,COLORMAGENTA;
X_14:=IF(吸!=DRAWNULL,X_13,DRAWNULL);
STICKLINE(X_14,LOW,HIGH,0,0),COLORMAGENTA;
STICKLINE(X_14,CLOSE,OPEN,3,1),COLORMAGENTA;
X_15:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
X_16:=REF(X_15,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_17:=REF(X_16,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_18:=REF(X_17,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_19:=REF(X_18,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_20:=REF(X_19,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_21:=REF(X_20,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_22:=REF(X_21,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_23:=REF(X_22,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_24:=REF(X_23,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_25:=REF(X_24,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_26:=REF(X_25,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_27:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
X_28:=REF(X_27,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_29:=REF(X_28,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_30:=REF(X_29,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_31:=REF(X_30,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_32:=REF(X_31,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_33:=REF(X_32,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_34:=REF(X_33,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_35:=REF(X_34,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_36:=REF(X_35,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_37:=REF(X_36,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_38:=REF(X_37,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_39:=REF(X_27 OR X_28 OR X_29 OR X_30 OR X_31 OR X_32 OR X_33 OR X_34 OR X_35 OR X_36 OR X_37 OR X_38,1) AND X_15;
X_40:=REF(X_15 OR X_16 OR X_17 OR X_18 OR X_19 OR X_20 OR X_21 OR X_22 OR X_23 OR X_24 OR X_25 OR X_26,1) AND X_27;
STICKLINE(X_39,CLOSE,OPEN,1,0),COLOR4ABEFF;
STICKLINE(X_40,CLOSE,OPEN,1,0),COLORBLUE;
重心:(2*CLOSE+HIGH+LOW)/4,NODRAW;
X_41:=WMA((重心-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,2);
X_42:=WMA(0.618*REF(X_41,1)+0.382*X_41,2);
DRAWTEXT(CROSS(X_41,X_42) AND X_41<30,LOW-0.01,1),COLORE6E8FA;
DRAWTEXT(CROSS(X_42,X_41) AND X_41>70,HIGH+0.01,2),COLORE6E8FA;
趋势1:MA(MA(CLOSE,8),8),COLOR9F9F5F,LINETHICK2;
持股1:IF(CLOSE>趋势1,趋势1,DRAWNULL),COLOR9F9F5F,LINETHICK2;
OMA:MA(CLOSE,5),COLORFF2400;
IF(OMA>REF(OMA,1),OMA,DRAWNULL),COLORRED;
IF(OMA<REF(OMA,1),OMA,DRAWNULL),COLORGREEN;
富力顶底趋势: 副图
X_1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
X_2:=SMA(X_1,9,1);
X_3:=SMA(X_2,9,1);
出击:3*X_2-2*X_3,COLORYELLOW,LINETHICK2;
买线:LLV(MA(出击,3),13),COLOR9932CD,LINETHICK2;
VAR出击:出击,COLORWHITE,LINETHICK2;
SS:IF(VAR出击>REF(VAR出击,1),VAR出击,DRAWNULL),COLOR00007C,LINETHICK2;
ZP:IF(VAR出击=REF(VAR出击,1),VAR出击,DRAWNULL),COLORWHITE,LINETHICK2;
XJ:IF(VAR出击<REF(VAR出击,1),VAR出击,DRAWNULL),COLORBLUE,LINETHICK2;
X_4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*(-100);
X_5:=SMA(X_4,9,1);
X_6:=SMA(X_5,9,1);
出击1:3*X_5-2*X_6,COLORYELLOW,LINETHICK2;
卖线1:LLV(MA(出击1,3),13),COLOR238E23,LINETHICK2;
VAR出击1:出击1,COLORGREEN,LINETHICK2;
SS1:IF(VAR出击1>REF(VAR出击1,1),VAR出击1,DRAWNULL),COLORFF7070,LINETHICK2;
ZP1:IF(VAR出击1=REF(VAR出击1,1),VAR出击1,DRAWNULL),COLORWHITE,LINETHICK2;
XJ1:IF(VAR出击1<REF(VAR出击1,1),VAR出击1,DRAWNULL),COLOR4D4DFF,LINETHICK2;
富力丘陵顶底: 副图
X_1:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);
X_2:=SMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3,1);
QUX:SMA((X_2-50)*2,3,1)+SMA((X_1-50)*2,3,1)/1,COLORYELLOW,LINETHICK2;
IF(QUX<=REF(QUX,1),QUX,DRAWNULL),COLORFF2400,LINETHICK2;
(-100),COLOR9F9F5F;
100,COLOR9F9F5F;
0,DOTLINE,COLOR323232;
50,DOTLINE,COLOR323232;
(-50),DOTLINE,COLOR323232;
顶警戒:150,DOTLINE,COLORMAGENTA;
底戒线1:(-150),DOTLINE,COLORGREEN;
STICKLINE(QUX>(-100),QUX,100,0,0),COLOR323232;
STICKLINE(QUX<(-100),QUX,100,0,0),COLOR9F9F5F;
STICKLINE(QUX<(-100),QUX,(-100),1,0),COLORYELLOW;
STICKLINE(QUX<(-120),QUX,(-120),1,0),COLORFF2400;
STICKLINE(QUX<(-140),QUX,(-140),1,0),COLORMAGENTA;
STICKLINE(QUX<(-150),QUX,(-150),1,0),COLORRED;
STICKLINE(QUX>100,QUX,100,1,0),COLORWHITE;
STICKLINE(QUX>120,QUX,120,1,0),COLORFF2400;
STICKLINE(QUX>140,QUX,140,1,0),COLORMAGENTA;
STICKLINE(QUX>150,QUX,150,1,0),COLORRED;
77244311.png
|