源码
N1:=9;R:=75;
Var1:=REF(OPEN,1);
Var2:=SMA(MAX(OPEN-Var1,0),N1,1)/SMA(ABS(OPEN-Var1),N1,1)*100;
Var3:=REF(CLOSE,1);
Var4:=SMA(MAX(CLOSE-Var3,0),N1,1)/SMA(ABS(CLOSE-Var3),N1,1)*100;
Var5:=REF(HIGH,1);
Var6:=SMA(MAX(HIGH-Var5,0),N1,1)/SMA(ABS(HIGH-Var5),N1,1)*100;
Var7:=REF(LOW,1);
Var8:=SMA(MAX(LOW-Var7,0),N1,1)/SMA(ABS(LOW-Var7),N1,1)*100;
Var9:=COST(10)*0;
开盘价: Var2, POINTDOT;
收盘价: Var4, POINTDOT;
VarA:=Var6;
VarB:=Var8;
STICKLINE(收盘价>开盘价,VarA,VarB,0.5,1);
STICKLINE(收盘价<开盘价,VarA,VarB,0.5,0);
STICKLINE(收盘价>开盘价,收盘价,开盘价,5,1);
STICKLINE(收盘价<开盘价,收盘价,开盘价,5,0);
超买线: 80;
VarC:=(2*CLOSE+HIGH+LOW)/4;
VarD:=LLV(LOW,34);
VarE:=HHV(HIGH,34);
VarF:=EMA((VarC-VarD)/(VarE-VarD)*100,13);
Var10:=EMA(0.667*REF(VarF,1)+0.333*VarF,2);
持仓: STICKLINE(VarF>Var10,-6,-4,10,1);
空仓: STICKLINE(VarF<Var10,-6,-4,10,0);
MA5: MA(收盘价,5);
MA10: MA(收盘价,10);
MA30: MA(收盘价,30);
买进: IF(CROSS(MA5,MA10) AND MA10<20,70,0);
DRAWICON(买进,65,0);
卖出: IF(收盘价>=82,48,0);
DRAWICON(卖出,40,2);