手机版 官方微博
官方微信
扫描关注:理想财富微信公众号
理想论坛App
扫描下载理想论坛App
RSS

请老师指导一下:加一句什么话才能显示图形所对应的数值?

[通达信]
设置
1937 8 等待信号 Lv.1 发表于 · 2020-2-14 09:08 举报 显示全部楼层 复制 正序浏览 |
跳转到指定楼层
请问高手,加一句什么话才能显示图形所对应的数值?公式如下:
VAR1:=(CLOSE+HIGH+(2)*(LOW))/(4);
VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,34);
AA:=EMA(((VAR1-VAR2)/(VAR3-VAR2))*(100),13);
VAR4:=EMA((0.333)*(REF(AA,1))+(0.667)*(AA),2);
VAR5:=(EMA(CLOSE,12)-EMA(CLOSE,26))*(100)+50;
VAR6:=EMA(VAR1,9);
VAR7:=((HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21)))*(100)-10;
VAR8:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100);
VAR9:=MA(CLOSE,100)-(MA(CLOSE,7))/(9.3);
VAR10:=IF((CLOSE<VAR9),20,0);
VAR11:=MA(CLOSE,60)-(MA(CLOSE,5))/(5.5);
VAR12:=IF((CLOSE<VAR11),30,0);
股民:STICKLINE((AA-VAR4>0),AA,VAR4,8,0),COLOR0000FF;
主力:STICKLINE((AA-VAR4<0),AA,VAR4,8,0),COLORFFFF00;
VAR13:=IF(CROSS(AA,VAR4) AND (AA<18),10,0);
底1:DRAWTEXT(((VAR13=10) AND (VAR10=20) AND (VAR12=30) OR (AA<7) AND (VAR10=20) AND (VAR12=30)),40,'买'),COLOR00FFFF;
底2:DRAWTEXT(CROSS(AA,13) AND (VAR10=20) AND (VAR12=30),60,'买'),COLOR00FF00;
快撤:STICKLINE(CROSS(87,AA),85,70,8,0),LINETHICK2,COLOR0000EE;
低位区:10,COLOR33BBBB;
DRAWTEXT(CROSS(VAR4,AA) AND (VAR4>75),80,'撤'),LINETHICK3,COLOR00FFFF;
等待信号
Lv.1
发表于 2020-2-14 11:13 复制 查看全部楼层
许昌舍得 发表于 2020-2-14 10:57
VAR1:=(CLOSE+HIGH+(2)*(LOW))/(4);
VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,34);

大神,OK了,我自己改好了,谢谢你哈!!!
等待信号
Lv.1
发表于 2020-2-14 11:07 复制 查看全部楼层
许昌舍得 发表于 2020-2-14 10:57
VAR1:=(CLOSE+HIGH+(2)*(LOW))/(4);
VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,34);

有没有办法只显示最后那个数值呢?
许昌舍得
Lv.6
发表于 2020-2-14 10:57 复制 查看全部楼层
等待信号 发表于 2020-2-14 10:49
大神,我知道问题在哪了,绿柱的时候,显示的是VAR4的数字,这时候上面和最后的数字是吻合的,但是红柱的 ...

VAR1:=(CLOSE+HIGH+(2)*(LOW))/(4);
VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,34);
AA:EMA(((VAR1-VAR2)/(VAR3-VAR2))*(100),13),NODRAW;
VAR4:EMA((0.333)*(REF(AA,1))+(0.667)*(AA),2),NODRAW;

VAR5:=(EMA(CLOSE,12)-EMA(CLOSE,26))*(100)+50;
VAR6:=EMA(VAR1,9);
VAR7:=((HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21)))*(100)-10;
VAR8:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100);
VAR9:=MA(CLOSE,100)-(MA(CLOSE,7))/(9.3);
VAR10:=IF((CLOSE<VAR9),20,0);
VAR11:=MA(CLOSE,60)-(MA(CLOSE,5))/(5.5);
VAR12:=IF((CLOSE<VAR11),30,0);

