股票压缩主图公式
股票的主图精确顶底公式
下面是股票主图公式,出现“并线开花”的选股公式!谢了!
高手帮忙改个炒股公式,主图的
公式如下买:EMA(CLOSE,5),COLORRED,LINETHICK2; 卖:EMA(SLOPE(CLOSE,21)*20+CLOSE,42),LINETHICK2; B:=CROSS(买,卖);S:=CROSS(卖,买); DRAWTEXT(B,LOW-0.1,\'←买 \'),COLORRED,LINETHICK2;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,LINETHICK2; VAR29:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; VAR2A:=SMA(VAR29,5,1); VAR2B:=SMA(VAR2A,10,1);VAR2C:=CROSS(VAR2B,VAR2A); VAR2D:=VAR2B>80 OR VAR2A>80; VAR2E:=VAR2C AND VAR2D; VAR33:=HIGH; VAR34:=LOW; 逃顶:STICKLINE(VAR2E,VAR33,VAR34,4,0); DRAWTEXT(CROSS(75,SMA(MAX(CLOSE-REF(CLOSE,1),0),8,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),8,1)*100),HIGH+0.25,\'←卖\'),COLORGREEN; DRAWTEXT(CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),HIGH*1.03,\'落袋为安\'),COLORYELLOW;
股票通达信主图公式改选股公式(买入)
AA05:=MA(C,5);五日乖离率:=(C-AA05)/AA05*100;AA30:=MA(C,30);三拾日乖离率:=(C-AA30)/AA30*100;MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;买入:FILTER(MR,10);
求股票主图指标 布林线和箱体叠加的指标公式
平衡:EMA(C,20),CIRCLEDOT,COLORWHITE;上轨:平衡 + 2*STD(C,20),LINETHICK2,COLORFF00FF;下轨:平衡 - 2*STD(C,20),LINETHICK2,COLOR00FF00;Y1:=REF(EMA(DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9),3),1);DRAWTEXT(CROSS(CLOSE,Y1),LOW,\'[买进]\'),COLORYELLOW;DRAWTEXT(CROSS(Y1,CLOSE),HIGH*1.05,\'[卖出]\'),COLORWHITE;VAR1W:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));VAR2W:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));VAR3W:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));DRAWTEXT(CROSS(VAR2W,MA(VAR3W,6)),LOW -0.6,\'(买)\'),COLORFF99FF;DRAWTEXT(CROSS(MA(VAR3W,6),VAR1W),HIGH +0.9,\'(卖)\'),COLORCCFF13;VAR3P:=IF(CLOSE/REF(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 AND IF(CLOSE>REF(CLOSE,1),88,0)>0, 91, 0);DRAWTEXT(VAR3P>90,LOW*0.92,\'追涨\'),COLORFF00FF;SS:=MA((LOW+HIGH+CLOSE)/3,5)>REF(MA((LOW+HIGH+CLOSE)/3,5),1) AND REF(MA((LOW+HIGH+CLOSE)/3,5),1)HHV(MA((LOW+HIGH+CLOSE)/3,5),13) AND C>REF(C,1) AND C>O;MR:=SC AND COUNT(SS,2);买:=MR AND NOT(REF(MR,1)),COLORYELLOW;DRAWTEXT(买,L*0.95, \'必涨\'),COLORRED;多方:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1);DRAWTEXT(CROSS(78.89,多方),H+1.5,\'(逃顶)\'),COLOR00FF00;A1:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1),COLOR330066;A2:=(EMA(A1,5)-REF(EMA(A1,5),1))/REF(EMA(A1,5),1)*1;A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*1;DRAWTEXT(CROSS(A1,EMA(A1,5))AND EMA(A1,5)8;DRAWTEXT(VAR9 AND COUNT(VAR9,1)=1,H+0.6,\'逃\'), LINETHICK2,COLORYELLOW;
通达信将选股公式改为幅图或主图指标
如何将主、副图公式改为选股公式以下是将主、副图公式改为选股公式的简易方法,求人不如求己。
步骤一.将所有的显示式":",改为不显示式":="选股条件的基本要求为只能输出1个条件式,故要先将公式中所有的显示式":"改为不显示式":=",如果原来显示式后面接有线型描述(颜色.对齐..等),也一并删除例如:ma1:ma(c,5),colorred;ma2:ma(c,10),colorgreen,POINTDOT;.....先改为ma1:=ma(c,5);ma2:=ma(c,10);.....步骤二.找出选股条件,并写成选股式引用:条件的寻找方法,依不同目的,大致可分以下几种:--------------------------------------------------------------------------------------------1.\'字\'选股 如:\'买\'选股方法:先找出公式中出现有\'字\'的地方,该式开头会以DRAW..TEXT开头,DRAWTEXT DRAWTEXTEX DRAWYITEXT DRAWFLAGTEXT DRAWMOVETEXT找到后,该函数(条件, ,\'字\')后面括号内的第1个即为条件,将该条件复制出来并加上分号即可例如:{求\'5日均>10日均\'选股}ma1:=ma(c,5);ma2:=ma(c,10);DRAWTEXT(ma1>ma2,ma1,\'5日均>10日均\');[解]ma1:=ma(c,5);ma2:=ma(c,10);ma1>ma2;--------------------------------------------------------------------------2.图标选股 如:笑脸选股方法:先依不同软件,找出该图标的代号,再找出公式中出现DRAWICON函数(条件, ,图标代号)的式子,对照图标的代号(括号内的第3个),如果该图标代号为所求代号,该函数后面括号内的第1个即为条件,将该条件复制出来并加上分号即可例如:{求图标1选股}ma1:=ma(c,5);ma2:=ma(c,10);DRAWicon(ma1>ma2,ma1,1);[解]ma1:=ma(c,5);ma2:=ma(c,10);ma1>ma2;--------------------------------------------------------------------------------3.A线上穿(下穿)B线选股 {上穿--金叉,下穿--死叉}方法:A线上穿B线: cross(A,B);A线下穿B线: cross(B,A);例如:{求ma1上穿ma2选股}ma1:ma(c,5);ma2:ma(c,10);[解]ma1:=ma(c,5);ma2:=ma(c,10);cross(ma1,ma2);{求ma1下穿ma2选股}ma1:ma(c,5);ma2:ma(c,10);[解]ma1:=ma(c,5);ma2:=ma(c,10);cross(ma2,ma1);-------------------------------------------------------------------------------------------4.线A上穿(下穿) 选股 方法:线A上穿: cross(A,ma(A,2)); 或 cross(A,ref(A,1));线A下穿: cross(ma(A,2),A); 或 cross(ref(A,1),A);例如:{求改成ma1上穿}ma1:ma(c,5);[解]ma1:=ma(c,5);cross(ma1,ma(ma1,2));或ma1:=ma(c,5);cross(ma1,ref(ma1,1));{求改成ma1下穿}ma1:ma(c,5);[解]ma1:=ma(c,5);cross(ma(ma1,2),ma1);或 ma1:=ma(c,5);cross(ref(ma1,1),ma1);---------------------------------------------------------------------------------------------5.第1次出现条件A 选股方法:先找出条件A,再利用cross(A,0.5);例如:{求改成出现图标1选股}ma1:=ma(c,5);ma2:=ma(c,10);DRAWicon(ma1>ma2,ma1,1);[解1]ma1:=ma(c,5);ma2:=ma(c,10);A:=ma1>ma2;cross(A,0.5);[解2--直接将条件A写入]ma1:=ma(c,5);ma2:=ma(c,10);cross(ma1>ma2,0.5);-------------------------------------------------------------------------------------------6.线变色选股 如:黄线变红色选股 (指标线为黄线,再利用函数变红色线)方法:先依不同软件,找出条件A,再用cross(A,0.5);(1)飞狐条件在PARTLINE(条件A, ),colorred;括号内的第1个即为条件,将该条件复制出来并加上分号即可例如:{求黄线变红色选股 飞狐}ma1:ma(c,5),coloryellow;PARTLINE(ma1>REF(ma1,1),ma1),colorred;[解]ma1:=ma(c,5);A:=ma1>REF(ma1,1);cross(A,0.5);(2)大智慧L2.分析家条件在PARTLINE( ,条件A,rgb(255,0,0), , ...);括号内为rgb(255,0,0)的前1个即为条件,将该条件复制出来并加上分号即可例如:{求黄线变红色选股 大智慧L2.分析家}ma1:=ma(c,5);PARTLINE(ma1,ma1>REF(ma1,1),rgb(255,0,0),1,rgb(255,255,0));[解]ma1:=ma(c,5);A:=ma1>REF(ma1,1);cross(A,0.5);(3)通达信条件在IF(条件A, ,DRAWNULL),colorred;括号内的第1个即为条件,将该条件复制出来并加上分号即可例如:{求黄线变红色选股 通达信}MA1:MA(C,5),COLORYELLOW;IF(MA1>REF(MA1,1),MA1,DRAWNULL),COLORRED;[解]MA1:=MA(C,5);A:=MA1>REF(MA1,1);CROSS(MA1>REF(MA1,1),0.5);--------------------------------------------------------------------------------7.颜色柱选股方法:先找出公式中出现有STICKLINE函数的地方,找到后,核对该函数后面的颜色,是否为所求颜色,若颜色相同,则括号内的第1个即为条件A,将该条件复制出来并加上分号即可例如:{求红色柱选股}STICKLINE(c>o,h,l,0.8,1),colorred;[解]A:c>o;{求第1次红色柱选股}STICKLINE(c>o,h,l,0.8,1),colorred;[解]A:=c>o;cross(A,0.5);步骤三.最后将所有绘图函数及单一输出值(如 0; k; if(,,); )全删除,使公式只剩1个选股式输出即成,(若有2个以上条件,条件同时成立时,可在条件间用"and"连接;若有2个以上条件,允许条件不同时成立时,可在条件间用"or"连接);
求助老师根据主图做选股公式
VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);买1:=VAR10; 买2:=(VAR11+VAR13+VAR15+VAR17);XG:买1 OR 买2;公式用到未来函数。
{个人看法,仅供参考。
}