主图指标公式【超人】[同花顺公式]
相关标签: 江恩趋势线指标公式 、 通达信趋势线主图公式 、 正确的趋势线主图指标 、 趋势指标公式源码 趋势线 、 趋势乾坤线主图指标 、 主图趋势指标公式源码 、 通达信无未来指标公式 、 长期趋势线指标公式 、 通达信主图自画趋势线 、 判断趋势的最简单指标 、 通达信主图趋势线指标公式 、 趋势副图指标公式 、
提示“买”,说明收盘价离12线已经很远,并且12线离50线也很远,半仓买入分级基金。
原理解析:
源码:
MA1:EMA(CLOSE,P1);MA2:EMA(CLOSE,P2);out1:=CLOSE>(MA1*1.09);out2:=MA1>(MA2*1.09);in1:=CLOSE<(MA1*0.91);in2:=MA1<(MA2*0.91);卖出:out1 AND Out2;买入:in1 AND in2;IF(CLOSE>(MA1*1.09) AND MA1>(MA2*1.09))SELL;IF(CLOSE<(MA1*0.91) AND MA1<(MA2*0.91))BUY;DRAWTEXT(卖出,HIGH*1.001,'↓卖出'),colorgreen;DRAWTEXT(买入,LOW,'↑买入'),colorred;DRAWTEXT(卖出,LOW,'↓卖出'),colorgreen;DRAWTEXT(买入,HIGH*1.001,'↑买入'),colorred;TR=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),M1);HD=HIGH-REF(HIGH,1);LD=REF(LOW,1)-LOW;DMP=SUM(IF(HD>0 AND HD>LD,HD,0),M1);DMM=SUM(IF(LD>0 AND LD>HD,LD,0),M1);DI1:DMP*100/TR;DI2:DMM*100/TR;out3:=MA1<CLOSE AND CLOSE<MA2 AND REF(CLOSE,1)>MA1 AND REF(CLOSE,2)>REF(MA1,2) AND HIGH<MA1;out4:=CROSS(DI2,DI1);in3:=CROSS(DI1,DI2) AND MA1<CLOSE AND CLOSE<MA2 AND REF(CLOSE,3)<MA1;↓:out3 AND out4;阳线:CLOSE>OPEN;DRAWTEXT(↓,HIGH,'↓DMI'),colorgreen;DRAWTEXT(in3,LOW,'↑DMI'),colorred;out5:=REF(MA1,5)<REF(MA2,5) OR REF(MA1,10)<REF(MA2,10) OR REF(MA1,15)<REF(MA2,15) AND CLOSE>MA1 AND HIGH/REF(HIGH,1)>0.999 AND HIGH/REF(HIGH,1)<1.001 AND HIGH/REF(HIGH,2)>0.998 AND HIGH/REF(HIGH,2)<1.002;平台顶:Out5;IF(REF(MA1,5)<REF(MA2,5) OR REF(MA1,10)<REF(MA2,10) OR REF(MA1,15)<REF(MA2,15) AND CLOSE>MA1 AND HIGH/REF(HIGH,1)>0.999 AND HIGH/REF(HIGH,1)<1.001 AND HIGH/REF(HIGH,2)>0.998 AND HIGH/REF(HIGH,2)<1.002)SELL;DRAWTEXT(Out5,HIGH*1.001,'↓平台顶'),colorgreen;DRAWTEXT(Out5,LOW,'↓平台顶'),colorgreen;IF (k<=0)RETURN 0;MA$1:MA(CLOSE, N1);IF (k<=1)RETURN 0;MA$2:MA(CLOSE, N2);IF (k<=2)RETURN 0;TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);HD := HIGH-REF(HIGH,1);LD := REF(LOW,1)-LOW;PDM:= SUM(IF(HD>0 AND HD>LD,HD,0),14);MDM:= SUM(IF(LD>0 AND LD>HD,LD,0),14);PDI:= PDM*100/TR;MDI:= MDM*100/TR;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
MA1:EMA(CLOSE,P1);MA2:EMA(CLOSE,P2);out1:=CLOSE>(MA1*1.09);out2:=MA1>(MA2*1.09);in1:=CLOSE<(MA1*0.91);in2:=MA1<(MA2*0.91);卖出:out1 AND Out2;买入:in1 AND in2;IF(CLOSE>(MA1*1.09) AND MA1>(MA2*1.09))SELL;IF(CLOSE<(MA1*0.91) AND MA1<(MA2*0.91))BUY;DRAWTEXT(卖出,HIGH*1.001,'↓卖出'),colorgreen;DRAWTEXT(买入,LOW,'↑买入'),colorred;DRAWTEXT(卖出,LOW,'↓卖出'),colorgreen;DRAWTEXT(买入,HIGH*1.001,'↑买入'),colorred;TR=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),M1);HD=HIGH-REF(HIGH,1);LD=REF(LOW,1)-LOW;DMP=SUM(IF(HD>0 AND HD>LD,HD,0),M1);DMM=SUM(IF(LD>0 AND LD>HD,LD,0),M1);DI1:DMP*100/TR;DI2:DMM*100/TR;out3:=MA1<CLOSE AND CLOSE<MA2 AND REF(CLOSE,1)>MA1 AND REF(CLOSE,2)>REF(MA1,2) AND HIGH<MA1;out4:=CROSS(DI2,DI1);in3:=CROSS(DI1,DI2) AND MA1<CLOSE AND CLOSE<MA2 AND REF(CLOSE,3)<MA1;↓:out3 AND out4;阳线:CLOSE>OPEN;DRAWTEXT(↓,HIGH,'↓DMI'),colorgreen;DRAWTEXT(in3,LOW,'↑DMI'),colorred;out5:=REF(MA1,5)<REF(MA2,5) OR REF(MA1,10)<REF(MA2,10) OR REF(MA1,15)<REF(MA2,15) AND CLOSE>MA1 AND HIGH/REF(HIGH,1)>0.999 AND HIGH/REF(HIGH,1)<1.001 AND HIGH/REF(HIGH,2)>0.998 AND HIGH/REF(HIGH,2)<1.002;平台顶:Out5;IF(REF(MA1,5)<REF(MA2,5) OR REF(MA1,10)<REF(MA2,10) OR REF(MA1,15)<REF(MA2,15) AND CLOSE>MA1 AND HIGH/REF(HIGH,1)>0.999 AND HIGH/REF(HIGH,1)<1.001 AND HIGH/REF(HIGH,2)>0.998 AND HIGH/REF(HIGH,2)<1.002)SELL;DRAWTEXT(Out5,HIGH*1.001,'↓平台顶'),colorgreen;DRAWTEXT(Out5,LOW,'↓平台顶'),colorgreen;IF (k<=0)RETURN 0;MA$1:MA(CLOSE, N1);IF (k<=1)RETURN 0;MA$2:MA(CLOSE, N2);IF (k<=2)RETURN 0;TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);HD := HIGH-REF(HIGH,1);LD := REF(LOW,1)-LOW;PDM:= SUM(IF(HD>0 AND HD>LD,HD,0),14);MDM:= SUM(IF(LD>0 AND LD>HD,LD,0),14);PDI:= PDM*100/TR;MDI:= MDM*100/TR;
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容