股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[同花顺] 同花顺趋势为王副图指标 源码


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-29 11:59:31
同花顺趋势为王副图指标 源码介绍

同花顺趋势为王副图指标 源码

最精准的指标,跟着主力趋势走,主力建仓出货,一看就明白!

趋势线:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),colorwhite,LINETHICK2;
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5;
主力进: IF(V4>=0,V4,1),COLORFF00FF;
主力撤:(IF(V4<=0,V4,1)),colorblue;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
大资金进场:IF(VB>=0,VB,0),coloryellow;
大资金撤走:IF(VB<=0,VB,0),colorgreen;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备现金: STICKLINE(趋势线<=13,0,20,5,0),colorred;
AA:=(趋势线<=13) AND FILTER((趋势线<=13),15);
DRAWTEXT (AA,30,'准备现金'),colorgray;
买入股票: STICKLINE(趋势线<=13 AND V12>13,0,50,5,0),colormagenta;
BB:= (趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10) ;
DRAWTEXT (BB,65,'主力进'),colormagenta;
卖临界: STICKLINE(趋势线>60 AND 趋势线>REF(趋势线,1),100,95,15,1),colorgreen;
CC:=(趋势线>=90 AND V12) AND FILTER((趋势线>=90 AND V12),10);
DD:=(趋势线>=120 AND V12) AND FILTER((趋势线>=120 AND V12),10);
STICKLINE(大资金进场 AND 趋势线<13,0,50,10,0),colormagenta;
STICKLINE(大资金撤走 AND 趋势线>90,0,50,10,0),colorgreen;
STICKLINE(主力进 AND 趋势线<13,0,50,10,0),COLORFF00FF;
STICKLINE(IF(V4<=0,V4,1) AND 趋势线>90,0,50,10,0),colorblue;
DRAWTEXT (CC,65,'主力拉升出貨'),colorblue;
Var1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
Var2:=LLV(LOW,34);
Var3:=HHV(HIGH,34);
多: EMA((Var1-Var2)/(Var3-Var2)*100,13),colorred,LINETHICK2;
空: EMA(多,3),colorgreen,LINETHICK1;
VARE:=REF(LOW,1)*0.9;
VARF:=LOW*0.9;
VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;
VAR11:=EMA(VAR10,30);
VAR12:=CLOSE-REF(CLOSE,1);
VAR13:=MAX(VAR12,0);
VAR14:=ABS(VAR12);
VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;
VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;
VAR17:=BARSCOUNT(CLOSE);
VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;
VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);
VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1D:=SMA(VAR1C,4,1);
VAR1E:=SMA(VAR1D,3,1);
VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR15<22 AND VAR16<28 AND VAR17>50;
VAR21:=(HIGH+LOW+CLOSE)/3;
VAR22:=(VAR21-MA(VAR21,14))/(0.015*AVEDEV(VAR21,14));
VAR23:=(VAR21-MA(VAR21,70))/(0.015*AVEDEV(VAR21,70));
VAR24:=IF(VAR22>=150 AND VAR22<200 AND VAR23>=150 AND VAR23<200,10,0);
VAR25:=IF(VAR22<=-150 AND VAR22>-200 AND VAR23<=-150 AND VAR23>-200,-10,VAR24);
STICKLINE(VAR20,0,80,5,0),LINETHICK2,colorred;
DRAWTEXT(CROSS(VAR20,0.5) AND COUNT(VAR20=1,10)=1,90,'超级主力建仓!') , colorred;
V6:=CLOSE/REF(CLOSE,3)>=1.1;
V7:=BACKSET(V6,3);
买:IF((V7 AND COUNT(V7,3)=1),50,0),colormagenta,LINETHICK1;
V10:=PEAKBARS(3,15,1)<10; V12:=IF(V10=1,50,0);
头部:= IF(V12=50,100,0);
卖:IF(头部>REF(头部,1),70,0),colorliblue,LINETHICK2;
DRAWTEXT(卖,75,'主力高顶出完 '),colorliblue;
V9:=TROUGHBARS(3,15,1)<10; V11:=IF(V9=1,50,0);
底部:= IF(V11=50,50,0);
买:IF( 底部>REF(底部,1),-10,0),colorred,LINETHICK2;
DRAWTEXT(买,-15,'主力抄底!买 '),colorred;
V7:=TROUGHBARS(3,15,1)<10; V9:=IF(V7=1,50,0);
AA:=(O+H+L+C)/4;
BB:=MA(AA,3);
CC:=SUM(IF(AA>REF(AA,1),AA*VOL,0),4)/SUM(IF(AA<REF(AA,1),AA*VOL,0),4);
DD:=REF(100-(100/(1+CC)),1);
a1:=HHV(AA,10);
a2:=LLV(AA,30);
a3:=a1-a2;
a4:=EMA((AA-a2)/a3,1)*100;
b1:=HHV(AA,16);
b2:=LLV(AA,90);
b3:=b1-b2;
b4:=EMA((AA-b2)/b3,1)*100;
C1:=HHV(AA,30);
C2:=LLV(AA,240);
C3:=C1-C2;
C4:=EMA((AA-C2)/C3,1)*100;
STICKLINE(a4>90 AND b4>70,86,94,6,0),coloryellow;
STICKLINE(a4<5 AND b4<30,0,8,6,0);
IF(FILTER(b4<REF(b4,1)AND b4>90 AND BB<REF(BB,1),5),80,100),colorblue,Linethick2;
IF(FILTER(b4>REF(b4,1)AND b4<5 AND C>REF(C,1),5),20,0),colorred,Linethick2;
D1:=b4>REF(b4,1)AND a4>REF(a4,1)AND C4>REF(C4,1)AND C4<8 AND b4<10 AND a4<15;
D2:=CROSS(a4,b4)AND b4<8;
D3:=CROSS(a4,C4)AND C4<8 AND b4<20;
DRAWICON(FILTER((D1 OR D2 OR D3) AND DD<15 AND C>REF(C,1),5),5,1);
DRAWICON(FILTER((b4<REF(b4,1)AND a4<REF(a4,1)AND C4<REF(C4,1)AND b4>95 AND a4>85)OR (C4>100 AND b4>100 AND a4>100),5),95,2);
爆发线: 80,colorred;
强弱分界线:50,colorgreen;






gd47745

回复

举报

QQ|

GMT+8, 2024-11-18 19:58

快速回复 返回顶部 返回列表