短线极品吧 关注:4,966贴子:479,265
有吧友要我的主图公式,就来自这里http://tieba.baidu.com/p/897809774
我只是加了一些 佐料
奇准主图
MA18:MA(CLOSE,18)COLORCYAN,LINETHICK3;
MA36:MA(CLOSE,36)COLORYELLOW,LINETHICK3;
N:=5;
ZP:=DATETODAY(DATE)-DATETODAY(REF(DATE,1))!=WEEKDAY-REF(WEEKDAY,1),COLORFF00FF;
DW:=REFXV(ZP,1);
ZQ:=BARSLAST(ZP)+1;
周均价:=SUM(AMOUNT,ZQ)/SUM(VOL*100,ZQ);
周均价滤:=IF(DW,周均价,0);
ZQ1:=SUMBARS(DW,N);
ZQ2:=SUMBARS(DW,N-1);
五周均价:IF(DW,SUM(周均价滤,ZQ1)/N,(SUM(周均价滤,ZQ2)+周均价)/N),COLORDDDDDD,LINETHICK2;
七天线:MA(C,7),COLORGRAY;
工作线:(EMA(C,17)) ,POINTDOT,LINETHICK4,COLORYELLOW;
生命线:(MA(C,25)) ,LINETHICK2,COLORMAGENTA;
不惑线:(MA(C,43)) ,COLORCYAN;
姊妹线:(EMA(C,50)) ,CIRCLEDOT,COLORWHITE;
九号线:(MA(C,99)) ,LINETHICK1,COLOR0099FF;
A1:=REF(H,P)=HHV(H,2*P+1);
B1:=FILTER(A1,P);
C1:=BACKSET(B1,P+1);
D1:=FILTER(C1,P);
E1:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);
F1:=E1>REF(E1,1);
短压:DRAWLINE(D1,H,F1,H,1),COLORCYAN;
A2:=REF(L,P)=LLV(L,2*P+1);
B2:=FILTER(A2,P);
C2:=BACKSET(B2,P+1);
D2:=FILTER(C2,P);
E2:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);
F2:=E2>REF(E2,1);
短支:DRAWLINE(D2,L,F2,L,1),COLORLIRED;
AA1:=REF(H,P1)=HHV(H,2*P1+1);
BB1:=FILTER(AA1,P1);
CC1:=BACKSET(BB1,P1+1);
DD1:=FILTER(CC1,P1);
EE1:=BACKSET(ISLASTBAR,BARSLAST(DD1)+1);
FF1:=EE1>REF(EE1,1);
长压:DRAWLINE(DD1,H,FF1,H,1),COLORGREEN;
AA2:=REF(L,P1)=LLV(L,2*P1+1);
BB2:=FILTER(AA2,P1);
CC2:=BACKSET(BB2,P1+1);
DD2:=FILTER(CC2,P1);
EE2:=BACKSET(ISLASTBAR,BARSLAST(DD2)+1);
FF2:=EE2>REF(EE2,1);
长支:DRAWLINE(DD2,L,FF2,L,1),COLORRED;
VAR15:=(LOW+HIGH+CLOSE+O)/4;
操作:=MA(VAR15,7),COLOREE82EE;
拉升:HHV(操作,13),COLORFF6EC7,LINETHICK2;
UPR:=BBIBOLL+6*STD(BBIBOLL,11);
DWN:=BBIBOLL-6*STD(BBIBOLL,11);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));
年线: DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,250),VOL),LINETHICK4,POINTDOT,COLOR00FF7F;
筹峰:=((COST(85)+COST(15))/2+COST(50))/2,COLOR9900FF;
庄成本:MA(筹峰*0.809,10),COLORLIMAGENTA,POINTDOT,LINETHICK4;
PP:IF(CURRBARSCOUNT<18,CONST(REF(C,1)),DRAWNULL),COLOR000000;
止赢1:1.05*PP,COLORFFFFFF,LINETHICK2;
止损1:0.97*PP,COLOR80FFFF,LINETHICK2;
卖线:EMA(SLOPE(C,21)*21+C,42),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),(LOW
*
0.99),'Ψ'),LINETHICK3,COLORF00FF0;
DRAWTEXT(CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2)),(HIGH
* 1.01),'◎'),LINETHICK3,COLORFFFFFF;
STICKLINE((EMA(CLOSE,2) >=
EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),LOW,HIGH,0.1,0),COLOR0000FF;
STICKLINE((EMA(CLOSE,2)
>=
EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,3,0),COLOR0000AA;
STICKLINE((EMA(CLOSE,2)
>=
EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,2,0),COLOR0000CC;
STICKLINE((EMA(CLOSE,2)
<
EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,2,0),COLORCCCC00;
STICKLINE((EMA(CLOSE,2)
<
EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,3,0),COLORAAAA00;
STICKLINE((EMA(CLOSE,2)
<
EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),LOW,HIGH,0.1,0),COLORFFFF00;
STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42))
OR
CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),LOW,HIGH,0.1,0),COLOR00FFFF;
STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42))
OR
CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),OPEN,CLOSE,3,0),COLOR00AAAA;
STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42))
OR
CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),OPEN,CLOSE,2,0),COLOR00CCCC;
量比:DYNAINFO(17)NODRAW;
换手:HSL,NODRAW;
涨幅:(DYNAINFO(7)-DYNAINFO(3))/DYNAINFO(3)*100,NODRAW;
MACD:="MACD.MACD#WEEK";
起点0:=BARSLAST(MACD<0);
起点:=IF(MACD<0,REF(起点0,BARSLAST(MACD>0)),起点0);
累计量:=SUM(IF(MACD>0,V,0),起点+1);
时段换手:=累计量/CAPITAL*100,NODRAW;
控盘度:=时段换手*13.3/100,,NODRAW;
涨停:=REF(C,1)*1.1;
跌停:=REF(C,1)*0.9;
DRAWTEXT_FIX(1,0.95,0.80,1,STRCAT('跌停:',CON2STR(跌停,2))),COLORGREEN;
DRAWTEXT_FIX(1,0.75,0.80,1,STRCAT('涨停:',CON2STR(涨停,2))),COLORYELLOW;
DRAWTEXT_FIX(1,0.95,0.95,1,STRCAT('涨幅:',CON2STR(涨幅,2))),COLORCYAN;
DRAWTEXT_FIX(1,0.95,0.90,1,STRCAT('量比:',CON2STR(量比,2))),COLOR0088FF;
DRAWTEXT_FIX(1,0.95,0.85,1,STRCAT('控盘度:',CON2STR(控盘度,2))),COLORFFFFFF;
DRAWTEXT_FIX(1,0.75,0.85,1,STRCAT('工作线:',CON2STR(工作线,2))),COLOR32CD99;
DRAWTEXT_FIX(1,0.75,0.90,1,STRCAT('拉升:',CON2STR(拉升,2))),COLOR32CD99;
DRAWTEXT_FIX(1,0.75,0.95,1,STRCAT('年线:',CON2STR(年线,2))),COLOR32CD99;
K:=MOD(DATETODAY(DATE)-23,60);
TXT1:=IF(K=0,'辛巳',IF(K=1,'壬午',IF(K=2,'癸未',IF(K=3,'甲申',IF(K=4,'乙酉',IF(K=5,'丙戌',
IF(K=6,'丁亥',IF(K=7,'戊子',IF(K=8,'己丑',IF(K=9,'庚寅',IF(K=10,'辛卯',IF(K=11,'壬辰',
IF(K=12,'癸巳',IF(K=13,'甲午',IF(K=14,'乙未',IF(K=15,'丙申',IF(K=16,'丁酉',IF(K=17,'戊戌',
IF(K=18,'己亥',IF(K=19,'庚子',IF(K=20,'辛丑',IF(K=21,'壬寅',IF(K=22,'癸卯',IF(K=23,'甲辰',
IF(K=24,'乙巳',IF(K=25,'丙午',IF(K=26,'丁未',IF(K=27,'戊申',IF(K=28,'己酉',IF(K=29,'庚戌',
IF(K=30,'辛亥',IF(K=31,'壬子',IF(K=32,'癸丑',IF(K=33,'甲寅',IF(K=34,'乙卯',IF(K=35,'丙辰',
IF(K=36,'丁巳',IF(K=37,'戊午',IF(K=38,'己未',IF(K=39,'庚申',IF(K=40,'辛酉',IF(K=41,'壬戌',
IF(K=42,'癸亥',IF(K=43,'甲子',IF(K=44,'乙丑',IF(K=45,'丙寅',IF(K=46,'丁卯',IF(K=47,'戊辰',
IF(K=48,'己巳',IF(K=49,'庚午',IF(K=50,'辛未',IF(K=51,'壬申',IF(K=52,'癸酉',IF(K=53,'甲戌',
IF(K=54,'乙亥',IF(K=55,'丙子',IF(K=56,'丁丑',IF(K=57,'戊寅',IF(K=58,'己卯',IF(K=59,'庚辰',''
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));
DRAWTEXT(ISLASTBAR OR X,C*0.98,TXT1)COLORCYAN;
高:=REF(HHV(H,80),3);
低:=REF(LLV(L,80),3);
H19:=高-(高-低)*0.191;
H38:=高-(高-低)*0.382;
H中:=高-(高-低)*0.5;
H61:=高-(高-低)*0.618;
H80:=高-(高-低)*0.809;
顶点:REFDATE(高,DATE),POINTDOT,COLOR825C2E;
警惕19.8:REFDATE(H19,DATE),POINTDOT,COLOR825C2E;
突破38.2:REFDATE(H38,DATE),POINTDOT,COLOR825C2E;
平衡50:REFDATE(H中,DATE),POINTDOT,COLOR825C2E;
回落61.8:REFDATE(H61,DATE),POINTDOT,COLOR825C2E;
安全80.9:REFDATE(H80,DATE),POINTDOT,COLOR825C2E;
低点:REFDATE(低,DATE),POINTDOT,COLOR825C2E;
DRAWTEXT(ISLASTBAR,顶点,'顶点'),COLORWHITE;
DRAWTEXT(ISLASTBAR,警惕19.8,'警惕'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,突破38.2,'突破'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,平衡50,'平衡'),COLORRED;
DRAWTEXT(ISLASTBAR,回落61.8,'回落'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,安全80.9,'安全'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,低点,'低点'),COLORWHITE;
突破:=REFDATE(H38,DATE);
警惕:=REFDATE(H19,DATE);
STICKLINE(突破38.2 AND FILTER(突破38.2,31)>0,突破,突破,1200,0),COLORYELLOW,LINETHICK2;
STICKLINE(警惕19.8 AND FILTER(警惕19.8,31)>0,警惕,警惕,1200,0),COLORWHITE,LINETHICK2;


IP属地:江苏1楼2014-03-11 17:23回复
    谢谢楼主分享好的文章,顶上!


    IP属地:广东2楼2014-03-11 17:25
    收起回复
      谢谢楼主分享!香姑的好东西收藏先!


      IP属地:广东5楼2014-03-11 17:27
      收起回复
        没法子,发帖不能超过5000字,只能分段,也不知道是否有错


        IP属地:江苏6楼2014-03-11 17:29
        回复
          请问老师,是不是这么多就一个公式?辛苦了


          IP属地:广东7楼2014-03-11 17:32
          收起回复
            郁闷了,没通过:
            当前公式 : 奇准主图 (指标画线公式)
            错误句 :
            A1:=REF(H,P)=HHV(H,2*P+1)
            详细信息 : 未知字符串 P
            错误起始位置 : 673 ; 长度: 1


            IP属地:广东8楼2014-03-11 17:35
            收起回复
              谢谢老师的精彩分享! 股票天天涨,马上发财 天天都是好心情!


              IP属地:江苏来自Android客户端9楼2014-03-11 17:40
              收起回复
                回复楼上,就是一个主图公式。到此全部完成


                IP属地:江苏12楼2014-03-11 17:51
                回复
                  是不是还要写P值?加了还是没通过,提示跟前面一样!


                  IP属地:广东13楼2014-03-11 17:53
                  收起回复
                    当前公式 : 奇准主图 (指标画线公式)
                    错误句 :
                    低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0)
                    详细信息 : 未知字符串 距前高天YA
                    错误起始位置 : 6350 ; 长度: 10
                    郁闷!


                    IP属地:广东14楼2014-03-11 17:58
                    收起回复
                      P值见参数截图,谢谢互动


                      IP属地:江苏15楼2014-03-11 17:58
                      收起回复
                        感谢楼主分享,辛苦了,愿有更多的好指标分享给大家!


                        来自Android客户端16楼2014-03-11 18:42
                        收起回复
                          楼主高手,指标加工的很不错。受益匪浅。谢谢分享


                          来自Android客户端17楼2014-03-11 18:44
                          收起回复
                            谢谢老师的精彩分享!祝天天都是好心情


                            来自Android客户端18楼2014-03-11 19:18
                            回复
                              谢谢老师的精彩分享! 股票天天涨


                              IP属地:河北19楼2014-03-11 19:30
                              回复