DIFF:EMA (closing, 3)-EMA (closing,16);
DEA:EMA(DIFF,7);
MACD:2*(DIFF-DEA),COLORSTICK,LINETHICK2
● Golden fork: = cross (diff, DEA) and diff.
The gluing line (0, 0.08, 6, 0) is yellow;
DRAWTEXT (low gold fork, 0.25,' low gold fork'), COLORWHITE
JCCOUNT:=COUNT(CROSS(DIFF,DEA),bars last(DEA & gt; =0));
Quadratic golden fork: = cross (diff, DEA) and DEA < 0 AND COUNT(JCCOUNT=2 = 2,21) =1;
STICKLINE (quadratic golden fork, 0, 0.06, 6, 0), COLORFF00FF.
DRAWICON (quadratic golden fork, DEA*0.9,1);
DRAWTEXT (secondary gold fork, 0.5,' secondary gold fork'), COLORYELLOW
a 1:= bars last(REF(CROSS(DIFF,DEA), 1));
Bottom deviation: = ref (close, a1+1) > close and diff > REF(DIFF, A 1+ 1) and CROSS(DIFF, DEA);
Glue line (bottom deviation, 0,0.03,6,0);
Bottom loop: draw a line (A 1=0, DEA, bottom deviation, DEA, 0), colored;
DRAWTEXT (bottom deviation, 0, "bottom deviation"), color, line thickness 2;
A2:=BARSLAST(REF(CROSS(DEA,DIFF), 1));
Top deviation: = ref (close, A2+ 1) < CLOSE AND REF(DIFF, A2+ 1)>DIFF and CROSS(DEA, diff);
Up and down: DRAWLINE(A2=0, DEA, upper deviation, DEA, 0), COLORGREEN.
DRAWTEXT (deviation from bottom of low-position gold fork and secondary gold fork, 0.75,' three whole items'), COLOR0000FF, LINETHICK2.
Bottom deviation > 0;
Secondary golden fork >: 0;
Top deviation = 0;
● golden fork > 0;
2. Entanglement theory is based on the most basic certainty of the market that "any trend will end", and gradually deduces the structure of the trend from the geometric point of view, and scientifically and completely classifies various trends in the market, thus guiding the actual operation.