在(红.绿线上拐 )处作一个大智慧预警买入公式
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

解答:

 网友求助:

老师你好:要求是红.绿线上拐,两线都全部穿过黄线时作大智慧预警买入指标公式.谢谢!

附原码:
N:=14; M:=6;
A:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);
A1:=HIGH-REF(HIGH,1);
A2:=REF(LOW,1)-LOW;
DMP:=SUM(IF(A1>0 AND A1>A2,A1,0),N);
DMM:=SUM(IF(A2>0 AND A2>A1,A2,0),N);
PDI:=DMP*100/A;
MDI:=DMM*100/A;
强弱:pdi-mdi,Color00ff00;
MA强弱3:EMA(强弱,3),colorred;
MA强弱20:EMA(强弱,20),color00FFFF;
V0:0,Colorffa2af;

 
解答如下:
N:=14;
A:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);
A1:=HIGH-REF(HIGH,1);
A2:=REF(LOW,1)-LOW;
DMP:=SUM(IF(A1>0 AND A1>A2,A1,0),N);
DMM:=SUM(IF(A2>0 AND A2>A1,A2,0),N);
PDI:=DMP*100/A;
MDI:=DMM*100/A;
强弱:=PDI-MDI;
MA强弱3:=EMA(强弱,3);
MA强弱20:=EMA(强弱,20);
XG:强弱>MA强弱20 AND MA强弱3>MA强弱20 AND REF(MA强弱3,1)<REF(MA强弱20,1);
 

 


选股票看什么指标最好 >股票指标网