源码
量价趋势指标
价趋势: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(价趋势,1)AND XX>REF(XX,1),K),价趋势,DRAWNULL)LINETHICK6 COLORYELLOW; 缩量上涨:IF(EVERY(价趋势>REF(价趋势,1)AND XX<REF(XX,1),K),价趋势,DRAWNULL)LINETHICK6 COLORRED; 放量上涨:IF(EVERY(价趋势>REF(价趋势,1)AND XX>REF(XX,1),K),价趋势,DRAWNULL)LINETHICK6 COLORGREEN; 缩量下跌:IF(EVERY(价趋势<REF(价趋势,1)AND XX<REF(XX,1),K),价趋势,DRAWNULL)LINETHICK6 COLORWHITE
移动端首页 | PC端
© by Gszb.com Mobile Web
源码
量价趋势指标
价趋势: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(价趋势,1)AND XX>REF(XX,1),K),价趋势,DRAWNULL)LINETHICK6 COLORYELLOW;
缩量上涨:IF(EVERY(价趋势>REF(价趋势,1)AND XX<REF(XX,1),K),价趋势,DRAWNULL)LINETHICK6 COLORRED;
放量上涨:IF(EVERY(价趋势>REF(价趋势,1)AND XX>REF(XX,1),K),价趋势,DRAWNULL)LINETHICK6 COLORGREEN;
缩量下跌:IF(EVERY(价趋势<REF(价趋势,1)AND XX<REF(XX,1),K),价趋势,DRAWNULL)LINETHICK6 COLORWHITE