股民:STICKLINE((AA-VAR4>0),AA,VAR4,8,0),COLORRED;
主力:STICKLINE((AA-VAR4<0),AA,VAR4,8,0),COLORGREEN;
DRAWNUMBER(AA-VAR4>0 AND ISLASTBAR,AA,AA),COLORRED,DRAWABOVE;
DRAWNUMBER(AA-VAR4<0 AND ISLASTBAR,VAR4,VAR4),COLORGREEN,DRAWABOVE;

VAR13:=IF(CROSS(AA,VAR4) AND (AA<18),10,0);
底1:DRAWTEXT(((VAR13=10) AND (VAR10=20) AND (VAR12=30) OR (AA<7) AND (VAR10=20) AND (VAR12=30)),40,'买'),COLOR00FFFF;
底2:DRAWTEXT(CROSS(AA,13) AND (VAR10=20) AND (VAR12=30),60,'买'),COLOR00FF00;
快撤:STICKLINE(CROSS(87,AA),85,70,8,0),LINETHICK2,COLOR0000EE;
低位区:10,COLOR33BBBB;
DRAWTEXT(CROSS(VAR4,AA) AND (VAR4>75),80,'撤'),LINETHICK3,COLOR00FFFF;

{VAR1:=(CLOSE+HIGH+(2)*(LOW))/(4);
VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,34);
AA:=EMA(((VAR1-VAR2)/(VAR3-VAR2))*(100),13);
VAR4:=EMA((0.333)*(REF(AA,1))+(0.667)*(AA),2);
VAR5:=(EMA(CLOSE,12)-EMA(CLOSE,26))*(100)+50;
VAR6:=EMA(VAR1,9);
VAR7:=((HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21)))*(100)-10;
VAR8:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100);
VAR9:=MA(CLOSE,100)-(MA(CLOSE,7))/(9.3);
VAR10:=IF((CLOSE<VAR9),20,0);
VAR11:=MA(CLOSE,60)-(MA(CLOSE,5))/(5.5);
VAR12:=IF((CLOSE<VAR11),30,0);
股民:STICKLINE((AA-VAR4>0),AA,VAR4,8,0),COLORRED;
主力:STICKLINE((AA-VAR4<0),AA,VAR4,8,0),COLORGREEN;
DRAWNUMBER(AA-VAR4>0 AND ISLASTBAR,AA,AA),COLORRED,DRAWABOVE;
DRAWNUMBER(AA-VAR4<0 AND ISLASTBAR,VAR4,VAR4),COLORGREEN,DRAWABOVE;
VAR13:=IF(CROSS(AA,VAR4) AND (AA<18),10,0);
底1:DRAWTEXT(((VAR13=10) AND (VAR10=20) AND (VAR12=30) OR (AA<7) AND (VAR10=20) AND (VAR12=30)),40,'买'),COLOR00FFFF;
底2:DRAWTEXT(CROSS(AA,13) AND (VAR10=20) AND (VAR12=30),60,'买'),COLOR00FF00;
快撤:STICKLINE(CROSS(87,AA),85,70,8,0),LINETHICK2,COLOR0000EE;
低位区:10,COLOR33BBBB;
DRAWTEXT(CROSS(VAR4,AA) AND (VAR4>75),80,'撤'),LINETHICK3,COLOR00FFFF;};
查看全部打赏
等待信号
Lv.1
发表于 2020-2-14 10:49 复制 查看全部楼层
许昌舍得 发表于 2020-2-14 10:18
VAR1:=(CLOSE+HIGH+(2)*(LOW))/(4);
VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,34);

