龙听期货论坛's Archiver

龙听 发表于 2019-1-3 11:34

大智慧对“三天内涨停收盘价”公式的修改和再修改[大智慧公式]

[code]
V1:=EMA(CLOSE,60)-EMA(CLOSE,300);
V2:=EMA(V1,300);
V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
V4:SMA(V3,2,1);
V5:SMA(V4,2,1);
V6:=CLOSE/ref(CLOSE,3)>=1.1;
V7:=BACKSET(V6,3);
买入:IF((V7 AND COUNT(V7,3)=1),30,0),COLORYELLOW,LINETHICK3;
DRAWTEXT(买入,35,'买入 '),COLORYELLOW,LINETHICK3;
[/code]

[color=#212121][font=宋体, Arial, Helvetica, sans-serif][size=14px]图做的很漂亮,题目也很吸引眼球。可是,很快遭到非议。[/size][/font][/color]
[color=#212121][font=宋体, Arial, Helvetica, sans-serif][size=14px]股友德国符号讲:国际标准的马后炮啊!!![/size][/font][/color]
[color=#212121][font=宋体, Arial, Helvetica, sans-serif][size=14px]指标区班长大庆老杨讲:什么是未来函数?BACKSET,这个向前赋值函数是最标准的。[/size][/font][/color]
[color=#212121][font=宋体, Arial, Helvetica, sans-serif][size=14px]的确,看以前的图形,显示很准确。可是要想选以后的,基本选不出来股票来,没有指导意义。本想就此溜走了,可是想想,股友费心费力活跃论坛,精神可嘉。反正元旦假期有空,就顺手修改了一下。也算为活跃论坛添砖添瓦吧。[/size][/font][/color]
[color=#212121][font=宋体, Arial, Helvetica, sans-serif][size=14px]原公式实际上是先有涨停事实,再向前算出低点。所以在副图上会显示很准确。我就来个反其道而行之,先确定今天是低点,再向前算出高点。[/size][/font][/color]


[p=30, 2, left]将原公式:
V6:=CLOSE/ref(CLOSE,3)>=1.1;
改为:
V6:=CLOSE/ref(CLOSE,3)<=1;
再加油添醋,将:
V1:=EMA(CLOSE,60)-EMA(CLOSE,300);
V2:=EMA(V1,300);
V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
改为:
V1:=EMA(V,5);
V2:=EMA(V,10);
V3:=CROSS(V1,V2);
V4:=O>=C;
最后公式改变成如下:
V1:=EMA(V,5);
V2:=EMA(V,10);
V3:=CROSS(V1,V2);
V4:=O>=C;
V6:=CLOSE/ref(CLOSE,3)<=1;
V7:=BACKSET(V6,3);
买入:V7 AND V3 AND V4;
[/p]
[p=30, 2, left]试试看,选出不少股票来吧?!再加上自己一些特殊要求,最后选出了300268万福生科这只股票,是好是坏,三天交易后再盖棺论定吧,呵呵。本人不才,写这篇帖子目的是提醒公式爱好者:公式是死的,人是活的。关键是要会活学活用,善于修改和变通,才能为我所用。 {文章来至程序化交易网 [url=http://www.cxh99.com/]www.cxh99.com[/url] }[/p]

[p=30, 2, left]对公式再做一些小改动:
V1:=EMA(V,5);
V2:=EMA(V,10);
V3:=CROSS(V1,V2);
V4:=O>=C;
V6:=CLOSE/ref(CLOSE,3)>=1;
V7:=BACKSET(V6,1);
买入:IF((V7 AND O>=C AND CROSS(V1,V2)),30,0),COLORYELLOW,LINETHICK3;
DRAWTEXT(买入,35,'买入 '),COLORYELLOW,LINETHICK3;[/p]

页: [1]