用法:
均线趋势之王[主图操盘]
→→蓝绿彩带做空 红紫带与红K线做多
→→期货多空武器 新手按15分K线,高手按20秒→1分K线操作
DRAWTEXT(SYSPARAM(2)=BARPOS,CLOSE,'→大方趋势彩带 '),ALIGN4,colorFFFF;
HDFGS:=DATE>901224 AND DATE<1181231;
VAR1:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
筹码线:=VAR1*0.8;
牛熊线:=COST(24)*HDFGS;
持仓线:=MA(CLOSE,80)*HDFGS;
STICKLINE(CLOSE>0,OPEN,CLOSE,8,0),colorFF7788;
STICKLINE(CLOSE>0,HIGH,LOW,0.8,0),colorFF8888;
A:=CLOSE>筹码线 AND CLOSE>牛熊线 AND CLOSE>持仓线 AND HDFGS;
B:=CLOSE>筹码线 AND CLOSE<牛熊线 AND CLOSE>持仓线 AND HDFGS;
STICKLINE(B>0,HIGH,LOW,0.8,0),colorFF00FF;
STICKLINE(B>0,OPEN,CLOSE,8,0),colorFF;
STICKLINE(A>0,OPEN,CLOSE,8,0),colorFF;
STICKLINE(A>0,HIGH,LOW,0.8,0),colorFF;
PARTLINE(CLOSE>牛熊线,牛熊线),LINETHICK2,colorFF;
PARTLINE(CLOSE>持仓线,持仓线),LINETHICK2,colorFFFF;
中轴线:=MA(CLOSE,34);
上抛线:=中轴线+2.85*STD(CLOSE,34);
底部线:=中轴线-2.85*STD(CLOSE,34);
M1:=EMA(CLOSE,8)*HDFGS;
短期趋势彩带:EMA(CLOSE,34)*HDFGS,LINETHICK1,colorFF0000;
M3:=EMA(CLOSE,79)*HDFGS;
长期趋势彩带:EMA(CLOSE,150)*HDFGS,LINETHICK1,colorFF00;
金叉:=CROSS(M1,短期趋势彩带);
死叉:=CROSS(短期趋势彩带,M1);
VAR1:=LLV(HIGH,600);
VAR2:=100*(CLOSE-VAR1)/VAR1;
VAR4:=ABS((CLOSE-LLV(LOW,381))/LLV(LOW,381))*100;
VAR5:=VAR4=0;
FF024:=REF(LOW,1);
FF025:=(SMA(MAX(LOW-FF024,0),5,1))/(SMA(ABS(LOW-FF024),5,1))*100*HDFGS;
STICKLINE(HDFGS AND FF025>85 AND HIGH>上抛线,HIGH+0.001,上抛线,8,1),colorFF00;
STICKLINE(HDFGS AND FF025<10 AND CLOSE<底部线,LOW,底部线,8,1),colorFFFF;
VAR6:=(CLOSE-LLV(CLOSE,613))/(HHV(CLOSE,613)-LLV(CLOSE,613))*100;
VAR7:=(HHV(HIGH,623)-CLOSE)/(HHV(HIGH,623)-LLV(LOW,623))*100;
VAR12:=(CLOSE-LLV(LOW,1675))/(HHV(HIGH,1675)-LLV(LOW,1675))*100;
VAR9:=EMA(100*(CLOSE-LLV(LOW,571))/(HHV(HIGH,571)-LLV(LOW,571)),12);
VAR19:=EMA(100*(CLOSE-LLV(LOW,1085))/(HHV(HIGH,1085)-LLV(LOW,1085)),8);
VAR20:=EMA(100*(CLOSE-LLV(LOW,262))/(HHV(HIGH,260)-LLV(LOW,260)),14);
VAR21:=EMA(100*(CLOSE-LLV(LOW,566))/(HHV(HIGH,566)-LLV(LOW,566)),20);
VAR22:=EMA(100*(CLOSE-LLV(LOW,800))/(HHV(HIGH,800)-LLV(LOW,800)),125);
VAR23:=(VAR17+VAR18+VAR19+VAR20+VAR21+VAR22)/6;
DRAWICON(VAR23<17.05 AND VAR10<18.5 AND VAR9<10 AND VAR12<23 AND VAR5 AND VAR2<-0.2 AND HDFGS AND VAR6=0 AND VAR7>95,LOW-0.002,10),ALIGN0;
DRAWICON(VAR23>90.5 AND VAR10>90.5 AND VAR9>95.5 AND VAR12=100 AND HDFGS AND VAR6=100 AND VAR7=0,CLOSE,11),ALIGN0;
DRAWICON(VAR23>98 AND VAR10>98 AND VAR9>99.3 AND VAR12=100 AND VAR6=100 AND HDFGS AND VAR7=0,CLOSE,12),ALIGN0;
DRAWTEXT(死叉 AND CLOSE>M3 AND CLOSE>长期趋势彩带 AND VAR23>85.02 AND VAR10>88.8 AND HDFGS AND VAR9>76.928,短期趋势彩带+0.2,'上有____/~↘_____风险'),ALIGN0,colorFFFF00;
DRAWICON(死叉 AND CLOSE>M3 AND CLOSE>长期趋势彩带 AND VAR23>85.02 AND VAR10>88.8 AND HDFGS AND VAR9>76.928,短期趋势彩带+0.1,12),ALIGN0;
DRAWTEXT(金叉 AND CLOSE<M3 AND CLOSE<牛熊线 AND CLOSE<上抛线 AND CLOSE<长期趋势彩带 AND VAR23<15 AND HDFGS AND VAR10<18.5 AND VAR9<14,短期趋势彩带-0.006,'______'),ALIGN0,colorFFFF;
FILLRGN(M1>短期趋势彩带,M1,短期趋势彩带),colorFF;
FILLRGN(短期趋势彩带>M1,短期趋势彩带,M1),colorFF0000;
FILLRGN(M3>长期趋势彩带,M3,长期趋势彩带),colorFF00FF;
FILLRGN(长期趋势彩带>M3,长期趋势彩带,M3),colorFF00;
DRAWICON(金叉 AND CLOSE<M3 AND CLOSE<牛熊线 AND CLOSE<上抛线 AND CLOSE<长期趋势彩带 AND VAR23<19 AND VAR10<18.5 AND HDFGS AND VAR9<14,短期趋势彩带-0.005,10),ALIGN0;
|