大神,我知道问题在哪了,绿柱的时候,显示的是VAR4的数字,这时候上面和最后的数字是吻合的,但是红柱的时候,上面还是VAR4的数字,而最后显示的是AA的数字,所以就不吻合了,请问要怎么写条件才能显示最后数字呢?感激不尽!
等待信号
Lv.1
发表于 2020-2-14 10:34 复制 查看全部楼层
许昌舍得 发表于 2020-2-14 10:18
VAR1:=(CLOSE+HIGH+(2)*(LOW))/(4);
VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,34);

谢谢!很接近了!但是这个数值只是近似等于最后的数值,能不能直接把最后的数值写上去呢?谢谢谢谢哈!
许昌舍得
Lv.6
发表于 2020-2-14 10:18 复制 查看全部楼层
等待信号 发表于 2020-2-14 09:53
谢谢,但是这样只能显示最后一天的,能不能写在上面公式名称旁边,就像MA的数值那样,可以显示指定任意一 ...

VAR1:=(CLOSE+HIGH+(2)*(LOW))/(4);
VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,34);
AA:=EMA(((VAR1-VAR2)/(VAR3-VAR2))*(100),13),NODRAW;
VAR4:EMA((0.333)*(REF(AA,1))+(0.667)*(AA),2),NODRAW;

VAR5:=(EMA(CLOSE,12)-EMA(CLOSE,26))*(100)+50;
VAR6:=EMA(VAR1,9);
VAR7:=((HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21)))*(100)-10;
VAR8:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100);
VAR9:=MA(CLOSE,100)-(MA(CLOSE,7))/(9.3);
VAR10:=IF((CLOSE<VAR9),20,0);
VAR11:=MA(CLOSE,60)-(MA(CLOSE,5))/(5.5);
VAR12:=IF((CLOSE<VAR11),30,0);

股民:STICKLINE((AA-VAR4>0),AA,VAR4,8,0),COLORRED;
主力:STICKLINE((AA-VAR4<0),AA,VAR4,8,0),COLORGREEN;
DRAWNUMBER(AA-VAR4>0 AND ISLASTBAR,AA,AA),COLORRED,DRAWABOVE;
DRAWNUMBER(AA-VAR4<0 AND ISLASTBAR,VAR4,VAR4),COLORGREEN,DRAWABOVE;

VAR13:=IF(CROSS(AA,VAR4) AND (AA<18),10,0);
底1:DRAWTEXT(((VAR13=10) AND (VAR10=20) AND (VAR12=30) OR (AA<7) AND (VAR10=20) AND (VAR12=30)),40,'买'),COLOR00FFFF;
底2:DRAWTEXT(CROSS(AA,13) AND (VAR10=20) AND (VAR12=30),60,'买'),COLOR00FF00;
快撤:STICKLINE(CROSS(87,AA),85,70,8,0),LINETHICK2,COLOR0000EE;
低位区:10,COLOR33BBBB;
DRAWTEXT(CROSS(VAR4,AA) AND (VAR4>75),80,'撤'),LINETHICK3,COLOR00FFFF;

