源码
{公称名称: 进出要自如}
VAR5:=COST(9);
VAR6:=(((CLOSE - VAR5) / VAR5) * 100);
VAR7:=COUNT((VAR6 < (0 - 2.05)),3);
主力蓄势:=IF((VAR7 >= 3),2,0);
MAV:=EMA((((CLOSE + LOW) + HIGH) / 3),3);
SK:=EMA(EMA((((CLOSE + LOW) + HIGH) / 3),4),21);
SD:=EMA(SK,17);
B:=((2 * (SK - SD)) * 5);
进:IF((B >= 0),B,0),LINESTICK,LINETHICK1,colorFF;
出:IF((B <= 0),B,0),LINESTICK,LINETHICK1,colorFF0000;
自如:FORCAST(进,13),LINESTICK,colorFFFF;
买卖:IF((自如 <= 0),自如,0),LINESTICK,LINETHICK1,colorFF00;
自由:IF((进 <= 0),进,自如),LINESTICK,LINETHICK1,colorFFFFFF;
IF((自由 > 进),自由,进),LINESTICK,LINETHICK1,colorFF00;
IF((B >= 0),B,0),LINESTICK,LINETHICK1,colorFF;
XYZ2:=MA(SK,5);
STICKLINE((SK < XYZ2),出,进,0.8,0),colorFF0000;
STICKLINE((SK > XYZ2),自如,自由,0.8,0),colorFF00;
PARTLINE((自由 < REF(自由,1)),自由),LINETHICK0,colorFF00;
AA:=EMA(((10 * (CLOSE - LLV(LOW,34))) / (HHV(HIGH,34) - LLV(LOW,34))),3);
STICKLINE(CROSS(9.5,AA),进,买卖,8,0),colorFF0000;
STICKLINE(CROSS(9.5,AA),进,买卖,3,0),colorFFFF99;
STICKLINE(CROSS(9.5,AA),进,买卖,1,0),colorFFFF00;
STICKLINE(CROSS(AA,1.1),1.2,0,8,0),colorFFFF;