《双龙聚首强庄起爆:三线擒牛主图战法》
本指标通过独特的"三线合一"算法,精准捕捉主力资金启动的关键节点。公式以波高线、波低线和趋势线为核心构建多维分析体系:
核心功能:
1. 趋势线(黄色粗线)实时展示价格运行方向
2. 红绿变色机制直观提示多空转换
3. 波高波低线(白色点线)清晰标定支撑压力
4. 智能识别主力吸筹完毕的起爆信号
实战应用:
- 当趋势线由绿转红且股价突破波高线时,为最佳介入时机
- 三线聚拢后发散往往预示大级别行情启动
- 配合底部出现的买入图标(1、38)可增强信号可靠性
- 顶部出现的卖出图标(2、39)提示风险区域
使用技巧:
建议在日线级别结合量能验证,当出现"双龙聚首"信号(三线共振+图标提示)时重点跟踪,突破关键位置后择机参与。本指标特别适合捕捉强势股的第二波启动点,帮助投资者抓住主力拉升的关键阶段。
(注:公式来源,使用前请验证当前市场环境的适应性)
ZBGS1:=1+19000000;
ZBGS2:=1;
DRAWTEXT(ZBGS2=0&&REF(ZBGS2=1,1),HIGH,1),COLORRED;
ZBGS3:=IF(PERIOD<=1,42,IF(PERIOD<=2,35,IF(PERIOD<=4,28,IF(PERIOD<=5,21,IF(PERIOD<=6,14,7)))));
ZBGS4:=IF(PERIOD<=1,63,IF(PERIOD<=2,63,IF(PERIOD<=4,63,IF(PERIOD<=5,49,IF(PERIOD<=6,21,14)))));
ZBGS5:=IF(PERIOD<=1,9,IF(PERIOD<=2,7,IF(PERIOD<=4,2,IF(PERIOD<=5,1,IF(PERIOD<=6,1,1)))));
ZBGS6:=IF(PERIOD<=1,5,IF(PERIOD<=2,4,IF(PERIOD<=4,3,IF(PERIOD<=5,3,IF(PERIOD<=6,2,1)))));
ZBGS7:=IF(PERIOD<=1,35,IF(PERIOD<=2,28,IF(PERIOD<=4,21,IF(PERIOD<=5,14,IF(PERIOD<=6,7,5)))));
ZBGS8:=0.144;
ZBGS9:=1;
ZBGS10:=0;
ZBGS11:=(-1);
ZBGS12:=(HIGH+LOW+CLOSE)/3;
ZBGS13:=MAX(MAX(HIGH-LOW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BGS11,ZBGS10));
ZBGS107:=IF(ZBGS101>ZBGS105,ZBGS9,IF(ZBGS105>ZBGS101,ZBGS11,ZBGS10));
ZBGS108:=IF(ZBGS99>ZBGS103,ZBGS9,IF(ZBGS103>ZBGS99,ZBGS11,ZBGS10));
ZBGS109:=IF(ZBGS100>ZBGS104,ZBGS9,IF(ZBGS104>ZBGS100,ZBGS11,ZBGS10));
ZBGS110:=ZBGS106+ZBGS107+ZBGS108;
ZBGS111:=ZBGS106+ZBGS107+ZBGS109;
ZBGS112:=ZBGS110>0;
ZBGS113:=ZBGS110<0;
ZBGS114:=ZBGS111>0;
ZBGS115:=ZBGS111<0;
ZBGS116:=IF(ZBGS15>=ZBGS3,ZBGS3,MIN(10,ZBGS15));
ZBGS117:=ZBGS88>=ZBGS52;
ZBGS118:=ZBGS88<=0-ZBGS52;
ZBGS119:=ZBGS88<ZBGS52&&ZBGS88>0-ZBGS52;
ZBGS120:=COUNT(ZBGS117,ZBGS116);
ZBGS121:=COUNT(ZBGS118,ZBGS116);
ZBGS122:=COUNT(ZBGS119,ZBGS116);
ZBGS123:=ZBGS120/ZBGS116*100;
ZBGS124:=ZBGS121/ZBGS116*100;
ZBGS125:=ZBGS122/ZBGS116*100;
ZBGS126:=CROSS(ZBGS26,ZBGS60);
ZBGS127:=BARSLAST(ZBGS126);
ZBGS128:=CROSS(ZBGS59,ZBGS26);
ZBGS129:=BARSLAST(ZBGS128);
ZBGS130:=ZBGS117||ZBGS124<=35;
ZBGS131:=ZBGS118||ZBGS123<=35;
ZBGS132:=IF(ZBGS60>=ZBGS26||ZBGS59<=ZBGS26,ZBGS114&&ZBGS108>0,ZBGS112)&&ZBGS130;
ZBGS133:=IF(ZBGS59<=ZBGS26||ZBGS60>=ZBGS26,ZBGS115&&ZBGS108<0,ZBGS113)&&ZBGS131;
ZBGS134:=NOT(ZBGS132)&&NOT(ZBGS133);
ZBGS135:=REF(NOT(ZBGS132),1)&&ZBGS132;
ZBGS136:=REF(NOT(ZBGS133),1)&&ZBGS133;
NOTEXT1:IF(ZBGS132*ZBGS2,ZBGS26,DRAWNULL),COLORRED,LINETHICK3;
NOTEXT2:IF(ZBGS133*ZBGS2,ZBGS26,DRAWNULL),COLORGREEN,LINETHICK3;
ZBGS137:=BARSLAST(ZBGS132);
ZBGS138:=REF(ZBGS137,ZBGS137+1)+1+ZBGS137;
ZBGS139:=REF(ZBGS137,ZBGS138+1)+1+ZBGS138+ZBGS137;
ZBGS140:=BARSLAST(ZBGS133);
ZBGS141:=REF(ZBGS140,ZBGS140+1)+1+ZBGS140;
ZBGS142:=REF(ZBGS140,ZBGS141+1)+1+ZBGS141+ZBGS140;
ZBGS143:=28;
ZBGS144:=HHV(ZBGS88,ZBGS143);
ZBGS145:=REF(HHV(ZBGS88,ZBGS143),ZBGS140);
ZBGS146:=REF(HHV(ZBGS88,ZBGS143),ZBGS141);
ZBGS147:=REF(HHV(ZBGS88,ZBGS143),ZBGS142);
ZBGS148:=LLV(ZBGS88,ZBGS143);
ZBGS149:=REF(LLV(ZBGS88,ZBGS143),ZBGS137);
ZBGS150:=REF(LLV(ZBGS88,ZBGS143),ZBGS138);
ZBGS151:=REF(LLV(ZBGS88,ZBGS143),ZBGS139);
ZBGS152:=IF(IF(ZBGS145=DRAWNULL,1,0),ZBGS144,IF(IF(ZBGS146=DRAWNULL,1,0),MAX(ZBGS144,ZBGS145),MAX(ZBGS146,MAX(ZBGS144,ZBGS145))));
ZBGS153:=IF(IF(ZBGS149=DRAWNULL,1,0),ZBGS148,IF(IF(ZBGS150=DRAWNULL,1,0),MIN(ZBGS148,ZBGS149),MIN(ZBGS150,MIN(ZBGS148,ZBGS149))));
ZBGS154:=MAX(ZBGS152,ABS(ZBGS153));
ZBGS155:=MAX(ZBGS154,0.1);
ZBGS156:=MIN(0-ZBGS154,(-0.1));
ZBGS157:=ZBGS155*0.95;
ZBGS158:=ZBGS156*0.95;
ZBGS159:=ZBGS88>=ZBGS157;
ZBGS160:=ZBGS88<=ZBGS158;
ZBGS161:=REF(NOT(ZBGS159),1)&&ZBGS159;
ZBGS162:=REF(NOT(ZBGS160),1)&&ZBGS160;
ZBGS163:=REF(ZBGS159,1)&&NOT(ZBGS159);
ZBGS164:=REF(ZBGS160,1)&&NOT(ZBGS160);
ZBGS165:=BARSLAST(ZBGS163);
ZBGS166:=BARSLAST(ZBGS164);
ZBGS167:=3;
ZBGS168:=LOW<=ZBGS56;
ZBGS169:=HIGH>=ZBGS55;
ZBGS170:=BARSLAST(ZBGS168);
ZBGS171:=BARSLAST(ZBGS169);
ZBGS172:=CROSS(CLOSE,ZBGS26)&&ZBGS170<=ZBGS167&&COUNT(CROSS(CLOSE,ZBGS26),ZBGS167)<=1||(ZBGS170=ZBGS167&&EVERY(LOW>ZBGS56,ZBGS167-1)&&EVERY(CLOSE<ZBGS26,ZBGS167));
ZBGS173:=BARSLAST(ZBGS172);
ZBGS174:=IF(ZBGS172,REF(ZBGS173,1)+1,REF(ZBGS173,ZBGS173+1)+1+ZBGS173);
ZBGS175:=IF(ZBGS172,REF(ZBGS174,1)+1,REF(ZBGS173,ZBGS174+1)+1+ZBGS174);
ZBGS176:=IF(ZBGS172,REF(ZBGS175,1)+1,REF(ZBGS173,ZBGS175+1)+1+ZBGS175);
ZBGS177:=CROSS(ZBGS26,CLOSE)&&ZBGS171<=ZBGS167&&COUNT(CROSS(ZBGS26,CLOSE),ZBGS167)<=1||(ZBGS171=ZBGS167&&EVERY(HIGH<ZBGS55,ZBGS167-1)&&EVERY(CLOSE>ZBGS26,ZBGS167));
ZBGS178:=BARSLAST(ZBGS177);
ZBGS179:=IF(ZBGS177,REF(ZBGS178,1)+1,REF(ZBGS178,ZBGS178+1)+1+ZBGS178);
ZBGS180:=IF(ZBGS177,REF(ZBGS179,1)+1,REF(ZBGS178,ZBGS179+1)+1+ZBGS179);
ZBGS181:=IF(ZBGS177,REF(ZBGS180,1)+1,REF(ZBGS178,ZBGS180+1)+1+ZBGS180);
ZBGS182:=REF(ZBGS170,ZBGS173)+ZBGS173;
ZBGS183:=REF(ZBGS171,ZBGS178)+ZBGS178;
ZBGS184:=REF(LLV(LOW,5),ZBGS182);
ZBGS185:=REF(ZBGS184,ZBGS174);
ZBGS186:=REF(ZBGS184,ZBGS175);
ZBGS187:=REF(ZBGS184,ZBGS176);
ZBGS188:=REF(HHV(HIGH,5),ZBGS183);
ZBGS189:=REF(ZBGS188,ZBGS179);
ZBGS190:=REF(ZBGS188,ZBGS180);
ZBGS191:=REF(ZBGS188,ZBGS181);
ZBGS192:=ZBGS174<=ZBGS3*2&&ABS(ZBGS184-ZBGS185)<=ZBGS54;
ZBGS193:=IF(REF(ZBGS192,ZBGS175)&&REF(ZBGS192,ZBGS174)&&REF(ZBGS192,ZBGS173),ZBGS187,IF(REF(ZBGS192,ZBGS174)&&REF(ZBGS192,ZBGS173),ZBGS186,IF(REF(ZBGS192,ZBGS173),ZBGS185,ZBGS184)));
ZBGS194:=IF(ZBGS193=ZBGS187,ZBGS176,IF(ZBGS193=ZBGS186,ZBGS175,IF(ZBGS193=ZBGS185,ZBGS174,ZBGS173)));
ZBGS195:=REF(ZBGS193,ZBGS194+1);
ZBGS196:=ZBGS179<=ZBGS3*2&&ABS(ZBGS188-ZBGS189)<=ZBGS53;
ZBGS197:=IF(REF(ZBGS196,ZBGS180)&&REF(ZBGS196,ZBGS179)&&REF(ZBGS196,ZBGS178),ZBGS191,IF(REF(ZBGS196,ZBGS179)&&REF(ZBGS196,ZBGS178),ZBGS190,IF(REF(ZBGS196,ZBGS178),ZBGS189,ZBGS188)));
ZBGS198:=IF(ZBGS197=ZBGS191,ZBGS181,IF(ZBGS197=ZBGS190,ZBGS180,IF(ZBGS197=ZBGS189,ZBGS179,ZBGS178)));
ZBGS199:=REF(ZBGS197,ZBGS198+1);
ZBGS200:=ABS(ZBGS197-ZBGS193);
ZBGS201:=ZBGS193-ZBGS195;
ZBGS202:=ZBGS197-ZBGS199;
ZBGS203:=ZBGS201/ZBGS195*100;
ZBGS204:=LLV(ZBGS203,200);
ZBGS205:=ZBGS202/ZBGS199*100;
ZBGS206:=HHV(ZBGS205,200);
ZBGS207:=ZBGS200/ZBGS14;
ZBGS208:=ZBGS201/ZBGS14;
ZBGS209:=ZBGS202/ZBGS14;
ZBGS210:=ZBGS201/ZBGS54;
ZBGS211:=ZBGS202/ZBGS53;
STICKLINE(ZBGS193=REF(ZBGS193,1)&&ZBGS193*ZBGS2,ZBGS193,ZBGS193,1,0),COLORGREEN;
STICKLINE(ZBGS197=REF(ZBGS197,1)&&ZBGS197*ZBGS2,ZBGS197,ZBGS197,1,0),COLORRED;
ZBGS212:=CROSS(ZBGS59,CLOSE)||(CLOSE<ZBGS59&&MAX(HIGH,REF(CLOSE,1))>=ZBGS59);
ZBGS213:=CROSS(CLOSE,ZBGS60)||(CLOSE>ZBGS60&&MIN(LOW,REF(CLOSE,1))<=ZBGS60);
ZBGS214:=CROSS(CLOSE,ZBGS62)||(CLOSE>ZBGS62&&MIN(LOW,REF(CLOSE,1))<=ZBGS62);
ZBGS215:=CROSS(ZBGS63,CLOSE)||(CLOSE<ZBGS63&&MAX(HIGH,REF(CLOSE,1))>=ZBGS63);
ZBGS216:=CROSS(ZBGS26,CLOSE)||(CLOSE<ZBGS26&&MAX(HIGH,REF(CLOSE,1))>=ZBGS26);
ZBGS217:=CROSS(CLOSE,ZBGS26)||(CLOSE>ZBGS26&&MIN(LOW,REF(CLOSE,1))<=ZBGS26);
ZBGS218:=CROSS(CLOSE,ZBGS197)||(CLOSE>ZBGS197&&MIN(LOW,REF(CLOSE,1))<=ZBGS197);
ZBGS219:=CROSS(ZBGS193,CLOSE)||(CLOSE<ZBGS193&&MAX(HIGH,REF(CLOSE,1))>=ZBGS193);
ZBGS220:=CROSS(ZBGS197,CLOSE)||(CLOSE<ZBGS197&&MAX(HIGH,REF(CLOSE,1))>=ZBGS197);
ZBGS221:=CROSS(CLOSE,ZBGS193)||(CLOSE>ZBGS193&&MIN(LOW,REF(CLOSE,1))<=ZBGS193);
ZBGS222:=CROSS(CLOSE,ZBGS195)&&(CLOSE>ZBGS195&&MIN(LOW,REF(CLOSE,1))<=ZBGS195);
ZBGS223:=CROSS(ZBGS199,CLOSE)&&(CLOSE<ZBGS199&&MAX(HIGH,REF(CLOSE,1))>=ZBGS199);
DRAWTEXT_FIX(1,0.980,20,1,' '),COLOR333333;
ZBGS224:=EVERY(CLOSE<ZBGS59,ZBGS7);
ZBGS225:=EVERY(CLOSE>ZBGS60,ZBGS7);
ZBGS226:=ABS(REF(CLOSE-OPEN,1))/2+REF(CLOSE,1);
ZBGS227:=ZBGS226<=ZBGS193;
ZBGS228:=ZBGS226>=ZBGS197;
ZBGS229:=ZBGS219&&(ZBGS133||ZBGS26>ZBGS61)&&OPEN<REF(CLOSE,1)&&HIGH<ZBGS193;
ZBGS230:=ZBGS218&&(ZBGS132||ZBGS26<ZBGS61)&&OPEN>REF(CLOSE,1)&&LOW>ZBGS197;
ZBGS231:=ZBGS219&&ZBGS207>=ZBGS6&&(ZBGS133||ZBGS26>ZBGS61);
ZBGS232:=ZBGS218&&ZBGS207>=ZBGS6&&(ZBGS132||ZBGS26<ZBGS61);
ZBGS233:=REF(ZBGS231,1)||ZBGS229&&OPEN<ZBGS193;
ZBGS234:=REF(ZBGS232,1)||ZBGS230&&OPEN>ZBGS197;
ZBGS235:=ZBGS233&&COUNT(ZBGS233,ZBGS173+1)<=1;
ZBGS236:=ZBGS234&&COUNT(ZBGS234,ZBGS178+1)<=1;
DRAWICON(ZBGS235*ZBGS2,ZBGS26,2);
DRAWICON(ZBGS236*ZBGS2,ZBGS26,1);
ZBGS237:=CROSS(ZBGS59,ZBGS26);
ZBGS238:=BARSLAST(ZBGS237);
ZBGS239:=CROSS(ZBGS26,ZBGS60);
ZBGS240:=BARSLAST(ZBGS239);
ZBGS241:=CROSS(ZBGS61,ZBGS26);
ZBGS242:=CROSS(ZBGS26,ZBGS61);
ZBGS243:=ZBGS241&&COUNT(ZBGS241,ZBGS238)<=1;
ZBGS244:=ZBGS242&&COUNT(ZBGS242,ZBGS240)<=1;
DRAWICON(ZBGS243*ZBGS2,ZBGS60,36);
DRAWICON(ZBGS244*ZBGS2,ZBGS59,37);
ZBGS245:=(ZBGS26-ZBGS60)/(ZBGS59-ZBGS60)*100;
ZBGS246:=ZBGS26<=ZBGS60&&ZBGS213;
ZBGS247:=ZBGS26>=ZBGS59&&ZBGS212;
ZBGS248:=ZBGS245<25&&ZBGS217&&ZBGS26>ZBGS60&&ZBGS26<ZBGS59;
ZBGS249:=ZBGS245>75&&ZBGS216&&ZBGS26>ZBGS60&&ZBGS26<ZBGS59;
ZBGS250:=ZBGS246||ZBGS248&&EVERY(CLOSE>ZBGS60,5);
ZBGS251:=ZBGS247||ZBGS249&&EVERY(CLOSE<ZBGS59,5);
ZBGS252:=BARSLAST(ZBGS250);
ZBGS253:=BARSLAST(ZBGS251);
ZBGS254:=HIGH>REF(HIGH,1)&&HIGH>REF(HIGH,2)&&ZBGS252<=5;
ZBGS255:=LOW<REF(LOW,1)&&LOW<REF(LOW,2)&&ZBGS253<=5;
ZBGS256:=ZBGS254&&COUNT(ZBGS254,5)<=1;
ZBGS257:=ZBGS255&&COUNT(ZBGS255,5)<=1;
DRAWICON(ZBGS256*ZBGS2,MIN(LOW,ZBGS60),38);
DRAWICON(ZBGS257*ZBGS2,MAX(HIGH,ZBGS59),39)