多方趋势: (7*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*30,4,1)-3*SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*30,4,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*30,4,1),3,1),2,1)),COLOR2424FF;
空方趋势: EMA(MA(多方趋势,4),7),LINETHICK1,COLOR1AFF1A;
STICKLINE(多方趋势<空方趋势,多方趋势,空方趋势,8,0),COLORCECE00;
STICKLINE(多方趋势<空方趋势,多方趋势,空方趋势,4,0),COLORFFFF00;
STICKLINE(多方趋势<空方趋势,多方趋势,空方趋势,2,0),COLORFFFF3C;
STICKLINE(空方趋势<14 AND 空方趋势>多方趋势,多方趋势,0,10,0),COLOR00D9D9;
STICKLINE(空方趋势<14 AND 空方趋势>多方趋势,多方趋势,0,4,0),COLOR06FFFF;
STICKLINE(空方趋势<14 AND 空方趋势>多方趋势,多方趋势,0,2,0),COLOR3CFFFF;
VARA:= EMA(0.667*REF(多方趋势,1)+0.333*多方趋势,2);
STICKLINE(多方趋势>VARA,多方趋势,VARA,8,0),COLOR0000C6;
STICKLINE(多方趋势>VARA,多方趋势,VARA,4,0),COLOR0000FF;
STICKLINE(多方趋势>VARA,多方趋势,VARA,2,0),COLOR3C3CFF;
B1:= 多方趋势>VARA;
介入¥: B1>REF(B1,1) AND 多方趋势<38,COLOR1AFFFF;
DRAWTEXT(介入¥,60,'★'),COLOR1AFFFF;