Current location - Trademark Inquiry Complete Network - Futures platform - Ask the expert to help make a straight flush stock selection formula, requiring the stock price to be near the 60-day moving average, and the 5-day moving average has turned its head upwards. The foll
Ask the expert to help make a straight flush stock selection formula, requiring the stock price to be near the 60-day moving average, and the 5-day moving average has turned its head upwards. The foll
Ask the expert to help make a straight flush stock selection formula, requiring the stock price to be near the 60-day moving average, and the 5-day moving average has turned its head upwards. The following source code appears in the red column. Var 1:=(2 * close+high+low)/4;

VAR2:=MA(VAR 1,7);

VAR3:=VAR2-MA(VAR 1,7/2)& lt; 0;

VAR4:=VAR2-MA(VAR 1,7/2)>0;

var 5:= bars last(var 3);

var 6:= 0-bars last(var 4);

var 7:= IF(var 3 & lt; =0,VAR5,var 6);

Buying and selling: = (-1) * var 7;

Strength limit: = 0;

XG:C & gt; =MA(C, 60) and MA(C, 5)>REF(MA(C, 5), 1) and CROSS (business, 0);

{Personal opinion, for reference only. }