PUCU 逆时钟曲线
PU:MA(CLOSE,N); CU:MA(VOL,N);
第八节 路径型
BOLL-M 布林线-主图叠加 BOLL 布林线
BOLL:MA(CLOSE,N);
UB:BOLL+2*STD(CLOSE,N); LB:BOLL-2*STD(CLOSE,N);
PXB 瀑布线
PBX1:(EMA(CLOSE,M1)+MA(CLOSE,M1*2)+MA(CLOSE,M1*4))/3; PBX2:(EMA(CLOSE,M2)+MA(CLOSE,M2*2)+MA(CLOSE,M2*4))/3; PBX3:(EMA(CLOSE,M3)+MA(CLOSE,M3*2)+MA(CLOSE,M3*4))/3; PBX4:(EMA(CLOSE,M4)+MA(CLOSE,M4*2)+MA(CLOSE,M4*4))/3; PBX5:(EMA(CLOSE,M5)+MA(CLOSE,M5*2)+MA(CLOSE,M5*4))/3; PBX6:(EMA(CLOSE,M6)+MA(CLOSE,M6*2)+MA(CLOSE,M6*4))/3;
23
EXE 轨道线
UPPER:(1+M1/100)*MA(CLOSE,N); LOWER:(1-M2/100)*MA(CLOSE,N); ENE:(UPPER+LOWER)/2;
MIKE 麦克支撑压力
HLC:=REF(MA((HIGH+LOW+CLOSE)/3,N),1); HV:=EMA(HHV(HIGH,N),3); LV:=EMA(LLV(LOW,N),3); STOR:EMA(2*HV-LV,3); MIDR:EMA(HLC+HV-LV,3); WEKR:EMA(HLC*2-LV,3); WEKS:EMA(HLC*2-HV,3); MIDS:EMA(HLC-HV+LV,3); STOS:EMA(2*LV-HV,3);
SSRP 筹码峰(加密) XS 薛斯通道(加密) XS2 薛斯通道Ⅱ
AA:=MA((2*CLOSE+HIGH+LOW)/4,5); 通道1:AA*N/100;
通道2:AA*(200-N)/100;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); DD:=DMA(CLOSE,CC); 通道3:(1+M/100)*DD; 通道4:(1-M/100)*DD;
24
第九节 停损型
SAR 抛物线指标(加密) TDXWAVE 通达信趋势浪(加密) VTY 价格变异率(加密)
第十节 策略型
MA策略 MA交易策略
{该模型为示范模型,仅用于说明算法语法,用户需根据自己交易经验修改后再实际应用} {变量赋值}
MA1:=MA(CLOSE,SHORT); MA2:=MA(CLOSE,LONG); {交易条件}
平空开多:=CROSS(MA1,MA2); 平多开空:=CROSS(MA2,MA1); {交易系统}
BUYSHORT_BUY(平空开多,LOW); SELL_SELLSHORT(平多开空,HIGH); {交易信号过滤} AUTOFILTER;
MACD策略 MACD交易策略
{该模型为示范模型,仅用于说明算法语法,用户需根据自己交易经验修改后再实际应用} DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG); DEA:=EMA(DIFF,MID);
25
MACD:=2*(DIFF-DEA);
平空开多:=CROSS(MACD,0); 平多开空:=CROSS(0,MACD);
BUYSHORT_BUY(平空开多,LOW); SELL_SELLSHORT(平多开空,HIGH); AUTOFILTER;
KDJ策略 KDJ交易策略
{该模型为示范模型,仅用于说明算法语法,用户需根据自己交易经验修改后再实际应用} RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RSV,M1,1); D:=SMA(K,M1,1); J:=3*K-2*D;
平空开多:=CROSS(J,0); 平多开空:=CROSS(100,J);
BUYSHORT_BUY(平空开多,LOW); SELL_SELLSHORT(平多开空,HIGH); AUTOFILTER;
肯特纳 肯特纳通道交易策略
{该模型为示范模型,仅用于说明算法语法,用户需根据自己交易经验修改后再实际应用} MA1:=REF(MA((HIGH+LOW+CLOSE)/3,AVGLENGTH),1); UPPERBAND:=MA1+REF(MA(TR,ATRLENGTH),1); LOWERBAND:=MA1-REF(MA(TR,ATRLENGTH),1);
开多条件:=MA1>REF(MA1,1) AND HIGH>=UPPERBAND; 平多条件:=LOW<=MA1;
开空条件:=MA1=MA1;
GL1:=NOT(开多条件=1 AND 平多条件=1); GL2:=NOT(开空条件=1 AND 平空条件=1); SELL(平多条件,HIGH);
BUYSHORT(平空条件,LOW); BUY(开多条件 AND GL1,LOW);
26