买卖控制通达信公式 副图 源码附图_通达信公式_量化交易
买卖点通达信公式 主图 源码附图
X_1:=(CLOSE-LLV(LOW,120))/(HHV(HIGH,120)-LLV(LOW,120))*10; X_2:=SMA(X_1,5,1); X_3:=X_2>MA(X_2,8); X_4:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*10; X_5:=SMA(X_4,3,2); X_6:=SMA(X_5,10,6); X_7:=MA(X_6,3); X_8:=SMA(X_7,3,1); 买入:X_6>=X_7,COLORRED,LINETHICK2; X_9:=X_7>REF(X_7,1); 卖出:NOT(买入),COLORGREEN; X_10:=LLV(LOW,6); X_11:=HHV(HIGH,12); 趋势线:EMA((CLOSE-X_10)/(X_11-X_10)*4,4),COLORLIBLUE,LINETHICK2; IF(趋势线>=REF(趋势线,1),趋势线,DRAWNULL),COLORRED,LINETHICK2; GMA:MA(趋势线,3); 资金运转:STICKLINE(趋势线>GMA,趋势线,GMA,3,1),COLORRED; 资金流失:STICKLINE(趋势线<GMA,趋势线,GMA,3,1),COLORGREEN; S1A:3.5,POINTDOT,COLORLIGRAY; SA:3.3,POINTDOT,COLORLIRED; BA:0.3,DOTLINE; B2A:0.5,POINTDOT; B3A:1.3,POINTDOT; X_12:=CLOSE>REF(CLOSE,4); X_13:=BARSLASTCOUNT(X_12); X_14:=X_13=9; X_15:=ISLASTBAR AND BETWEEN(X_13,5,8); X_16:=(BACKSET(X_14>0,9) OR BACKSET(X_15>0,X_13))*X_13; DRAWTEXT(X_16>0,趋势线,VAR2STR(X_16,0)),COLORWHITE; DRAWTEXT(X_13=9,趋势线,1),COLORLICYAN; X_17:=CLOSE<REF(CLOSE,4); X_18:=BARSLASTCOUNT(X_17); X_19:=X_18=9; X_20:=ISLASTBAR AND BETWEEN(X_18,5,8); X_21:=(BACKSET(X_19>0,9) OR BACKSET(X_20>0,X_18))*X_18; DRAWTEXT(X_21>0,趋势线,VAR2STR(X_21,0)),COLORGRAY; DRAWTEXT(X_18=9,趋势线,1),COLORLIMAGENTA; X_22:=EMA(CLOSE,2); X_23:=EMA(CLOSE,150); X_24:=X_22-X_23; X_25:=EMA(X_24,100); X_26:=2*(X_24-X_25); X_27:=POW(X_26,3)*0.1+POW(X_26,1); X_28:=IF(X_26>0.1,X_27,0)*5; X_29:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100; X_30:=CLOSE>MA(CLOSE,250); X_31:=X_28>REF(X_28,1); X_32:=X_29>REF(X_29,1); X_33:=CROSS(X_28,0.01)*X_28; X_34:=(X_30 AND X_31 AND X_32)*X_28; DRAWTEXT(X_34>0,1,2),COLORWHITE;
新春招财通达信公式 主图 源码附图