这个指标是一个综合交易系统陕西期货配资,多个信号叠加确认,帮助我们更客观地看待市场。
没有未来函数。
注意 不要单独使用某个信号需要多信号配合确认结合大盘走势判断考虑市场整体环境重视止损位置设置做好资金管理安装到通达信主图以下代码直接复制到通达信,如果不知道怎么安装公式,可以参考这一篇文章:
用AI做量化,通达信的趋势突破指标(重新修订版)
图片陕西期货配资
图片
图片
指标源码 ```plaintext{综合交易系统}{基础均线}S1:=MA(CLOSE,21);S2:=MA(CLOSE,144);S3:=MA(CLOSE,33);S4:=MA(CLOSE,6);S5:=MA(CLOSE,24);S6:=MA(CLOSE,6),COLORRED;S7:=MA(CLOSE,9),COLORRED;S8:=((ATAN((S6-REF(S6,1)))*3.1416)*10);S9:=((ATAN((S7-REF(S7,1)))*3.1416)*10);S10:=MA(CLOSE,15);{均价计算}S11:=((OPEN+LOW+HIGH+CLOSE)/4);S12:=LLV(LOW,30),COLORGREEN;S13:=LLV(HIGH,30);S14:=EMA(S11,5);S15:=HHV(S14,60);S16:=HHV(LOW,20),COLORMAGENTA;S17:=SMA(LOW,5,1);S18:=MA(CLOSE,3);{趋势信号}DRAWTEXT(FILTER(((HIGH>S15 AND CLOSE<S15) AND (CLOSE/OPEN>-1.06) AND CLOSE<OPEN),5),(HIGH*1.06),'风险'),COLOR00FF00;S19:=(MA(HIGH,18)*1.05);S20:=(MA(LOW,18)*0.985);S21:=(MA(LOW,18)*0.96);S22:=((HIGH+LOW+CLOSE)/3);S23:=HHV(S22,60);S24:=LLV(S22,60);S25:=(S23-S24);S26:=(MA((S22-S24)/S25,2)*80);{RSI计算}S27:=((CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)))*200;S28:=SMA(S27,3,1);S29:=SMA(S28,3,1);S30:=((3*S28)-(2*S29));S31:=LLV(LOW,5);S32:=HHV(HIGH,5);S33:=(EMA((((CLOSE-S31)/(S32-S31))*100),4)*2);S34:=EMA(((0.667*REF(S33,1))+(0.333*S33)),2);S35:=((3*S33)-(2*S34));{波动计算}S36:=(POW(MA(CLOSE,3),2)+MA(CLOSE,3));S37:=(POW(MA(LOW,3),2)+MA(LOW,3));S38:=(POW(MA(HIGH,3),2)+MA(HIGH,3));S39:=(((((S36-LLV(S37,64))/(HHV(S38,64)-LLV(S37,64)))*150)+65)-10);S40:=((SMA(S39,3,1)*1.5)-100);S41:=SMA(S40,3,1);S42:=((3*S40)-(2*S41));{价格计算}S43:=(((HIGH+LOW)+(CLOSE*2))/4);S44:=EMA(S43,15);S45:=STD(S43,15);S46:=(((S43-S44)*100)/S45);S47:=EMA(S46,5);S48:=EMA(S47,15);S49:=((EMA(S47,15)+200)-100);S50:=EMA(S49,12);S51:=((3*S49)-(2*S50));{趋势组合}S52:=(((S28+S33)+S40)+S49);S53:=(((S29+S34)+S41)+S50);S54:=(((S30+S35)+S42)+S51);S55:=(((HIGH+LOW)+CLOSE)/3);S56:=((AMOUNT/VOL)/100);S57:=((SUM(AMOUNT,5)/SUM(VOL,5))/100);S58:=((S55-MA(S55,33))/(0.015*AVEDEV(S55,33)));S59:=((((HIGH+LOW)+CLOSE)+S55)/4);S60:=EMA(S59,24);S61:=STD(S59,24);S62:=(((S59-S60)/S61)*100);S63:=((S55-MA(S55,24))/(0.015*AVEDEV(S55,24)));S64:=EMA(S62,5);S65:=((S56-MA(S56,21))/(0.015*AVEDEV(S56,21)));S66:=((S57-MA(S57,89))/(0.015*AVEDEV(S57,89)));S67:=(((((((S66+S65)+S64)+S63)+S58)/5)+165)/4);S68:=(((((S52+S53)+(S54*30))/32)/5)-15);S69:=(((S67+S68)/2)/1.1);S70:=S69;S71:=MA(S70,27);S72:=(S71+(2*STD(S70,27)));S73:=(S71-(2*STD(S70,27)));S74:=IF((S70>S71),S71,S70);{均线系统}S75:=MA(CLOSE,3);S76:=MA(CLOSE,89);S77:=LLV(HIGH,30)*0.93,COLORBLUE;S78:=LLV(HIGH,30);S79:=SMA(CLOSE,2,1);S80:=(MA(LOW,12)*0.96);S81:=(EMA(OPEN,107)*0.897);S82:=MA(CLOSE,18);S83:=MA(CLOSE,12);S84:=(SMA(HIGH,21,2)*1.05);S85:=(HHV(S14,60)*0.92);S86:=(SMA(HIGH,21,2)*1.035);S87:=(SMA(LOW,21,2)*0.96);{KDJ变形}S88:=(((CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15)))*100);S89:=SMA(S88,3,1);S90:=SMA(S89,3,1);S91:=((3*S89)-(2*S90));{趋势偏离}S92:=(((CLOSE-MA(CLOSE,6))/MA(CLOSE,6))*100);S93:=(((CLOSE-MA(CLOSE,12))/MA(CLOSE,12))*100);S94:=(((CLOSE-MA(CLOSE,24))/MA(CLOSE,24))*100);S95:=(((S92+(2*S93))+(3*S94))/6);S96:=MA(S95,3);{RSI系统}S97:=(((CLOSE-LLV(LOW,33))/(HHV(HIGH,33)-LLV(LOW,33)))*100);S98:=SMA(S97,3,1);S99:=SMA(S98,3,1);S100:=((3*S98)-(2*S99));S101:=(((CLOSE-LLV(LOW,33))/(HHV(HIGH,33)-LLV(LOW,33)))*100);S102:=SMA(S101,3,1);S103:=SMA(S102,3,1);S104:=((3*S102)-(2*S103));{信号系统}S105:=IF(CROSS(S91,S104),LOW,REF(LOW,BARSLAST(CROSS(S91,S104))));S106:=IF(CROSS(S104,S91),HIGH,REF(HIGH,BARSLAST(CROSS(S104,S91)))),COLORWHITE;S107:=IF((CLOSE>=MA(CLOSE,21)),80,50);S108:=IF((CLOSE>=MA(CLOSE,21)),50,20);{趋势判断}S109:=IF(((S91<S107) AND (REF(S91,1)>=S107)),HHV(REF(HIGH,1),(BARSLAST(((S91>=S107) AND (REF(S91,1)<S107)))-1)),REF(HHV(REF(HIGH,1),(BARSLAST(((S91>=S107) AND (REF(S91,1)<S107)))-1)),BARSLAST(((S91<S107) AND REF(S91,1)))));S110:=IF((HIGH>S109),LOW,REF(LOW,BARSLAST((HIGH>S109))));S111:=IF((HIGH>S109),S91,REF(S91,BARSLAST((HIGH>S109))));S112:=IF((((HIGH>S110) AND (S91<S111)) AND (S91<S104)),HIGH,REF(HIGH,BARSLAST((((HIGH>S110) AND (S91<S111)) AND (S91<S104)))));S113:=IF(((S91>S108) AND (REF(S91,1)<=S108)),LLV(REF(LOW,1),(BARSLAST(((S91<=S108) AND (REF(S91,1)>S108)))-1)),REF(LLV(REF(LOW,1),(BARSLAST(((S91<=S108) AND (REF(S91,1)>S108)))-1)),BARSLAST(((S91>S108) AND REF(S91,1)))));S114:=IF((LOW<S113),HIGH,REF(HIGH,BARSLAST((LOW<S113))));S115:=IF((LOW<S113),S91,REF(S91,BARSLAST((LOW<S113))));S116:=IF((((LOW<S114) AND (S91>S115)) AND (S91>S104)),LOW,REF(LOW,BARSLAST((((LOW<S114) AND (S91>S115)) AND (S91>S104)))));S117:=LLV(HIGH,30),COLORRED;{买卖信号}DRAWTEXT(FILTER((((S116=S105) AND (CLOSE>OPEN)) AND (CLOSE>S117) AND (LOW<=S105)),20),(LOW*0.97),'底成'),COLOR0000FF;S118:=(SMA(HIGH,5,2)*1.05);S119:=(SMA(LOW,5,2)*0.96);S120:=SMA(LOW,2,1);S121:=(((((3*CLOSE)+HIGH)+LOW)+OPEN)/6);S122:=EMA(S121,12);S123:=REF(S122,1);S124:=((REF(HIGH,1)+REF(LOW,1))/2);S125:=(MA(CLOSE,21)+(2*STD(CLOSE,21)));S126:=REF(CLOSE,1);S127:=((SMA(MAX((CLOSE-S126),0),6,1)/SMA(ABS((CLOSE-S126)),6,1))*100);S128:=CROSS(79,S127);S129:=FILTER(S128,4);S130:=MA(CLOSE,110);S131:=EMA(CLOSE,8);S132:=EMA(S131,20);S133:=CROSS(S131,S132);S134:=(S131<MA(CLOSE,21));S135:=(((HHV(HIGH,33)-CLOSE)/(HHV(HIGH,33)-LLV(LOW,33)))*100);S136:=SMA(S135,5,1);S137:=SMA(S136,8,1);S138:=(CROSS(S136,S137) AND (S137<5));S139:=((CLOSE>(LLV(CLOSE,60)+(0.3*LLV(CLOSE,60)))) AND S138);S140:=IF((CLOSE>1000),S138,S139);S141:=CROSS(S122,S123);S142:=S141;S143:=(S133 AND S134);S144:=S140;{信号显示}DRAWTEXT(S129,(HIGH*1.08),'出货'),COLORFF00FF;DRAWTEXT((S144>0),(HIGH*1.06),'风险'),COLORFF0000;S145:=(SMA(HIGH,21,2)*1.05);S146:=(SMA(LOW,21,2)*0.94);{交易信号}DRAWTEXT(FILTER(((((((((CLOSE/OPEN)>1.03) AND ((S82-REF(S82,1))>0)) AND ((CLOSE-REF(CLOSE,1))>0)) AND (HIGH<S16)) AND (CLOSE<S16)) AND ((S86-REF(S86,1))>0)) AND (CLOSE<S84)),3),(LOW*0.95),'准备'),COLOR00FF00;DRAWTEXT((((((S143>0) AND ((S122-REF(S122,1))>0)) AND (HIGH<S106)) AND (HIGH<S130)) AND ((S123-REF(S123,1))>0)),(LOW*0.93),'潜伏'),COLOR0000FF;DRAWTEXT((((((CROSS(S70,S71) AND ((CLOSE-REF(HIGH,1))>0)) AND ((S18-REF(S18,1))>0)) AND (HIGH<=S16)) AND (CLOSE<S1)) AND (LOW<=S18)),(LOW*0.91),'关注'),COLOR00FF00;DRAWTEXT((((CROSS(S70,S73) AND (HIGH<S16)) AND ((S75-REF(S75,1))>0)) AND (HIGH<S15)),(LOW*0.89),'买'),COLORWHITE;DRAWTEXT(FILTER(((((((LOW<=S20) AND (CLOSE>=S1)) AND (HIGH<S16)) AND ((S20-REF(S20,1))>0)) AND (CLOSE<S16)) AND ((S1-REF(S1,1))>0)),6),(LOW*0.87),'全仓'),COLOR00FFFF;DRAWTEXT(FILTER((((((S142 AND (CLOSE<S106)) AND ((S21-REF(S21,1))>0)) AND ((S122-REF(S122,1))>0)) AND (HIGH<S85)) AND ((CLOSE/OPEN)>1.03)),5),(LOW*0.85),'做多'),COLOR00FF00;DRAWTEXT(FILTER((((((S26<=1) AND (LOW<=S146)) AND (CLOSE>OPEN)) AND (LOW<=S12)) AND (CLOSE>=S117)),3),(LOW*0.83),'短抄'),COLORFF00FF;DRAWTEXT(FILTER((((CROSS(S80,S81) AND (HIGH<S76)) AND (HIGH<S16)) AND LLV(LOW,0)),10),(LOW*0.81),'果断买'),COLORFFFF00;DRAWTEXT(FILTER(((CROSS(S18,S21) AND (LOW<=S21)) AND (CLOSE>=S21)),4),(LOW*0.79),'买'),COLOR00FF00;DRAWTEXT(((CROSS(S146,S117) AND (S8>1)) AND (HIGH<S15)),(LOW*0.77),'准备'),COLOR00FF00;DRAWTEXT(FILTER(((((LOW<=S78) AND (CLOSE>S78)) AND (CLOSE>OPEN)) AND (S79<=S78)),8),(LOW*0.75),'底'),COLORFFFF00;DRAWTEXT(((CROSS(S1,S106) AND (LOW<=S1)) AND ((S1-REF(S1,1))>0.02)),(LOW*0.73),'佳买'),COLORFF00FF;DRAWTEXT((((((((CROSS(CLOSE,S1) AND (HIGH<S106)) AND (OPEN<S1)) AND (HIGH<S15)) AND ((S84-REF(S84,1))>0)) AND ((S122-REF(S122,1))>0)) AND (S91<63)) AND ((S1-REF(S1,1))>0)),(LOW*0.71),'大牛'),COLOR808080;DRAWTEXT(CROSS(S12,S77),(LOW*0.69),'短买'),COLOR00FFFF;{K线标记}STICKLINE(CROSS(MA(CLOSE,15),CLOSE) AND MA(CLOSE,15)>REF(MA(CLOSE,15),1) AND VOL<REF(VOL,1) AND MA(CLOSE,15)>MA(CLOSE,33),LOW,LOW*0.98,3,0),COLORFFFF00;DRAWTEXT(CROSS(MA(CLOSE,15),CLOSE) AND INDEXC>MA(INDEXC,15) AND MA(CLOSE,15)>REF(MA(CLOSE,15),1) AND VOL<REF(VOL,1) AND MA(CLOSE,15)>MA(CLOSE,33),LOW*0.95,'买'),COLORFF0000;{趋势信号}DRAWTEXT(CROSS(CLOSE,(((CLOSE-REF(MA(CLOSE,21),1))/21+MA(CLOSE,15))*1.20)) AND MA(CLOSE,15)>REF(MA(CLOSE,15),1),HIGH*1.04,'减仓'),COLOR00FF00;STICKLINE(CROSS(CLOSE,(((CLOSE-REF(MA(CLOSE,21),1))/21+MA(CLOSE,15))*1.20)) AND MA(CLOSE,15)>REF(MA(CLOSE,15),1),HIGH,HIGH*1.02,3,0),COLORFFFF00;{趋势强度}S153:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,33))/MA(CLOSE,33)*100)/3;{最终信号}DRAWTEXT(S153>9 AND FILTER(S153<REF(S153,1),5),(HIGH*1.10),'洗盘'),COLOR00FF00;DRAWTEXT(S153>20 AND FILTER(S153<REF(S153,1),5),(HIGH*1.12),'卖出'),COLORFFFF00;S154:=HHV(S153>20,10);DRAWTEXT(S153<-20 AND INDEXC<MA(INDEXC,15) AND FILTER(S153>REF(S153,1),5),(LOW*0.67),'抄底'),COLORFFFF00;DRAWTEXT(S154 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,21)+2*STD(CLOSE,21)),(HIGH*1.14),'危险'),COLORFFFF00;因为这个指标有点长,有些朋友喜欢文字版,我把文字版也放在下面,复制粘贴到通达信即可:
{综合交易系统}
{基础均线} S1:=MA(CLOSE,21); S2:=MA(CLOSE,144); S3:=MA(CLOSE,33); S4:=MA(CLOSE,6); S5:=MA(CLOSE,24); S6:=MA(CLOSE,6),COLORRED; S7:=MA(CLOSE,9),COLORRED; S8:=((ATAN((S6-REF(S6,1)))*3.1416)*10); S9:=((ATAN((S7-REF(S7,1)))*3.1416)*10); S10:=MA(CLOSE,15);
{均价计算} S11:=((OPEN+LOW+HIGH+CLOSE)/4); S12:=LLV(LOW,30),COLORGREEN; S13:=LLV(HIGH,30); S14:=EMA(S11,5); S15:=HHV(S14,60); S16:=HHV(LOW,20),COLORMAGENTA; S17:=SMA(LOW,5,1); S18:=MA(CLOSE,3);
{趋势信号} DRAWTEXT(FILTER(((HIGH>S15 AND CLOSE<S15) AND (CLOSE/OPEN>-1.06) AND CLOSE<OPEN),5),(HIGH*1.06),'风险'),COLOR00FF00; S19:=(MA(HIGH,18)*1.05); S20:=(MA(LOW,18)*0.985); S21:=(MA(LOW,18)*0.96); S22:=((HIGH+LOW+CLOSE)/3); S23:=HHV(S22,60); S24:=LLV(S22,60); S25:=(S23-S24); S26:=(MA((S22-S24)/S25,2)*80);
{RSI计算} S27:=((CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)))200; S28:=SMA(S27,3,1); S29:=SMA(S28,3,1); S30:=((3S28)-(2S29)); S31:=LLV(LOW,5); S32:=HHV(HIGH,5); S33:=(EMA((((CLOSE-S31)/(S32-S31))100),4)2); S34:=EMA(((0.667REF(S33,1))+(0.333S33)),2); S35:=((3S33)-(2*S34));
{波动计算} S36:=(POW(MA(CLOSE,3),2)+MA(CLOSE,3)); S37:=(POW(MA(LOW,3),2)+MA(LOW,3)); S38:=(POW(MA(HIGH,3),2)+MA(HIGH,3)); S39:=(((((S36-LLV(S37,64))/(HHV(S38,64)-LLV(S37,64)))150)+65)-10); S40:=((SMA(S39,3,1)1.5)-100); S41:=SMA(S40,3,1); S42:=((3S40)-(2S41));
{价格计算} S43:=(((HIGH+LOW)+(CLOSE2))/4); S44:=EMA(S43,15); S45:=STD(S43,15); S46:=(((S43-S44)100)/S45); S47:=EMA(S46,5); S48:=EMA(S47,15); S49:=((EMA(S47,15)+200)-100); S50:=EMA(S49,12); S51:=((3S49)-(2S50));
{趋势组合} S52:=(((S28+S33)+S40)+S49); S53:=(((S29+S34)+S41)+S50); S54:=(((S30+S35)+S42)+S51); S55:=(((HIGH+LOW)+CLOSE)/3); S56:=((AMOUNT/VOL)/100); S57:=((SUM(AMOUNT,5)/SUM(VOL,5))/100); S58:=((S55-MA(S55,33))/(0.015AVEDEV(S55,33))); S59:=((((HIGH+LOW)+CLOSE)+S55)/4); S60:=EMA(S59,24); S61:=STD(S59,24); S62:=(((S59-S60)/S61)100); S63:=((S55-MA(S55,24))/(0.015AVEDEV(S55,24))); S64:=EMA(S62,5); S65:=((S56-MA(S56,21))/(0.015AVEDEV(S56,21))); S66:=((S57-MA(S57,89))/(0.015AVEDEV(S57,89))); S67:=(((((((S66+S65)+S64)+S63)+S58)/5)+165)/4); S68:=(((((S52+S53)+(S5430))/32)/5)-15); S69:=(((S67+S68)/2)/1.1); S70:=S69; S71:=MA(S70,27); S72:=(S71+(2STD(S70,27))); S73:=(S71-(2STD(S70,27))); S74:=IF((S70>S71),S71,S70);
{均线系统} S75:=MA(CLOSE,3); S76:=MA(CLOSE,89); S77:=LLV(HIGH,30)*0.93,COLORBLUE; S78:=LLV(HIGH,30); S79:=SMA(CLOSE,2,1); S80:=(MA(LOW,12)*0.96); S81:=(EMA(OPEN,107)*0.897); S82:=MA(CLOSE,18); S83:=MA(CLOSE,12); S84:=(SMA(HIGH,21,2)*1.05); S85:=(HHV(S14,60)*0.92); S86:=(SMA(HIGH,21,2)*1.035); S87:=(SMA(LOW,21,2)*0.96);
{KDJ变形} S88:=(((CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15)))100); S89:=SMA(S88,3,1); S90:=SMA(S89,3,1); S91:=((3S89)-(2*S90));
{趋势偏离} S92:=(((CLOSE-MA(CLOSE,6))/MA(CLOSE,6))*100); S93:=(((CLOSE-MA(CLOSE,12))/MA(CLOSE,12))100); S94:=(((CLOSE-MA(CLOSE,24))/MA(CLOSE,24))100); S95:=(((S92+(2S93))+(3S94))/6); S96:=MA(S95,3);
{RSI系统} S97:=(((CLOSE-LLV(LOW,33))/(HHV(HIGH,33)-LLV(LOW,33)))100); S98:=SMA(S97,3,1); S99:=SMA(S98,3,1); S100:=((3S98)-(2S99)); S101:=(((CLOSE-LLV(LOW,33))/(HHV(HIGH,33)-LLV(LOW,33)))100); S102:=SMA(S101,3,1); S103:=SMA(S102,3,1); S104:=((3S102)-(2S103));
{信号系统} S105:=IF(CROSS(S91,S104),LOW,REF(LOW,BARSLAST(CROSS(S91,S104)))); S106:=IF(CROSS(S104,S91),HIGH,REF(HIGH,BARSLAST(CROSS(S104,S91)))),COLORWHITE; S107:=IF((CLOSE>=MA(CLOSE,21)),80,50); S108:=IF((CLOSE>=MA(CLOSE,21)),50,20);
{趋势判断} S109:=IF(((S91<S107) AND (REF(S91,1)>=S107)),HHV(REF(HIGH,1),(BARSLAST(((S91>=S107) AND (REF(S91,1)<S107)))-1)),REF(HHV(REF(HIGH,1),(BARSLAST(((S91>=S107) AND (REF(S91,1)<S107)))-1)),BARSLAST(((S91<S107) AND REF(S91,1))))); S110:=IF((HIGH>S109),LOW,REF(LOW,BARSLAST((HIGH>S109)))); S111:=IF((HIGH>S109),S91,REF(S91,BARSLAST((HIGH>S109)))); S112:=IF((((HIGH>S110) AND (S91<S111)) AND (S91<S104)),HIGH,REF(HIGH,BARSLAST((((HIGH>S110) AND (S91<S111)) AND (S91<S104))))); S113:=IF(((S91>S108) AND (REF(S91,1)<=S108)),LLV(REF(LOW,1),(BARSLAST(((S91<=S108) AND (REF(S91,1)>S108)))-1)),REF(LLV(REF(LOW,1),(BARSLAST(((S91<=S108) AND (REF(S91,1)>S108)))-1)),BARSLAST(((S91>S108) AND REF(S91,1))))); S114:=IF((LOW<S113),HIGH,REF(HIGH,BARSLAST((LOW<S113)))); S115:=IF((LOW<S113),S91,REF(S91,BARSLAST((LOW<S113)))); S116:=IF((((LOW<S114) AND (S91>S115)) AND (S91>S104)),LOW,REF(LOW,BARSLAST((((LOW<S114) AND (S91>S115)) AND (S91>S104))))); S117:=LLV(HIGH,30),COLORRED;
{买卖信号} DRAWTEXT(FILTER((((S116=S105) AND (CLOSE>OPEN)) AND (CLOSE>S117) AND (LOW<=S105)),20),(LOW*0.97),'底成'),COLOR0000FF; S118:=(SMA(HIGH,5,2)1.05); S119:=(SMA(LOW,5,2)0.96); S120:=SMA(LOW,2,1); S121:=(((((3CLOSE)+HIGH)+LOW)+OPEN)/6); S122:=EMA(S121,12); S123:=REF(S122,1); S124:=((REF(HIGH,1)+REF(LOW,1))/2); S125:=(MA(CLOSE,21)+(2STD(CLOSE,21))); S126:=REF(CLOSE,1); S127:=((SMA(MAX((CLOSE-S126),0),6,1)/SMA(ABS((CLOSE-S126)),6,1))*100); S128:=CROSS(79,S127); S129:=FILTER(S128,4); S130:=MA(CLOSE,110); S131:=EMA(CLOSE,8); S132:=EMA(S131,20); S133:=CROSS(S131,S132); S134:=(S131<MA(CLOSE,21)); S135:=(((HHV(HIGH,33)-CLOSE)/(HHV(HIGH,33)-LLV(LOW,33)))100); S136:=SMA(S135,5,1); S137:=SMA(S136,8,1); S138:=(CROSS(S136,S137) AND (S137<5)); S139:=((CLOSE>(LLV(CLOSE,60)+(0.3LLV(CLOSE,60)))) AND S138); S140:=IF((CLOSE>1000),S138,S139); S141:=CROSS(S122,S123); S142:=S141; S143:=(S133 AND S134); S144:=S140;
{信号显示} DRAWTEXT(S129,(HIGH1.08),'出货'),COLORFF00FF; DRAWTEXT((S144>0),(HIGH1.06),'风险'),COLORFF0000; S145:=(SMA(HIGH,21,2)*1.05); S146:=(SMA(LOW,21,2)*0.94);
{交易信号} DRAWTEXT(FILTER(((((((((CLOSE/OPEN)>1.03) AND ((S82-REF(S82,1))>0)) AND ((CLOSE-REF(CLOSE,1))>0)) AND (HIGH<S16)) AND (CLOSE<S16)) AND ((S86-REF(S86,1))>0)) AND (CLOSE<S84)),3),(LOW0.95),'准备'),COLOR00FF00; DRAWTEXT((((((S143>0) AND ((S122-REF(S122,1))>0)) AND (HIGH<S106)) AND (HIGH<S130)) AND ((S123-REF(S123,1))>0)),(LOW0.93),'潜伏'),COLOR0000FF; DRAWTEXT((((((CROSS(S70,S71) AND ((CLOSE-REF(HIGH,1))>0)) AND ((S18-REF(S18,1))>0)) AND (HIGH<=S16)) AND (CLOSE<S1)) AND (LOW<=S18)),(LOW0.91),'关注'),COLOR00FF00; DRAWTEXT((((CROSS(S70,S73) AND (HIGH<S16)) AND ((S75-REF(S75,1))>0)) AND (HIGH<S15)),(LOW0.89),'买'),COLORWHITE; DRAWTEXT(FILTER(((((((LOW<=S20) AND (CLOSE>=S1)) AND (HIGH<S16)) AND ((S20-REF(S20,1))>0)) AND (CLOSE<S16)) AND ((S1-REF(S1,1))>0)),6),(LOW0.87),'全仓'),COLOR00FFFF; DRAWTEXT(FILTER((((((S142 AND (CLOSE<S106)) AND ((S21-REF(S21,1))>0)) AND ((S122-REF(S122,1))>0)) AND (HIGH<S85)) AND ((CLOSE/OPEN)>1.03)),5),(LOW0.85),'做多'),COLOR00FF00; DRAWTEXT(FILTER((((((S26<=1) AND (LOW<=S146)) AND (CLOSE>OPEN)) AND (LOW<=S12)) AND (CLOSE>=S117)),3),(LOW0.83),'短抄'),COLORFF00FF; DRAWTEXT(FILTER((((CROSS(S80,S81) AND (HIGH<S76)) AND (HIGH<S16)) AND LLV(LOW,0)),10),(LOW0.81),'果断买'),COLORFFFF00; DRAWTEXT(FILTER(((CROSS(S18,S21) AND (LOW<=S21)) AND (CLOSE>=S21)),4),(LOW0.79),'买'),COLOR00FF00; DRAWTEXT(((CROSS(S146,S117) AND (S8>1)) AND (HIGH<S15)),(LOW0.77),'准备'),COLOR00FF00; DRAWTEXT(FILTER(((((LOW<=S78) AND (CLOSE>S78)) AND (CLOSE>OPEN)) AND (S79<=S78)),8),(LOW0.75),'底'),COLORFFFF00; DRAWTEXT(((CROSS(S1,S106) AND (LOW<=S1)) AND ((S1-REF(S1,1))>0.02)),(LOW0.73),'佳买'),COLORFF00FF; DRAWTEXT((((((((CROSS(CLOSE,S1) AND (HIGH<S106)) AND (OPEN<S1)) AND (HIGH<S15)) AND ((S84-REF(S84,1))>0)) AND ((S122-REF(S122,1))>0)) AND (S91<63)) AND ((S1-REF(S1,1))>0)),(LOW0.71),'大牛'),COLOR808080; DRAWTEXT(CROSS(S12,S77),(LOW0.69),'短买'),COLOR00FFFF;
{K线标记} STICKLINE(CROSS(MA(CLOSE,15),CLOSE) AND MA(CLOSE,15)>REF(MA(CLOSE,15),1) AND VOL<REF(VOL,1) AND MA(CLOSE,15)>MA(CLOSE,33),LOW,LOW0.98,3,0),COLORFFFF00; DRAWTEXT(CROSS(MA(CLOSE,15),CLOSE) AND INDEXC>MA(INDEXC,15) AND MA(CLOSE,15)>REF(MA(CLOSE,15),1) AND VOL<REF(VOL,1) AND MA(CLOSE,15)>MA(CLOSE,33),LOW0.95,'买'),COLORFF0000;
{趋势信号} DRAWTEXT(CROSS(CLOSE,(((CLOSE-REF(MA(CLOSE,21),1))/21+MA(CLOSE,15))1.20)) AND MA(CLOSE,15)>REF(MA(CLOSE,15),1),HIGH1.04,'减仓'),COLOR00FF00; STICKLINE(CROSS(CLOSE,(((CLOSE-REF(MA(CLOSE,21),1))/21+MA(CLOSE,15))1.20)) AND MA(CLOSE,15)>REF(MA(CLOSE,15),1),HIGH,HIGH1.02,3,0),COLORFFFF00;
{趋势强度} S153:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,33))/MA(CLOSE,33)*100)/3;
{最终信号} DRAWTEXT(S153>9 AND FILTER(S153<REF(S153,1),5),(HIGH1.10),'洗盘'),COLOR00FF00; DRAWTEXT(S153>20 AND FILTER(S153<REF(S153,1),5),(HIGH1.12),'卖出'),COLORFFFF00; S154:=HHV(S153>20,10); DRAWTEXT(S153<-20 AND INDEXC<MA(INDEXC,15) AND FILTER(S153>REF(S153,1),5),(LOW0.67),'抄底'),COLORFFFF00; DRAWTEXT(S154 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,21)+2STD(CLOSE,21)),(HIGH*1.14),'危险'),COLORFFFF00;
每个人的交易体系不同,指标也各有不同,
可以按个人喜好再进行修改。
风险提示:本指标仅供技术研究与学习交流使用。资本市场具有高度不确定性,任何基于本指标的投资决策都需要自行承担风 险,不构成任何投资建议。
图片
图片
以量化为界 让账户新高
图片
图片
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报。