编写条件:
a2:="主图二.a2";
a21:=REF(a2,1);
a2斜率:=((a2-a21)/a21*100)*10;
a5:="主图二.a5";
a51:=REF(a5,1);
a5斜率:=((a5-a51)/a51*100)*10;
a10:="主图二.a10";
a30:="主图二.a30";
小线多头:=COUNT(a2>a5 AND a5>a10 AND a10>a30,1);
今涨停:=C/REF(C,1)>1.06;
n内有:=count(今涨停,7);
价触a2:=H-a2>=0;
{价上:=CROSS(C,a5);}
大涨卖出:a2斜率
8 and 小线多头 and 价触a2 and n内有;
触线卖出:a2斜率c,1);
R1:=((LLV(LOW,5) = LLV(LOW,45)) AND (CLOSE >= (OPEN * 1.04)));
R2:=(CLOSE > ((REF(HIGH,1) + REF(LOW,1)) / 2));
R3:=REF(CLOSE,1);
R4:=((SMA(MAX((CLOSE - R3),0),6,1) / SMA(ABS((CLOSE - R3)),6,1)) * 100);
波段买入:R1 AND R2,STICK,COLOR16EB41;
波段卖出:CROSS(80,R4),STICK,COLOR3820E1;
A10:="主图二.a10";
价上a10:=c>a10;
前天:=REF(A10,1);
A10斜率:=((A10-前天)/前天*100)*10;
上a10:价上a10 and A10斜率>6;
编写方法:
波段买入:llv(l,5)=llv(l,45) and c>=o*1.04 and c>(ref(h,1)+ref(l,1))/2;