多空提示趋势线 加仓可以做价差《通达信 副图 选股 源码 ...

[复制链接]
查看27282 | 回复1 | 2023-3-7 10:07 | 显示全部楼层 |阅读模式
叶梵宸指标论坛免责声明
叶梵宸指标公式网(www.yefanchen.com)提醒您:本版块指标由市场整理提供 本指标不提供安装指导与使用方法 源码指标自行复制下载后 自行研究 股市是具有不确定性和不可预测性的,请正常对待和使用指标公式!如存在原创侵权问题 联系本平台客服 谢谢配合
64069c117ce06.png


副图公式源码 :支持手机/电脑

A:=(3*C+L+O+H)/6;
GUP0:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)
+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)
+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)
+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210,COLOR0000FF;
GUP1:=SLOPE(EMA(CLOSE,2),5)*15+C;
GUP2:=EMA(GUP1,5);
GUPA:=EMA(EMA(EMA(EMA(EMA(EMA(EMA(EMA(GUP2,5),5),5),5),5),5),5),5);
GUPB:=BARSLAST(CROSS(CLOSE,GUPA));
GUPC:=BARSLAST(CROSS(GUPA,CLOSE));
STICKLINE(CLOSE<GUPA,REF(CLOSE,GUPC),REF(CLOSE,GUPC),12,0),COLOR00FF00;
STICKLINE(CLOSE>GUPA AND CLOSE>REF(CLOSE,GUPB),REF(CLOSE,GUPB),GUP0,0.2,0),COLOR0000FF;
STICKLINE(CLOSE>GUPA AND CLOSE>REF(CLOSE,GUPB),REF(CLOSE,GUPB),REF(CLOSE,GUPB),12,0),COLOR8000FF;
STICKLINE(CLOSE<GUPA AND CLOSE<REF(CLOSE,GUPC),REF(CLOSE,GUPC),GUP0,0.2,0),COLOR00FF00;
AA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30);
趋势线MA((2*CLOSE+LOW+HIGH)/4,AA),LINETHICK3,COLORRED;
CC:=(CLOSE/趋势线);
MA1:=MA(CC*(2*CLOSE+HIGH+LOW)/4,3);
MAA:=((MA1-趋势线)/趋势线)/3;
TMP:=MA1-MAA*MA1;
持币:IF(TMP<=趋势线,趋势线,DRAWNULL),LINETHICK3,COLORGREEN;
趋势:IF(TMP<=趋势线,TMP,DRAWNULL),LINETHICK2,COLORBLUE;
MX:=EMA(C,2);
MXA:=EMA(SLOPE(C,21)*20+C,42);
建仓:CROSS(MX,MXA),NODRAW;
清仓:=CROSS(MXA,MX);
DRAWTEXT(建仓,L-0.1,'多'),COLORRED;
DRAWTEXT(清仓,H+0.1,'空'),COLORGREEN;
STICKLINE(MX>=MXA,LOW,HIGH,0.0,1),COLORRED;
STICKLINE(MX>=MXA,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(MX<MXA,LOW,HIGH,0.0,1),COLORGREEN;
STICKLINE(MX<MXA,CLOSE,OPEN,3,1),COLORGREEN;
STICKLINE(建仓,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(清仓,OPEN,CLOSE,2,0),COLORBLUE;
CP:=MA(CLOSE,9),COLORCYAN,LINETHICK1;
JD:=MA(CLOSE,18),COLORMAGENTA;
DRAWICON(CROSS(CP,JD) AND MX>=MXA,JD-0.1,1);
DRAWTEXT(CROSS(CP,JD) AND MX>=MXA,JD-0.38,'加'),COLORYELLOW;
BL:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;
STICKLINE(FILTER(BL,3),OPEN,CLOSE,1.5,0),COLORYELLOW;
DRAWTEXT_FIX(1,0,0.05,0,'【加:可以加仓来回做差】'),COLORYELLOW;
DRAWTEXT_FIX(1,0,0.1,0,'【空:空仓持币】'),COLORGREEN;
DRAWTEXT_FIX(1,0,0.15,0,'【多:开始建仓】'),COLORMAGENTA;

选股公式 源码:
{选股公式一:多}
A:=(3*C+L+O+H)/6;
GUP0:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)
+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)
+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)
+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210,COLOR0000FF;
GUP1:=SLOPE(EMA(CLOSE,2),5)*15+C;
GUP2:=EMA(GUP1,5);
GUPA:=EMA(EMA(EMA(EMA(EMA(EMA(EMA(EMA(GUP2,5),5),5),5),5),5),5),5);
GUPB:=BARSLAST(CROSS(CLOSE,GUPA));
GUPC:=BARSLAST(CROSS(GUPA,CLOSE));
MX:=EMA(C,2);
MXA:=EMA(SLOPE(C,21)*20+C,42);
建仓:=CROSS(MX,MXA);
多:建仓;

{选股公式二:加}
AA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30);
趋势线:=DMA((2*CLOSE+LOW+HIGH)/4,AA),LINETHICK3,COLORRED;
CC:=(CLOSE/趋势线);
MA1:=MA(CC*(2*CLOSE+HIGH+LOW)/4,3);
MAA:=((MA1-趋势线)/趋势线)/3;
TMP:=MA1-MAA*MA1;
MX:=EMA(C,2);
MXA:=EMA(SLOPE(C,21)*20+C,42);
CP:=MA(CLOSE,9),COLORCYAN,LINETHICK1;
JD:=MA(CLOSE,18),COLORMAGENTA;
加:CROSS(CP,JD) AND MX>=MXA;


漂泊浪子 | 2023-4-2 19:16 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则