Current location - Loan Platform Complete Network - Foreign exchange account opening - How to combine two foreign exchange indicators into one?
How to combine two foreign exchange indicators into one?
These two buying and selling formulas are all seen on the forum. One formula is called "accurate buying" and the other formula is called "gold selling point". After a period of testing, the accuracy is very high. Unfortunately, looking at the two subgraphs takes up a lot of space, so they are merged into one subgraph, but in this way, the signal of "accurate purchase" becomes very flat and almost invisible. Ask the master to combine the two formulas into a picture, and restore the clear buying signal of "accurate buying" with yellow and red to make the picture more perfect.

The original code of the formula is as follows:

Accurate purchase

K2:=EMA(C,5),COLORFFFF00

K3:=EMA(C, 10),COLORFFFF00

K5:=EMA(C,30),COLORFFFF00KK5:=EMA(INDEXC,30),COLORFFFF00

K6:= 2 *(K2-K5); K7:= 2 *(K2-K3); K8:=2*(K7+K6),COLORRED

STICKLINE(CROSS(K8,0),0, 10,8,0),COLORRED

k 1:= IF(K8 & gt; Ref (k8,5) and k3< ref (k3,5), 1, 0), COLORYELLOW.

k 2 1:= IF(K8 & gt; Ref (k8,7) and k3< ref (k3,7), 1, 0), COLORYELLOW.

k 3 1:= IF(K8 & gt; Ref (k8,9) and k3< ref (k3,9), 1, 0), COLORYELLOW.

K4:= IF(K8 & gt; REF(K8, 1 1) and K3 & ltREF(K3, 1 1), 1, 0), COLORYELLOW.

Below: Glue wires ((K 1 or K2 1 or K3 1 or K4) and K8.

Gold selling point

VAR3:=REF(HIGH, 1)* 1. 1;

var 4:= HIGH * 1. 1;

var 5:=(var 4 * VOL+var 3 *(CAPITAL-VOL))/CAPITAL;

VAR6:=REF(LOW, 1)* 0.9;

Var 7:= low * 0.9;

var 8:=(var 7 * VOL+var 6 *(CAPITAL-VOL))/CAPITAL;

VAR9:=EMA(VAR8,30);

VARA:=EMA(VAR5,30);

VARB:= vara-2;

VARC:= IF(CLOSE & lt; =VAR9,VARB,VARA);

VARD:=MA (closing, 80)-MA (closing,10)/17;

VARE:=(CLOSE-LLV (low, 34))/(HHV (high, 34)-LLV (low, 34)) *100;

Selling lines: SMA (SMA (Vare, 3 1), 3 1), color FF 6633.

Buying line: 3*SMA(VARE, 3 1)-2 * selling line, COLORRED.

DRAWICON (cross (90, buy thread), 90, 2);

Top: STICKLINE (cross (90, buying line), 100, 0, 5, 0), COLORGREEN.

Gold point: Stickline (SMA (VARE, 3, 1) > selling line, SMA (VARE, 3, 1), selling line, 4,0), COLORYELLOW.

0; 100;