{VAR1:=(CLOSE+HIGH+(2)*(LOW))/(4);
VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,34);
AA:=EMA(((VAR1-VAR2)/(VAR3-VAR2))*(100),13);
VAR4:=EMA((0.333)*(REF(AA,1))+(0.667)*(AA),2);
VAR5:=(EMA(CLOSE,12)-EMA(CLOSE,26))*(100)+50;
VAR6:=EMA(VAR1,9);
VAR7:=((HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21)))*(100)-10;
VAR8:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100);
VAR9:=MA(CLOSE,100)-(MA(CLOSE,7))/(9.3);
VAR10:=IF((CLOSE<VAR9),20,0);
VAR11:=MA(CLOSE,60)-(MA(CLOSE,5))/(5.5);
VAR12:=IF((CLOSE<VAR11),30,0);
股民:STICKLINE((AA-VAR4>0),AA,VAR4,8,0),COLORRED;
主力:STICKLINE((AA-VAR4<0),AA,VAR4,8,0),COLORGREEN;
DRAWNUMBER(AA-VAR4>0 AND ISLASTBAR,AA,AA),COLORRED,DRAWABOVE;
DRAWNUMBER(AA-VAR4<0 AND ISLASTBAR,VAR4,VAR4),COLORGREEN,DRAWABOVE;
VAR13:=IF(CROSS(AA,VAR4) AND (AA<18),10,0);
底1:DRAWTEXT(((VAR13=10) AND (VAR10=20) AND (VAR12=30) OR (AA<7) AND (VAR10=20) AND (VAR12=30)),40,'买'),COLOR00FFFF;
底2:DRAWTEXT(CROSS(AA,13) AND (VAR10=20) AND (VAR12=30),60,'买'),COLOR00FF00;
快撤:STICKLINE(CROSS(87,AA),85,70,8,0),LINETHICK2,COLOR0000EE;
低位区:10,COLOR33BBBB;
DRAWTEXT(CROSS(VAR4,AA) AND (VAR4>75),80,'撤'),LINETHICK3,COLOR00FFFF;};
等待信号
Lv.1
发表于 2020-2-14 09:53 复制 查看全部楼层
许昌舍得 发表于 2020-2-14 09:38
VAR1:=(CLOSE+HIGH+(2)*(LOW))/(4);
VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,34);

谢谢,但是这样只能显示最后一天的,能不能写在上面公式名称旁边,就像MA的数值那样,可以显示指定任意一天的。
许昌舍得
Lv.6
发表于 2020-2-14 09:38 复制 查看全部楼层
本帖最后由 许昌舍得 于 2020-2-14 09:41 编辑

VAR1:=(CLOSE+HIGH+(2)*(LOW))/(4);
VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,34);
AA:=EMA(((VAR1-VAR2)/(VAR3-VAR2))*(100),13);
VAR4:=EMA((0.333)*(REF(AA,1))+(0.667)*(AA),2);
VAR5:=(EMA(CLOSE,12)-EMA(CLOSE,26))*(100)+50;
VAR6:=EMA(VAR1,9);
VAR7:=((HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21)))*(100)-10;
VAR8:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100);
VAR9:=MA(CLOSE,100)-(MA(CLOSE,7))/(9.3);
VAR10:=IF((CLOSE<VAR9),20,0);
VAR11:=MA(CLOSE,60)-(MA(CLOSE,5))/(5.5);
VAR12:=IF((CLOSE<VAR11),30,0);

股民:STICKLINE((AA-VAR4>0),AA,VAR4,8,0),COLORRED;
主力:STICKLINE((AA-VAR4<0),AA,VAR4,8,0),COLORGREEN;
DRAWNUMBER(AA-VAR4>0 AND ISLASTBAR,AA,AA),COLORRED,DRAWABOVE;
DRAWNUMBER(AA-VAR4<0 AND ISLASTBAR,VAR4,VAR4),COLORGREEN,DRAWABOVE;

VAR13:=IF(CROSS(AA,VAR4) AND (AA<18),10,0);
底1:DRAWTEXT(((VAR13=10) AND (VAR10=20) AND (VAR12=30) OR (AA<7) AND (VAR10=20) AND (VAR12=30)),40,'买'),COLOR00FFFF;
底2:DRAWTEXT(CROSS(AA,13) AND (VAR10=20) AND (VAR12=30),60,'买'),COLOR00FF00;
快撤:STICKLINE(CROSS(87,AA),85,70,8,0),LINETHICK2,COLOR0000EE;
低位区:10,COLOR33BBBB;
DRAWTEXT(CROSS(VAR4,AA) AND (VAR4>75),80,'撤'),LINETHICK3,COLOR00FFFF;

附件

tdxjietu1.JPG
tdxjietu2.JPG
您需要登录后才可以回帖 免费注册登录

本版积分规则

回顶部 到页底
快速回复 返回顶部 返回列表