量价趋势 改成大智慧指标
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

价趋势:MA(C,3)LINETHICK2 COLORGRAY;AMOL:=LOG(MA(AMO/C/100,M));AMOH:=LOG(MA(AMO,M)/C/100);FF:=CONST(LLV(AMOL,N)); BB:=CONST(HHV(AMOL,N))-FF;JD:=CONST(LLV(L,N)); JJ:=CONST(HHV(H,N))-JD;价趋势比:=(AMOL-FF)/BB; XX:=价趋势比*JJ+JD;量趋势:XX,LINETHICK2 COLORRED;放量下跌:IF(EVERY(价趋势REF(XX,1),K),价趋势,DRAWNULL)LINETHICK6 COLORYELLOW;缩量上涨:IF(EVERY(价趋势>REF(价趋势,1)AND XXREF(价趋势,1)AND XX>REF(XX,1),K),价趋势,DRAWNULL)LINETHICK6 COLORGREEN;缩量下跌:IF(EVERY(价趋势1 AND XX>(价趋势*1.382),价趋势*0.9,DRAWNULL)LINETHICK6 COLORBLUE;SLXDXG:=IF(缩量下跌>1 AND XX<价趋势,价趋势*0.8,DRAWNULL)LINETHICK8 COLORWHITE;理想论坛.实易行:888 COLORBROWN NODRAW;n 1 360 120m 1 100 5k 1 50 2

解答:

 N:=120;M:=5;K:=2;

价趋势:MA(C,3),LINETHICK2,COLORGRAY;
AMO:=AMOUNT;
AMOL:=LOG(MA(AMO/C/100,M));
AMOH:=LOG(MA(AMO,M)/C/100);
FF:=HHVALL(IF(DISPSTATUS=2,LLV(AMOL,N),0));
BB:=HHVALL(IF(DISPSTATUS=2,HHV(AMOL,N),0))-FF;
JD:=HHVALL(IF(DISPSTATUS=2,LLV(L,N),0));
JJ:=HHVALL(IF(DISPSTATUS=2,HHV(H,N),0))-JD;
价趋势比:=(AMOL-FF)/BB;
XX:=价趋势比*JJ+JD;
量趋势:XX,LINETHICK2,COLORRED;
放量下跌:IF(ALL(价趋势<REF(价趋势,1)AND XX>REF(XX,1),K),价趋势,0),LINETHICK0,COLORYELLOW;
缩量上涨:IF(ALL(价趋势>REF(价趋势,1)AND XX<REF(XX,1),K),价趋势,0),LINETHICK0,COLORRED;
放量上涨:IF(ALL(价趋势>REF(价趋势,1)AND XX>REF(XX,1),K),价趋势,0),LINETHICK0,COLORGREEN;
缩量下跌:IF(ALL(价趋势<REF(价趋势,1)AND XX<REF(XX,1),K),价趋势,0),LINETHICK0,COLORWHITE;
FLXDXG:=IF(放量下跌>1 AND XX>(价趋势*1.382),价趋势*0.9,0);
SLXDXG:=IF(缩量下跌>1 AND XX<价趋势,价趋势*0.8,0);
理想【实易行】:888,COLORBROWN,LINETHICK0;
PARTLINE(价趋势,ALL(价趋势<REF(价趋势,1)AND XX>REF(XX,1),K)),LINETHICK6,COLORYELLOW;
PARTLINE(价趋势,ALL(价趋势>REF(价趋势,1)AND XX<REF(XX,1),K)),LINETHICK6,COLORRED;
PARTLINE(价趋势,ALL(价趋势>REF(价趋势,1)AND XX>REF(XX,1),K)),LINETHICK6,COLORGREEN;
PARTLINE(价趋势,ALL(价趋势<REF(价趋势,1)AND XX<REF(XX,1),K)),LINETHICK6,COLORWHITE;

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