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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信FXT主图指标


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2023-10-9 11:04:31

以下是通达信FXT主图指标

通达信FXT主图指标

源码

N:=6;Q:=3;
多头线:(SUM((((2)*(CLOSE-CLOSE*0.2)+(OPEN-OPEN*0.2)+(HIGH-HIGH*0.2)+(LOW-LOW*0.2))/(5))*(VOL),8))/(SUM(VOL,8)),COLOR0099FF;
空头线:LLV(多头线,8),COLORGREEN;
C-C*0.2,COLORWHITE;
VAR1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);
VAR2:=CROSS(VAR1,0.9);
VAR3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);
VAR4:=CROSS(VAR3,0.9);
压力: REF(HIGH,BARSLAST(VAR2)), POINTDOT,COLOREA91B5;
STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2)),REF(HIGH,BARSLAST(VAR2)),5,0),COLOREA91B5;
支撑: REF(LOW,BARSLAST(VAR4)), POINTDOT,COLOR3791B5;
STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4)),REF(LOW,BARSLAST(VAR4)),5,0),COLOR3791B5;
{STICKLINE(VAR2,HIGH,HIGH*1.01,5,0),COLOR00E40E;}
DRAWTEXT(VAR2,HIGH*1.01,'跌'),COLOR00E40E;
{STICKLINE(VAR4,LOW,LOW*0.99,5,0),COLOR00E40E;}
DRAWTEXT(VAR4,LOW*0.99,'停'),COLOR00E40E;
VAR5:=IF(VAR2,HIGH,IF(VAR4,LOW,0));
{POLYLINE(VAR5,VAR5),COLORFF00FF;}
VAR6:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW
VAR7:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),3);
VAR8:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND HIGHREF(LOW,1)
AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)
VAR9:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),3);
VARA:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW
VARB:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND HIGHREF(LOW,1)
AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)


{坚定: STICKLINE(CROSS(VAR6,0.9),HIGH,HIGH*1.01,5,0),COLOR0000FF;}
DRAWTEXT(CROSS(VAR6,0.9),HIGH*1.01,'坚定'),COLORMAGENTA;
{STICKLINE(CROSS(VAR9,0.9),LOW,LOW*0.99,5,0),COLOR0000FF;}
DRAWTEXT(CROSS(VAR9,0.9),LOW*0.99,'停定'),COLOR0000FF;
{犹豫: STICKLINE(CROSS(VAR7,0.9),HIGH,HIGH*1.01,5,0),COLOR00E5E9;}
DRAWTEXT(CROSS(VAR7,0.9),HIGH*1.01,'犹豫'),COLOR00E5E9;
{STICKLINE(CROSS(VARA,0.9),LOW,LOW*0.99,5,0),COLOR00E5E9;}
DRAWTEXT(CROSS(VARA,0.9),HIGH*1.01,'犹豫'),COLOR00E5E9;
{等待: STICKLINE(CROSS(VAR8,0.9),HIGH,HIGH*1.01,5,0),COLORFF4100;}
DRAWTEXT(CROSS(VAR8,0.9),HIGH*1.01,'等待'),COLORFF4100;
{STICKLINE(CROSS(VARB,0.9),LOW,LOW*0.99,5,0),COLORFF4100;}
DRAWTEXT(CROSS(VARB,0.9),HIGH*1.01,'等待'),COLORFF4100;


现价:CLOSE,POINTDOT,COLORRED;





回复

举报

QQ|

GMT+8, 2024-11-17 21:49

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