A操盘主图
HDFGS:=1;
M5日:EMA(CLOSE,5)*HDFGS,colorFFFF99;
M13日:EMA(CLOSE,13)*HDFGS,colorFFFF;
M34日:EMA(CLOSE,34)*HDFGS,colorFF00FF;
M72日:EMA(CLOSE,72)*HDFGS,colorFF00;
M125日:EMA(CLOSE,125)*HDFGS,LINETHICK2,colorFF;
M250日:EMA(CLOSE,250)*HDFGS,LINETHICK2,colorFF00FF;
CX1:=DATE>900101 AND DATE<1111119;
CX2:=ABS((CLOSE-LLV(LOW,265))/LLV(LOW,265))*100;
CX3:=CX2=0 OR CX2<2.5;
CX4:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5);
CX5:=MA((BARSLAST(LOW=LLV(LOW,13)))*(IF(CLOSE>OPEN,VOL,1)),3)<900;
CX6:=(CLOSE-LLV(LOW,125))/(HHV(HIGH,125)-LLV(LOW,125))*100;
CX7:=SMA(CX6,34,1);
CX8:=SMA(CX7,26,1);
CX9:=3*CX7-2*CX8;
CX10:=CX9<-1;
安全投资:=(CLOSE>0 AND CLOSE<=50 AND CX4<34 AND CX5 AND CX3 AND CX1 AND CX10)*95;
趋:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;
趋势:=(CLOSE-LLV(CLOSE,260))/(HHV(CLOSE,260)-LLV(CLOSE,260))*100;
V1:=REF(OPEN,1)*CX1;
V2:=(SMA(MAX(OPEN-V1,0),6,1))/(SMA(ABS(OPEN-V1),6,1))*100*CX1;
V3:=REF(CLOSE,1);
V4:=(SMA(MAX(CLOSE-V3,0),6,1))/(SMA(ABS(CLOSE-V3),6,1))*100;
V5:=REF(HIGH,1);
V6:=(SMA(MAX(HIGH-V5,0),6,1))/(SMA(ABS(HIGH-V5),6,1))*100;
V7:=REF(LOW,1);
V9:=(SMA(MAX(LOW-V7,0),6,1))/(SMA(ABS(LOW-V7),6,1))*100;
V8:=(MIN(OPEN,CLOSE)-LOW)/LOW*100>VOL/CAPITAL*0.001;
V10:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,13))*100;
V11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
V12:=EMA(V11,8)*10<-26;
V13:=IF(V8 AND MA(V10,5)<50 AND V12,30,0);
开盘:=V2;
收:=V4;
高:=V6;
低位量:=V9;
底部建仓:=(V2<21 AND V4<20 AND V6<20 AND V9<18)*15;
DRAWTEXT(底部建仓,LOW-0.35,' 买 '),ALIGN0;
DRAWTEXT(低位量>82 AND 趋势>80,HIGH+0.1,' 卖'),ALIGN0;
DRAWICON(低位量<20 AND 开盘>13 AND 趋势<5 AND 底部建仓 OR (低位量<18)>0,LOW,4);
DRAWICON(低位量>88,HIGH+0.01,5),colorCCCC66;
|