bb:="rsi.rsi2"(3,14,24);
二线差RSI:if((bb-aa)/aa>n,30,0),stick,linethick2,color00ff00;
drawtext((bb-aa)/aa>n,25,'RSI二线差'),colorf0f000;
============================
{横盘起动}
A1:=100*(WINNER(1.1*C)-WINNER(0.9*C));
A2:=((CLOSE-LOW)/(HIGH-LOW)+(CLOSE-HIGH)/(HIGH-LOW))*VOL;
A3:=SUM(A2,10)/10000;
Var1c:=AMOUNT/VOL/100;
Var2c:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
Var3c:=SUM(AMOUNT,5)/Var1c/100;
Var4c:=SUM(AMOUNT,13)/Var1c/100;
Var5c:=SUM(AMOUNT,34)/Var1c/100;
CYC5:=DMA(Var2c,VOL/Var3c);
CYC13:=DMA(Var2c,VOL/Var4c);
CYC34:=DMA(Var2c,VOL/Var5c);
CYS13:=(CLOSE-CYC13)/CYC13*100;
CYR13:=CYC13/REF(CYC13,1)*120-120;
MA5:=MA(C,5);
B:=VOL*100/CAPITAL;
AAa:=COUNT(A1>60,20)=20;
横盘启动:if(AAa AND CYC5>CYC13 AND CYC13>CYC34,10,0),linethick2,colorblue;
============================
{上升斜率ma}
aa2:=ma(c,5);
bb2:=ref(ma(c,5),1);
上升斜率ma:if((aa2-bb2)/bb2>n2/1000,30,0),color00ff00;
drawtext((aa2-bb2)/bb2>n2/1000,20,'上升斜率ma'),color000999;
============================
{飞鹰双翼}
Var1g:=CLOSE/MA(CLOSE,40)*100 < 78;
Var2g:=CLOSE/MA(CLOSE,60)*100 < 74;