As shown in the picture, the smiling face on the main picture represents our opening position. Combined with the Flame Mountain in the previous picture, we can see that the main force has abnormal movements before the smiling face appears, while the other picture is a sub-picture combined with MACD. It can be observed from this sub-picture that during this period, the trend broke through the zero axis and became active, and then a slight downward adjustment also heralded a wave of dish washing. Our main picture also gave a cry signal in time, allowing us to escape in time. When the dishes are finished and changed again, the smiling face appears again, and all three auxiliary pictures can see the signal, which is the best intervention point.
Source code:
BHG_DDI:= (amount/volume);
BHG_JJ:= ((On+Off)/2);
BHG _ PJJ:= 0;
BHG_DDING:=EMA(CLOSE,6);
BHG _ MMD:= Ma (BHG_DDING,1);
BHG_XXD:=EMA (closing price,18);
BHG_YYZ:=REF(BHG_MMD, 1);
BHG_XXD 1:=REF(BHG_XXD, 1);
BHG _ yyz 1:= bars count(CLOSE);
BHG _ TDCG:= IF((BHG _ YYZ 1 = 1),0,(((BHG _ MMD-BHG _ YYZ)/BHG _ YYZ)* 100));
BHG _ ZFD:= IF((BHG _ yyz 1 = 1),0,(((BHG _ XXD-BHG _ XXD 1)/BHG _ XXD 1)* 100));
BHG_JSD2:=REF(CLOSE, 1);
CLOSE 1:= IF((BHG _ yyz 1 = 1),0,((((CLOSE-BHG _ jsd 2)/BHG _ jsd 2)* 100));
Bhg _ jzdf: = if ((bhg _ yyz1=1), ((close+open)/2), bhg _ yyz);
BHG _ DCGJ:= BHG _ MMD;
JJ0:= BHG _ YYZ;
JJ 1:=REF(BHG_MMD,2);
JJ2:=(((BHG _ DCGJ+JJ0)+jj 1)/3);
JJ02:=(((ABS((BHG _ DCGJ-JJ2))+ABS((JJ0-JJ2))+ABS((jj 1-JJ2)))/3);
SS:=REF(BHG_TDCG, 1);
BHG_ZFD 1:=REF(BHG_TDCG,2);
BHG _ zfd 2:= IF((BHG _ yyz 1 & lt; 3),0,((JJ02/BHG _ DCGJ)* 100));
BHG _ DHPXS:= IF((BHG _ yyz 1 & lt; 3),0,IF((((BHG _ TDCG & lt; 0) and (SS<0)) and (bhg _ zfd1< 0)),(0 - 1), 1));
SSB:=REF(BHG_TDCG, 1);
BHG _ YZFZ:= IF((((BHG _ yyz 1 & gt; 1 1) and (SSB 0)) and (bhg _ tdcg >; 0)), 1,0);
BHG _ jsd 2 1:= bars last((BHG _ YZFZ = 1));
BHG_JSD:=REF(BHG_JSD2 1, 1);
Answer: = if (((bhg _ yyz1> 1 1) and (SS 0)) and (bhg _ tdcg >; 0))、(BHG_JSD + 1)、BHG _ JSD);
BHG _ jsd 1 1:= BHG _ JZDF;
DMRJ:= BHG _ JZDF;
DMCJ:= IF(((BHG _ yyz 1 & gt; 1 1) and (bhg _ jsd11< Open), open, bhg _ jzdf);
BHG _ DMRJ:= IF(((BHG _ yyz 1 & gt; 1 1) and (DMRJ & gt on), on, bhg _ jzdf);
BHG _ DMCJ:= 0;
BHG_DCG 1:=REF(BHG_JZDF, 1);
BHG _ BD F5:= IF(((((BHG _ TDCG & gt; 0.5) and ((bhg _ zfd2 >; 0.2 15) or (low & gtBHG_JZDF)) and (CLOSE & gt= open)) and (close & gt= 200) or ((CLOSE & lt200) and (close1<; 1 1)))), 1,0);
BHG _ DMR:= IF((((BHG _ TDCG(0-0.3))AND((BHG _ zfd 2 & gt; 0.2) or (high BHG_JZDF)) and ((open & gt= CLOSE) or (close1< (0 - 1)))), 1,0);
BHG _ dks 1:= Balcins (bhg _ bdf5);
TDMR BHG:= Balcins (DMR bhg);
DMRB BHG:= DMR BHG;
Bhg _ dcgj1:= ((count (bhg _ bdf5, BARSLAST(BHG_DMRB)) = 1) and bhg _ bdf5);
BHG_DMRBUY:=((COUNT(BHG_DMRB, BARSLAST(BHG_BDF5)) = 1) and bhg _ dmrb);
BHG _ DMC sell:= bars last(BHG _ dmr buy);
BHG _ DCG 10:= bars last(BHG _ dcgj 1);
BHG _ DCG 1 1:=((SUM(BHG _ dmr buy,BHG _ DCG 10)= 0)* BHG _ DCG 10);
BHG _ DCGREAL:= REF(BHG DMCJ _ DCG 1 1);
BHG _ dmrj 1 1:= REF(BHG _ DCGREAL, 1);
Bhg _ dmrj1:= if ((bhg _ dcgj1=1), ((clos-DMCJ)/DMCJ) * 100), ((bhg _ dmrj-bhc).
BHG _ DCG:= IF(((((BHG _ DCG 1 1 = 0)AND(BHG _ dcgj 1 = 0))AND(BHG _ dmr buy = 0)),0,BHG _ dmrj 1);
SJ:=IF(DATE 0)*SJ,OPEN,CLOSE,0,0),COLORFFBBFF
STICKLINE ((tuyere strength >; 0)*SJ,OPEN,CLOSE,3,0),COLORFF99FF
STICKLINE ((tuyere strength >; 0)*SJ,OPEN,CLOSE,2,0),COLORFFAAFF
STICKLINE ((tuyere strength >; 0)*SJ,OPEN,CLOSE, 1,0),COLORFFBBFF
STICKLINE ((short selling = 1) * SJ, opening, closing, 0,0), color 00ff00.
STICKLINE ((short selling = 1) * SJ, opening, closing, 3,0), color 00dd00.
STICKLINE ((short selling = 1) * SJ, open, close, 2,0), color00ee00.
STICKLINE ((short selling = 1) * SJ, opening and closing, 1, 0), color 00ff00.
DRAWICON ((short buy > 0)*SJ, low * 0.995,5);
DRAWICON ((short selling = 1) * SJ, high *1.015,4);
Bhg _ maxdsy: = count ((bhg _ DMR =1) and (BHG_DCG 0)), 0);
BHG_GLDSY:=HHV(BHG_DCG,0);
BHG _ DCSLJ:= Balcins ((BHG_DMR = 1) and (bhg _ dcg0));
BHG_DCSLY:=IF((BHG_DMR = 1),BHG_DCG,0);
Plate tracking: SJ*EMA (closing, 7);
AA:=EMA(C, 14),COLORWHITE,line thick 1;
B:=(AA-REF(AA, 1))/REF(AA, 1)* 100,NODRAW
Support: IF(B& gt;; =0,REF(EMA(C, 14),BARSLAST(CROSS(B,0))+ 1),DRAWNULL),COLORRED,LINETHICK2
Resistance: If (b)