分钟线上第一次符合这个条件买入,第二分钟卖出,用Python怎么写呀,麻烦帮忙看下,谢谢了
N:=9;
M1:=3;
M2:=3;
XA_1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))100;
K:=SMA(XA_1,M1,1);
D:=SMA(K,M2,1);
J:=3K-2*D;
OK:=REF(CLOSE,1);
YU:=SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100;
XG:J<0 AND YU<5;