红财神发卖出信号,财宝天王(白线)继续上升时可继续持仓,向下转向时即刻卖出,回避风险。
源码:
REFLINE:0;
VAR1:=MA(CLOSE,18);
VAR2:=(CLOSE-VAR1)/VAR1*100;
VAR3:=MA(VAR2,1);
财宝天王:VAR3;
VAR4:=BARSLAST(CROSS(-10,VAR3)=1);
VAR5:=BARSLAST(CROSS(VAR3,10)=1);
VAR6:=VAR3 -10 AND VAR4
VAR7:=VAR3 10 AND VAR5
C1:=IF(VAR3 -10 AND VAR4 =5,VAR3,0);
C3:=IF(VAR3 10 AND VAR5 =5,VAR3,0);
黄财神: C1, coloryellow,LINETHICK0;
红财神: C3,colorred,LINETHICK0;
FILLRGN(C1,0,C1 -10,RGB(80,80,00),1,RGB(0,0,0));
FILLRGN(C3,0,C3 10,RGB(80,00,00),1,RGB(0,0,0));