C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- OBV:=SUM(IF(CLOSE>REF(CLOSE,1),C*V*100,IF(CLOSE<REF(CLOSE,1),-V*C*100,0)),0);
-
- STICKLINE(C>REF(C,1),REF(OBV,1),OBV,2,0),COLORRED;
- STICKLINE(C<REF(C,1),REF(OBV,1),OBV,2,0),COLORGREEN;
- STICKLINE(C=REF(C,1),REF(OBV,1),OBV,2,0),COLORWHITE;
-
- AA:=HHV(OBV,20);
- HH:REF(AA,1),dotline;
-
- {
- 其中AA:=HHV(OBV,20); 20 可改成变量参数调整 }