以下是通达信放心一号 主图指标公式
{放心一号}
VBR1:=MA(CLOSE,1);
VBR2:=(LOW+HIGH+CLOSE)/3;
VBR3:=MA(VBR2,5);
VBR4:=HHV(VBR3,10);
VBR5:=HHV(VBR1<VBR4,10) OR HHV(VBR1<VBR4,10);
VBR6:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,35)-LLV(LOW,34)),3);
DRAWTEXT(FILTER(CROSS(VBR6,60),20),LOW*0.98,1),COLORYELLOW;
STICKLINE(VBR6>60,OPEN,CLOSE,2,0),COLORRED;
STICKLINE(VBR6>60,HIGH,LOW,0,0),COLORRED;
STICKLINE(VBR6<60,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(VBR6<60,HIGH,LOW,0,0),COLORGREEN;
VAR1:MA(CLOSE,5);
VAR2:MA(CLOSE,10);
VAR3:MA(CLOSE,20);
VAR60:MA(CLOSE,60);
VAR120:MA(CLOSE,120);
VBR7:=OPEN<VAR1 OR OPEN<VAR2 OR OPEN<VAR3;
VBR8:=CLOSE>MAX(VAR1,MAX(VAR2,MAX(VAR3,VAR60)));
VBR9:=VOL/MA(VOL,30)>1.2;
VBR10:=CLOSE/REF(CLOSE,1)>1.049;
VBR11:=VBR7 AND VBR8 AND VBR9 AND VBR10;
VBR12:=VBR11 AND (REF(BARSLAST(VBR11),1)>60 OR BARSSINCE(VBR11)=0);
DRAWICON(VBR12,LOW*0.98,1);
STICKLINE(VBR12,OPEN,CLOSE,6,0),COLORYELLOW;
STICKLINE(VBR12,HIGH,LOW,0.6,0),COLORYELLOW;