诸葛买卖金点通达信公式 源码 副图 和谐源码分享
VAR1:=1;
VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4);
高位:90,COLORFFFF00;
低位:20,COLORMAGENTA;
VAR4:=LLV(LOW,5);
VAR5:=HHV(HIGH,4);
C1:(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),COLORFF00FF;
C2:(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFFFFF;
H1:IF( CROSS(C2,C1),C2,DRAWNULL),CROSSDOT,LINETHICK7,COLORYELLOW;
F1_:IF(CROSS(C2,C1),C2,DRAWNULL),CIRCLEDOT,LINETHICK2,COLORRED;
DRAWTEXT(CROSS(C1,C2),REF(C2,1),'加仓'),COLORRED;
DRAWTEXT(CROSS(C2,C1),REF(C1,1),'卖'),COLORGREEN;
H2:IF( CROSS(C1,C2),C1,DRAWNULL),CROSSDOT,LINETHICK7,COLORMAGENTA;
F2_:IF(CROSS(C1,C2),C1,DRAWNULL),CIRCLEDOT,LINETHICK2,COLORYELLOW;
DRAWICON(CROSS(C1,C2) AND C2>0,C2,1);
DRAWICON(CROSS(C2,C1) AND C2<-100,C1,2);
DRAWICON(CROSS(C1,C2) AND C2<0,C2,1);
DRAWICON(CROSS(C2,C1) AND C2>-100,C1,2);
条件:=CROSS(C1,C2) AND C1<40;
条件0:=CROSS(C2,C1) AND C1>90;
TJ1:=CROSS(C1,C2);
TJ2:=CROSS(C2,C1);
TJ3:=CROSS(C1,C2) AND REF(C1,1)<20;
TJ4:=CROSS(C2,C1) AND REF(C1,1)>80;
DRAWTEXT(条件,20,'买'),COLORWHITE;
DRAWTEXT(条件0,85,'卖'),COLORYELLOW;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:1
VAR2赋值:((((2*收盘价)+最高价)+最低价) / 4)
输出高位:90,COLORFFFF00
输出低位:20,画洋红色
VAR4赋值:5日内最低价最低值
VAR5赋值:4日内最高价最高值
输出C1:(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),COLORFF00FF
输出C2:(EMA(((0.667*1日前的C1)+(0.333*C1)),2)*VAR1),COLORFFFFFF
输出H1:IF( C2上穿C1,C2,DRAWNULL),CROSSDOT,LINETHICK7,画黄色
输出F1_:IF(C2上穿C1,C2,DRAWNULL),CIRCLEDOT, 线宽为2,画红色
DRAWTEXT(C1上穿C2,1日前的C2,'加仓'),画红色
DRAWTEXT(C2上穿C1,1日前的C1,'卖'),画绿色
输出H2:IF( C1上穿C2,C1,DRAWNULL),CROSSDOT,LINETHICK7,画洋红色
输出F2_:IF(C1上穿C2,C1,DRAWNULL),CIRCLEDOT, 线宽为2,画黄色
DRAWICON(C1上穿C2 AND C2>0,C2,1)
DRAWICON(C2上穿C1 AND C2<-100,C1,2)
DRAWICON(C1上穿C2 AND C2<0,C2,1)
DRAWICON(C2上穿C1 AND C2>-100,C1,2)
条件赋值:C1上穿C2 AND C1<40
条件0:=C2上穿C1 AND C1>90
TJ1赋值:C1上穿C2
TJ2赋值:C2上穿C1
TJ3赋值:C1上穿C2 AND 1日前的C1<20
TJ4赋值:C2上穿C1 AND 1日前的C1>80
当满足条件条件时,在20和'买'位置书写文字
当满足条件条件0时,在85和'卖'位置书写文字