beyond202104 发表于 2023-8-28 16:35:23

主图画线(通达信公式 主图 源码 测试图)


{主图画线}
SVAR4:=BARSTATUS = 2 ;SVAR5:=(CLOSE + LOW + HIGH) / 3 ;SVAR6:=EMA(SVAR5,6) ;SVAR7:=EMA(SVAR6,5) ;SVAR8:=EMA(SVAR7,12) ;SVAR9:=EMA(SVAR8,5) ;SVAR10:=REF(HIGH,3) = HHV(HIGH,2 * 3 + 1) ;SVAR11:=FILTER(SVAR10,3) ;SVAR12:=BACKSET(SVAR11,3 + 1) ;SVAR13:=FILTER(SVAR12,3) ;SVAR14:=REF(LOW,3) = LLV(LOW,2 * 3 + 1) ;SVAR15:=FILTER(SVAR14,3) ;SVAR16:=BACKSET(SVAR15,3 + 1) ;SVAR17:=FILTER(SVAR16,3) ;SVAR18:=(REF(LLV(LOW,2 * 3),1) + REF(HHV(HIGH,2 * 3),1)) / 2 ;SVAR19:=(HIGH + LOW) / 2 ;SVAR20:=(SVAR13 AND NOT(SVAR17 AND SVAR18 >= SVAR19)) OR SVAR4 OR (BARSCOUNT(CLOSE) = 1) ;SVAR21:=SVAR17 AND NOT(SVAR13 AND (SVAR18 = SVAR19)) ;SVAR22:=REF(BARSLAST(SVAR20),1) + 1 ;SVAR23:=BACKSET(SVAR20 AND COUNT(SVAR21,SVAR22) > 0,LLVBARS(IF(SVAR21,LOW,10000),SVAR22)) ;SVAR24:=SVAR23 > REF(SVAR23,1) ;SVAR25:=BACKSET(SVAR24,2) ;SVAR26:=SVAR25 > REF(SVAR25,1) ;SVAR27:=SVAR26 OR SVAR4 OR (BARSCOUNT(CLOSE) = 1) ;SVAR28:=REF(BARSLAST(SVAR27),1) + 1 ;SVAR29:=BACKSET(SVAR27 AND COUNT(SVAR20,SVAR28) > 0,HHVBARS(IF(SVAR20,HIGH,0),SVAR28)) ;SVAR30:=SVAR29 > REF(SVAR29,1) ;SVAR31:=BACKSET(SVAR30,2) ;SVAR32:=SVAR31 > REF(SVAR31,1) ;SVAR33:=BACKSET(SVAR4,BARSLAST(SVAR26) + 1) ;SVAR34:=SVAR33 > REF(SVAR33,1) ;SVAR35:=BACKSET(SVAR4,BARSLAST(SVAR32) + 1) ;SVAR36:=SVAR35 > REF(SVAR35,1) ;SVAR37:=FILTER(BACKSET(FILTER(REF(CLOSE,10) = HHV(CLOSE,2 * 10 + 1),10),10 + 1),10) ;SVAR38:=FILTER(BACKSET(FILTER(REF(CLOSE,10) = LLV(CLOSE,2 * 10 + 1),10),10 + 1),10) ;SVAR39:=REF(CLOSE,BARSLAST(SVAR37)) ;SVAR40:=REF(CLOSE,BARSLAST(SVAR38)) ;SVAR41:=BARSLAST(SVAR37) < BARSLAST(SVAR38) AND NOT(SVAR37) ;SVAR42:=BARSLAST(SVAR37) > BARSLAST(SVAR38) AND NOT(SVAR38) ;SVAR43:=HHV(MA((LOW + HIGH + CLOSE) / 3,3),3) ;SVAR44:=LLV(MA((LOW + HIGH + CLOSE) / 3,3),10) ;SVAR45:=LLV(LOW,BARSLAST(BARSTATUS = 1) + 1) ;SVAR46:=COST(95) ;SVAR47:=COST(5) ;SVAR48:=(SVAR46 - SVAR47) * 100 / (SVAR46 + SVAR47) ;SVAR49:=3 ;SVAR50:=REF(HIGH,SVAR49) = HHV(HIGH,2 * SVAR49 + 1) ;SVAR51:=FILTER(SVAR50,SVAR49) ;SVAR52:=BACKSET(SVAR51,SVAR49 + 1) ;SVAR53:=FILTER(SVAR52,SVAR49) ;SVAR54:=REF(LOW,SVAR49) = LLV(LOW,2 * SVAR49 + 1) ;SVAR55:=FILTER(SVAR54,SVAR49) ;SVAR56:=BACKSET(SVAR55,SVAR49 + 1) ;SVAR57:=FILTER(SVAR56,SVAR49) ;SVAR58:=(REF(LLV(LOW,2 * SVAR49),1) + REF(HHV(HIGH,2 * SVAR49),1)) / 2 ;SVAR59:=(SVAR53 AND NOT(SVAR57 AND SVAR58 >= SVAR19)) OR (BARSTATUS = 2) OR (BARSCOUNT(CLOSE) = 1) ;SVAR60:=SVAR57 AND NOT(SVAR53 AND SVAR58 < SVAR19) ;SVAR61:=REF(BARSLAST(SVAR59),1) + 1 ;SVAR62:=BACKSET(SVAR59 AND COUNT(SVAR60,SVAR61) > 0,LLVBARS(IF(SVAR60,LOW,10000),SVAR61)) ;SVAR63:=SVAR62 > REF(SVAR62,1) ;SVAR64:=BACKSET(SVAR63,2) ;SVAR65:=SVAR64 > REF(SVAR64,1) ;SVAR66:=SVAR65 OR (BARSTATUS = 2) OR (BARSCOUNT(CLOSE) = 1) ;SVAR67:=REF(BARSLAST(SVAR66),1) + 1 ;SVAR68:=BACKSET(SVAR66 AND COUNT(SVAR53 AND NOT(SVAR57 AND SVAR58 >= SVAR19),SVAR67) > 0,HHVBARS(IF(SVAR53 AND NOT(SVAR57 AND SVAR58 >= SVAR19),HIGH,0),SVAR67)) ;SVAR69:=SVAR68 > REF(SVAR68,1) ;SVAR70:=BACKSET(SVAR69,2) ;SVAR71:=SVAR70 > REF(SVAR70,1) ;SVAR72:=BACKSET(BARSTATUS = 2,BARSLAST(SVAR71) + 1) ;SVAR73:=SVAR72 > REF(SVAR72,1) ;SVAR74:=BACKSET(BARSTATUS = 2,BARSLAST(SVAR65) + 1) ;SVAR75:=SVAR74 > REF(SVAR74,1) ;SVAR76:=BACKSET(SVAR73,REF(BARSLAST(SVAR71),1) + 2) ;SVAR77:=SVAR76 > REF(SVAR76,1) ;SVAR78:=BACKSET(SVAR75,REF(BARSLAST(SVAR65),1) + 2) ;SVAR79:=SVAR78 > REF(SVAR78,1) ;SVAR80:=BACKSET(SVAR79,REF(BARSLAST(SVAR65),1) + 2) ;SVAR81:=SVAR80 > REF(SVAR80,1) ;SVAR82:=BACKSET(SVAR81,REF(BARSLAST(SVAR65),1) + 2) ;SVAR83:=SVAR82 > REF(SVAR82,1) ;SVAR84:=BACKSET(SVAR77,REF(BARSLAST(SVAR71),1) + 2) ;SVAR85:=SVAR84 > REF(SVAR84,1) ;SVAR86:=BACKSET(SVAR85,REF(BARSLAST(SVAR71),1) + 2) ;SVAR87:=SVAR86 > REF(SVAR86,1) ;波浪顶:IF(SVAR41,SVAR39,SVAR39),POINTDOT,LINETHICK3,COLORFFFF00 ;波浪底:IF(SVAR42,SVAR40,SVAR40),POINTDOT,LINETHICK3,COLORFF00FF ; A1:DRAWLINE(SVAR77,HIGH,SVAR73,HIGH,1),LINETHICK2,COLOR00FFFF;A2:DRAWLINE(SVAR79,LOW,SVAR75,LOW,1),LINETHICK2,COLOR00FFFF;A3:DRAWLINE(SVAR85,HIGH,SVAR77,HIGH,1),LINETHICK2,COLORFF8000;A4:DRAWLINE(SVAR81,LOW,SVAR79,LOW,1),LINETHICK2,COLORFF8000;A5:DRAWLINE(SVAR87,HIGH,SVAR85,HIGH,1),LINETHICK2,COLOR0000FF;
A6:DRAWLINE(SVAR83,LOW,SVAR81,LOW,1),LINETHICK2,COLOR0000FF;




果静击 发表于 2023-10-5 12:47:29

好好 学习了 确实不错

男人何来妮称幸 发表于 2023-11-11 14:26:02

如果想获取全部资源,怎么操作?

没有小马甲的阿9 发表于 2023-12-28 17:55:47

好人啊!

忘忧的双鱼评 发表于 2024-1-21 00:56:27

群众力量就是大,分享万岁!

今夕何夕535 发表于 2024-2-11 05:34:28

支持一下:lol

芙蓉花开2017 发表于 2024-2-27 16:20:18

学习了,谢谢分享、、、

正三告漳 发表于 2024-3-11 16:21:41

路过,学习下

侧面微笑掷 发表于 2024-3-29 16:59:08

点赞楼主!
页: [1]
查看完整版本: 主图画线(通达信公式 主图 源码 测试图)