源码:
{M平均线}
input:出货(1.5,0,10),第一(1.2,0,10),突破(1.07,0,10),心理(1.2,0,10),调(30,0,999),参数(4,0,100),N(5,0,999),N1(10,0,999),N2(20,0,999),N3(89,0,999),调1(14,0,999);
DRAWTEXTREL(0,10,'【代码:'+STKLABEL+' 名称:'+STKNAME+'】'),linethick2,colorWhite;
A1:=DISPSTATUS = 2;
A2:=REF(HIGH,参数);
A3:=REF(LOW,参数);
A4:=HHV(A2,调);
A5:=LLV(A3,调);
A6:=HHV(HIGH,调);
A7:=LLV(LOW,调);
A8:=DYNAINFO(7);
A9:=DYNAINFO(5);
A10:=DYNAINFO(6);
A11:=A8 - A7;
A12:=(A11 / A7) * 100;
A13:=A6 - A10;
A14:=(A13 / A10) * 100;
A15:=A6 - A7;
A16:=(A15 / A7) * 100;
A17:=A4 - A5;
A18:=(A17 / A5) * 100;
DRAWTEXTREL(29,115,' 最低/当前幅度 :('+NUMTOSTRN(A12,2)+'%)'+'涨('+NUMTOSTRN(A11,2)+')'+')'),colorWhite;
DRAWTEXTREL(29,85,' 从最低到最高幅度 :('+NUMTOSTRN(A16,2)+'%)'+'涨('+NUMTOSTRN(A15,2)+')'+')'),ColorFEBAF5;
DRAWTEXTREL(245,55,'【调天:'+NUMTOSTRN(调,0)+'天】'),linethick1,ColorFEBAF5;
振幅:((HIGH - LOW) / LOW) * 100,linethick0,colorYellow;
差价:(HIGH - LOW),linethick0,colorYellow;
DRAWTEXTREL(22,50,' 【当天幅度:'+NUMTOSTRN(振幅,2)+'% '+NUMTOSTRN((HIGH - LOW),2)+'元 】'),linethick2,colorGreen;
STICKLINE((振幅 >= 5),HIGH,LOW,0,0),colorGreen;
A19:=(((HIGH + LOW) + OPEN) + (2 * CLOSE)) / 5;
A20:=A19 + (HIGH - LOW);
A21:=(A19 * 2) - LOW;
A22:=(A19 * 2) - HIGH;
A23:=A19 - (HIGH - LOW);
A24:=((((A19 + A20) + A21) + A22) + A23) / 5;
A25:=REF(A20,1);
A26:=REF(A21,1);
A27:=REF(A22,1);
A28:=REF(A23,1);
A29:=REF(A24,1);
DRAWTEXTABS(13,85,'今/明日上升突破点价 :'+NUMTOSTRN(A25,2)+'/'+NUMTOSTRN(A20,2)+NUMTOSTRN(A20,2)),linethick1,colorGreen;
DRAWTEXTABS(13,100,'今/明日上升阻力价位 :'+NUMTOSTRN(A26,2)+'/'+NUMTOSTRN(A21,2)+NUMTOSTRN(A21,2)),linethick1,colorGreen;
DRAWTEXTABS(13,115,'今/明日下跌支撑价位 :'+NUMTOSTRN(A27,2)+'/'+NUMTOSTRN(A22,2)+NUMTOSTRN(A22,2)),linethick1,colorYellow;
DRAWTEXTABS(13,130,'今/明日下跌反转点价位:'+NUMTOSTRN(A28,2)+'/'+NUMTOSTRN(A23,2)+NUMTOSTRN(A23,2)),linethick1,colorYellow;
DRAWTEXTABS(13,145,'今/明日 心理价位 :'+NUMTOSTRN(A29,2)+'/'+NUMTOSTRN(A24,2)+NUMTOSTRN(A24,2)),linethick1,ColorFEFFFF;
A30:=出货 * A7;
A31:=第一 * A7;
A32:=A31 - A7;
A33:=A30 - A7;
A34:=突破 * A6;
A35:=A34 - A6;
A36:=心理 * 1.2;
A37:=A36 - A6;
DRAWTEXTABS(13,190,' 第一目标位:('+NUMTOSTRN(A31,2)+'元)'+' 利润空间('+NUMTOSTRN(A32,2)+')'+')'),linethick1,colorWhite;
DRAWTEXTABS(13,205,' 出货目标位:('+NUMTOSTRN(A30,2)+'元)'+' 利润空间('+NUMTOSTRN(A33,2)+')'+')'),linethick1,colorWhite;
DRAWTEXTABS(13,220,' 突破前期高点后目标位:'+NUMTOSTRN(突破,2)+'倍('+'倍('+NUMTOSTRN(A34,2)+'元)'+' 利润空间('+NUMTOSTRN(A35,2)+')'+')'),linethick1,colorWhite;
A38:=CLOSE * 1.015;
A39:=CLOSE * 1.025;
A40:=REF(A38,1);
A41:=REF(A39,1);
DRAWTEXTABS(13,235,'今/明短线赢利[1.5%--2.5%:]'+NUMTOSTRN(A40,2)+'--'+NUMTOSTRN(A41,2)+'/'+NUMTOSTRN(A38,2)+'--'+NUMTOSTRN(A39,2)),linethick2,ColorFEBAF5;
A42:=A5 - A4;
A43:=A4 - (A17 * 0.191);
A44:=((A4 - (A17 * 0.125)));
A45:=A4 - (A17 * 0.78);
A46:=A5 - (A42 * 1.03);
A47:=A5 - (A42 * 1.125);
A48:=A5 - (A42 * 2);
A49:=A4 - (A17 * 0.5);
A50:=A4 - (A17 * 0.382);
A51:=A4 - (A17 * 0.333);
A52:=A4 - (A17 * 0.85);
A53:=A5 - (A42 * 1.08);
A54:=A5 - (A42 * 1.333);
A55:=A4 - (A17 * 0.618);
A56:=A4 - (A17 * 0.667);
A57:=A4 - (A17 * 0.95);
A58:=A5 - (A42 * 1.1);
A59:=A5 - (A42 * 1.667);
A60:=((A4 - (A17 * 0.809)));
A61:=A4 - (A17 * 0.875);
A62:=A4 - (A17 * 0.45);
A63:=A5 - (A42 * 1.15);
A64:=A5 - (A42 * 1.875);
A65:=(A49);
A66:=A4 - (A17 * 0.375);
A67:=A4 - (A17 * 0.55);
A68:=A5 - (A42 * 1.02);
A69:=A5 - (A42 * 1.375);
A70:=((A4 - (A17 * 0.03)));
A71:=A4 - (A17 * 0.625);
A72:=A5 - (A42 * 1.191);
A73:=A5 - (A42 * 1.45);
A74:=A5 - (A42 * 1.625);
A75:=((A4 - (A17 * 0.05)));
A76:=A4 - (A17 * 0.22);
A77:=A5 - (A42 * 1.382);
A78:=A5 - (A42 * 1.55);
A79:=A5 - (A42 * 1.22);
A80:=((A4 - (A17 * 0.1)));
A81:=A4 - (A17 * 0.25);
A82:=A5 - (A42 * 1.618);
A83:=A5 - (A42 * 1.05);
A84:=A5 - (A42 * 1.28);
A85:=((A4 - (A17 * 0.15)));
A86:=A4 - (A17 * 0.28);
A87:=A5 - (A42 * 1.809);
A88:=A5 - (A42 * 1.9);
A89:=A5 - (A42 * 1.72);
A90:=((A4 - (A17 * 0.9)));
A91:=A4 - (A17 * 0.72);
A92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ALIGN2,Color00DD00;
DRAWTEXT(A1,A58,NUMTOSTRN(A58,2)+'﹊﹊'),linethick1,ALIGN2,ColorEEEEEE;
DRAWTEXT(A1,A73,'145%:'+NUMTOSTRN(A73,2)+'﹉﹉﹉﹉'),linethick1,ALIGN2,colorWhite;
DRAWTEXT(A1,A63,'115%:'+NUMTOSTRN(A63,2)+'﹉﹉﹉﹉'),linethick1,ALIGN2,Color208FFF;
DRAWTEXT(A1,A47,NUMTOSTRN(A47,2)+'﹋﹋﹋﹋﹋﹋'),linethick1,ALIGN2,ColorFEBAF5;
DRAWTEXT(A1,A72,NUMTOSTRN(A72,2)+'﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉'),linethick1,ALIGN2,colorYellow;
DRAWTEXT(A1,A79,NUMTOSTRN(A79,2)+'﹊'),linethick1,ALIGN2,ColorDDDD00;
DRAWTEXT(A1,A98,'125%:'+NUMTOSTRN(A98,2)+'﹉﹉﹉﹉'),linethick1,ALIGN2,Color208FFF;
DRAWTEXT(A1,A54,NUMTOSTRN(A54,2)+'﹋﹋﹋﹋﹋﹋'),linethick1,ALIGN2,ColorFEBAF5;
DRAWTEXT(A1,A77,NUMTOSTRN(A77,2)+'﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉'),linethick1,ALIGN2,colorYellow;
DRAWTEXT(A1,A84,NUMTOSTRN(A84,2)+'﹊'),linethick1,ALIGN2,ColorDDDD00;
DRAWTEXT(A1,A49,NUMTOSTRN(A49,2)+'﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉'),linethick1,ALIGN2,colorWhite;
DRAWTEXT(A1,A62,NUMTOSTRN(A62,2)+'﹉﹉'),linethick1,ALIGN2,Color208FFF;
DRAWTEXT(A1,A67,NUMTOSTRN(A67,2)+'﹉﹉'),linethick1,ALIGN2,Color208FFF;
DRAWTEXT(A1,A95,NUMTOSTRN(A95,2)+'﹉﹉'),linethick1,ALIGN2,Color208FFF;
DRAWTEXT(A1,A81,NUMTOSTRN(A81,2)+'﹉﹉'),linethick1,ALIGN2,Color208FFF;
DRAWTEXT(A1,A75,NUMTOSTRN(A75,2)+'﹊﹊'),linethick1,ALIGN2,colorCyan;
DRAWTEXT(A1,A57,'﹊﹊'),linethick1,ALIGN2,colorCyan;
DRAWTEXT(A1,A44,NUMTOSTRN(A44,2)+'﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋'),linethick1,ALIGN2,ColorFEBAF5;
DRAWTEXT(A1,A51,NUMTOSTRN(A51,2)+'﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋'),linethick1,ALIGN2,ColorFEBAF5;
DRAWTEXT(A1,A56,NUMTOSTRN(A56,2)+'﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋'),linethick1,ALIGN2,ColorFEBAF5;
DRAWTEXT(A1,A61,NUMTOSTRN(A61,2)+'﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋﹋'),linethick1,ALIGN2,ColorFEBAF5;
DRAWTEXT(A1,A90,'﹊﹊'),linethick1,ALIGN2,ColorF0FF00;
DRAWTEXT(A1,A80,'﹊﹊'),linethick1,ALIGN2,ColorF0FF00;
DRAWTEXT(A1,A76,'﹊ ﹊ '),linethick1,ALIGN2,ColorF0FF00;
DRAWTEXT(A1,A86,NUMTOSTRN(A86,2)+'﹊ ﹊﹊﹊﹊ '),linethick1,ALIGN2,ColorF0FF00;
DRAWTEXT(A1,A91,NUMTOSTRN(A91,2)+'﹊ ﹊﹊﹊ '),linethick1,ALIGN2,ColorF0FF00;
DRAWTEXT( |