『壹』 股票指标公式怎么用呀
打开通达讯,按Ctrl+F到“公式管理器”---点“新建”---将上面的公式复制到最大的空白栏里面---再填写"公式名称"---再点"测试公式",如果不能通过就是公式有误! 你上面的公式在通达讯里面测试不能通过! 下面是(五里灯塔)公式: N1:=5;N2:=10; STICKLINE(C>0,0,10,15,0),COLOR781816; LC:=REF(CLOSE,1); RSI5:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*10,COLORFF00FF,LINETHICK1; RSI10:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*10,COLOR00FFFF; VAR1:=C-REF(C,1); VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6); MA5:=EMA(C,5); MA13:=EMA(C,13); UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS (MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS (MA5,MA13))+1),0),COLOR0000FF; DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS (MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS (MA13,MA5))+1),0),COLOR00FF00; BT:(LLV(VAR2,2)=LLV(VAR2,7)ANDCOUNT(VAR2<0,2)ANDCROSS(VAR2,MA(VAR2,2)))AND REF(DOWN,1)<REF(DOWN,2)ANDUP>REF(DOWN,1); 0,COLORFF00FF; 10,COLORFF0000; STICKLINE(UP,0,0.2,3,0),COLOR0000FF; STICKLINE(DOWN,0,0.2,3,0),COLOR00FF00; STICKLINE(BT,0,3,2,0),COLOR000088; STICKLINE(BT,0,3,1,0),COLOR0000CC; STICKLINE(BT,0,3,0.22,0),COLOR0000FF; DRAWTEXT(BT,3,'短牛'),COLOR0000FF; TJ1:=REF(DOWN,1)<REF(DOWN,2)ANDUP>REF(DOWN,1)ANDC<HHV(H,21)*0.82; STICKLINE(TJ1,0,2,3,0),COLOR880088; STICKLINE(TJ1,0,2,1.5,0),COLORAA00AA; STICKLINE(TJ1,0,2,0.8,0),COLORCC00CC; STICKLINE(TJ1,0,2,0.2,0),COLORFF00FF; DRAWTEXT(TJ1,2,'中牛'),COLORFF00FF; HR:=HHV(HIGH,55); HRY:=LLV(LOW,55); HRY11:=HR*HRY; HRY33:=SQRT(HRY11); TJ2:=REF(DOWN,1)<REF(DOWN,2)ANDUP>REF(DOWN,1)ANDC<HRY33; STICKLINE(TJ2,0,1,5,0),COLOR008888; STICKLINE(TJ2,0,1,2,0),COLOR00AAAA; STICKLINE(TJ2,0,1,1,0),COLOR00CCCC; STICKLINE(TJ2,0,1,0.2,0),COLOR00FFFF; DRAWTEXT(TJ2,1,'大牛'),COLOR00FFFF; ST:=REF(UP,1)>REF(UP,2)ANDDOWN<REF(UP,1); STICKLINE(ST,10,9,5,0),COLOR008800; STICKLINE(ST,10,9,2,0),COLOR00AA00; STICKLINE(ST,10,9,1,0),COLOR00CC00; STICKLINE(ST,10,9,0.2,0),COLOR00FF00; DRAWTEXT(ST,9,'卖'),COLOR00FF00; DRAWTEXT(CURRBARSCOUNT=89,9.5,'★本指标适合抄底及波段特征明显个股,暴跌 途中慎用!!'),COLOR0000FF; DRAWTEXT(CURRBARSCOUNT=89,8.7,'★大牛:长线大牛股,目标翻倍; 中短牛:15天目标10%-20%!!'),COLOR0078FF; DRAWTEXT(CURRBARSCOUNT=89,8.0,'★以上信号结合RSI低位时用更加可靠,盘整市中信号偏多!!'),COLOR00FF00; DRAWTEXT(CURRBARSCOUNT=89,7.3,'★当大牛\中牛\短牛同一天出现时, 果断买入!!'),COLOR00FFFF; 下面是(操盘手B买S卖)公式: 买线:=EMA(C,2); 卖线:=EMA(SLOPE(C,21)*20+C,42); BU:=CROSS(买线,卖线); SEL:=CROSS(卖线,买线); DRAWTEXT(BU,LOW*0.989,'B'),COLORRED,LINETHICK3; DRAWTEXT(BU,LOW,''),COLOR208FFF,LINETHICK3; DRAWTEXT(SEL,HIGH,''),COLORFFFF00,LINETHICK3; DRAWTEXT(SEL,HIGH*1.0175,'S'),COLORFFFF00,LINETHICK3; STICKLINE(买线>=卖线,LOW,HIGH,1,0),COLORRED; STICKLINE(买线>=卖线,CLOSE,OPEN,4.5,0),COLOR0000AA; STICKLINE(买线>=卖线,CLOSE,OPEN,4,0),COLOR0000CC; STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),COLOR0000CC; STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),COLOR0000EE; STICKLINE(买线<卖线,CLOSE,OPEN,4.5,0),COLORAAAA00; STICKLINE(买线<卖线,CLOSE,OPEN,4,0),COLORBBBB00; STICKLINE(买线<卖线,CLOSE,OPEN,3,0),COLORCCCC00; STICKLINE(买线<卖线,CLOSE,OPEN,2,0),COLOREEEE00; STICKLINE(买线<卖线,LOW,HIGH,1,0),COLORFFFF00; STICKLINE(CROSS(买线,卖线)ORCROSS(卖线,买线),OPEN,CLOSE,3,0),COLOR00FFFF; 指导线:EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),LINETHICK1,COLORFFFFFF; 界:MA(CLOSE,27),LINETHICK1,COLOR00FFFF; DRAWTEXT(CROSS(指导线,界),界,''),COLORFFFFFF; DRAWTEXT(CROSS(界,指导线),界,''),COLOR00FFFF; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; G:=95; DRAWTEXT(CROSS(J,D),L*0.999,''),COLOR00FFFF,LINETHICK4; DRAWTEXT(CROSS(J,D),L,''),COLOR00FFFF; DRAWTEXT(CROSS(J,G),H*1.005,''),COLORFFFF00,LINETHICK4; DRAWTEXT(CROSS(J,G),H,''),COLORFFFF00; 如果还需要更多的公式,请发邮件给我:[email protected] 希望你在股海里满载而归!!!
『贰』 在线求高手将技术指标修改为选股公式,谢谢
请高手将主散持仓线改一个选股公式。要求主力持仓线大于散户持仓线,主力持仓线大于前日的主力持仓线。谢谢了!
JJZ:=(HIGH+LOW+CLOSE)/3;QJ0Z:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
买1:=QJ0Z*(MIN(OPEN,CLOSE)-LOW);
买2:=QJ0Z*(JJZ-MIN(CLOSE,OPEN));
卖1:=QJ0Z*(MAX(CLOSE,OPEN)-JJZ);
卖2:=QJ0Z*(HIGH-MAX(OPEN,CLOSE));
DTZ:=((买1+买2)-(卖1+卖2))/10000;
{萃富网-股票公式网站 www.GUPANG.COM}
主力持仓:SUM(DTZ,66),COLORWHITE,LINETHICK1;
STICKLINE(DTZ>0,主力持仓,主力持仓+DTZ,1,0),COLOR0000FF;
STICKLINE(DTZ<0,主力持仓+DTZ,主力持仓,1,0),COLOR00FF00;
JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
TD1:=QJ0*(MIN(OPEN,CLOSE)-LOW);
DD1:=QJ0*(JJ-MIN(CLOSE,OPEN));
DD2:=QJ0*(HIGH-MAX(OPEN,CLOSE));
TD2:=QJ0*(MAX(CLOSE,OPEN)-JJ);
TD:=TD1-TD2;DA:=DD1-DD2;
XD1:=1-(TD1+DD1);XD2:=1-(TD2+DD2);
TZ:=V/SUM(V,60)*100;
DT:=((XD1-XD2)/10000)/TZ;
散户持仓:SUM(DT,22),COLOR888888,LINETHICK1;
STICKLINE(DT>0,散户持仓,散户持仓+DT,1,0),COLORFF00FF;
STICKLINE(DT<0,散户持仓+DT,散户持仓,1,0),COLORFF8800;
『叁』 指标公式改选股公式和预警公式
N1:=5;N2:=10;
LC:=REF(CLOSE,1);
RSI5:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*10;
RSI10:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*10;
VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),0);
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),0);
BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82;
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
TJ2:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33;
XG:TJ2 OR TJ1 OR BT;
不过这指标里有未来函数,最好不要用于选股
『肆』 修改股票公式
本来想转换一下试试的,结果发现drawline在大智慧里无法获得返回预期结果,查阅资料发现网上有如下内容,建议放弃此公式:
一直以来都有很多的指标号称高成功率,且用未来函数检测工具检查,结果没有任何未来函数。
面对这样的指标,众多股市新手如获至宝,可是实际操作起来却屡屡受挫,信号常常发生偏移!
我检查了较多的高成功率的指标,发现它们基本都有一个特性:含有函数DRAWLINE()。
论坛里有前辈早已指出:DRAWLINE只是图形上绘制直线段函数,不是未来函数。这个说法没有错,DRAWLINE()本身姿势图形绘制直线段函数,不是未来函数。
那么,问题出在哪儿呢?
问题在于把DRAWLINE返回值赋值给某变量。如ABC:DRAWLINE(HIGH>=HHV(HIGH,20),HIGH,LOW<=LLV(LOW,20),LOW,0);
首先要说明的是,DRAWLINE(COND1,PRICE1,COND2,PRICE2,EXPAND)函数画线有个特色,COND1常常成立,但是只有COND2成立后才画出线段。
在附件的图片中可以看见,白色柱子就是COND1成立的时候,这个经常出现,但是只有当COND2成立后才画出线段。
ABC:DRAWLINE这条赋值语句呢,在COND2未成立时,赋值是空的,但是如果后面COND2成立了,ABC就被赋值了(就是线段中某一点的值),此时信号将发生偏移。
这种特性完全就是未来函数!
各位新同学,请对照检查一下你手中的珍宝指标!
『伍』 抓涨停板选股公式 涨停板如何买进
买涨停板股票需把握下面几点:
(一)在强势的市场中及时搜索涨幅排行榜,当涨幅达9%以上时应做好买进准备,以防主力大单封涨停而买不到。找出5只左右涨停股票,选择最强的一两只,要大胆追涨停板。极弱的市场切不可追涨停板,机率相对偏小。
(二)追涨停板选有题材的新股。上市数日小幅整理,某一日忽然跳空高开并涨停的;其次是选股价长期在底部盘整,未大幅上涨涨停的;还有选强势股上行一段时间后强势整理结束而涨停的。
(三)一定要涨停,看其达到涨停不要追,成交量要配合,追进的股票当日所放出的成交量不可太大,一般为前一日的1倍左右,可根据开盘半小时-1小时成交量简单算出。发现目标立即追进,动作要快要狠。
(四)要追板块的即领头羊,在大牛市或极强市场中更应如此,要追就追第一个涨停的。
『陆』 股票公式
VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),0);
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),0);
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
短牛:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
中牛:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82;
大牛:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33;
选三牛之一:IF(CROSS(短牛+中牛+大牛>0,0.5),1,0);
{或者}
选三牛合一:短牛+中牛+大牛=3;
『柒』 股票公式修改成预警 公式
MA5:=EMA(C,5);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),0);
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),0);
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
预警:REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33;
『捌』 老师把这个公式改成通达信选股公式选出当天出现买入信号的股票
VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),0);
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),0);
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
短牛:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
中牛:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82;
大牛:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33;
选三牛之一:短牛+中牛+大牛>0;
『玖』 股票公式 改成预警公式谢谢
朋友,以下是你要的选股公式:
N1:=5;N2:=10;
LC:=REF(CLOSE,1);
A0:=(2*C+H+L)/4;
均线:=MA(A0,3)>REF(MA(A0,3),1);
安全线:=2;
A1:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*10;
K:=MA(3*SMA(A1,6,1)-2*SMA(SMA(A1,5,1),5,1),3),LINETHICK1,COLORF00FF0;
D:=MA(K,3),COLORFF0000,LINETHICK1;
J:=3*K-2*D,LINETHICK1,COLORF00FF0;
VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),0),COLOR0000FF;
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),0),COLOR00FF00;
BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82;
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
ZHOU:=SQRT(HRY11);
ZMIN:REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<ZHOU;
『拾』 请高手看看我写的股票交易公式,哪里错了
EXITLONG:BARSLAST(A)=20;
你的公式在20天后就一直标记卖出信号啊。
如果仅仅想显示一个卖出信号,用上面的公式就好了。
通达信测试都是以收盘价为买卖的。