吴建新 发表于 2016-11-26 13:30

存盘公式分时主图

FF:=(C-REF(C,N))/REF(C,N);
STICKLINE(FF>0,DYNAINFO(3),DYNAINFO(3)*(1+FF),0.5,0),COLORRED;
STICKLINE(FF<0,DYNAINFO(3),DYNAINFO(3)*(1+FF),0.5,0),COLORGREEN;
N0:=STRCAT(CON2STR(YEAR,0),' 年 ');
Y:=STRCAT(CON2STR(MONTH,0),' 月 ');
R:=STRCAT(CON2STR(DAY,0),' 日 ');
SJ:=STRCAT(STRCAT(N0,Y), R);
DRAWTEXT_FIX(C>0,0.68,0,0,SJ);
A:=O>C AND C>REF(C,1) AND O/REF(C,1)>1.03;


均价5:AMOUNT/VOL/100,NODRAW;
假阴0:=O>C AND 均价5>REF(C,1);
DRAWTEXT(假阴0,L-0.2,'假阴真阳'),COLORE8E8E8;
STICKLINE(假阴0,O,C,1,0),COLORRED;

时间:=TIME=100000;
N:=BARSLAST(时间),COLOR808080;
常数:CONST(IF(N=0,C,REF(C,N))),COLOR004848,DOTLINE;
CS1:=CONST(IF(N,HHV(H,0),REF(HHV(H,0),N))),COLORWHITE;
CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N))),COLORWHITE;
STICKLINE(时间=1,CS1,CS2,-1,0),COLOR808080;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLORFFFFFF,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=1,阻力,'      阻力'),COLORFFFFFF;
支撑:L1+P1*0.5/8,COLORFFFFFF,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=1,支撑,'      支撑'),COLORFFFFFF;
中:(支撑+阻力)/2,COLORFFFFFF,DOTLINE;
现价:CLOSE,COLORWHITE,LINETHICK1;
MR:=C<支撑 AND CROSS(C,REF(C,2));
STICKLINE(CROSS(现价,支撑),C,中,2,0),COLOR00CCCC;
STICKLINE(MR=1,支撑,中,2,0),COLOR00CCCC;
DRAWICON(MR=1 OR CROSS(现价,支撑),中,34);
STICKLINE(CROSS(支撑,现价),支撑,(支撑-中)/5+支撑,2,0),COLORMAGENTA;
MC:=C>阻力 AND CROSS(REF(C,2),C);
STICKLINE(CROSS(阻力,现价),C,中,2,0),COLOR8C8C00;
STICKLINE(MC=1,阻力,中,2,0),COLOR8C8C00;
DRAWICON(MC=1 OR CROSS(阻力,现价),中,35);
STICKLINE(CROSS(现价,阻力),阻力,阻力-(支撑-中)/5,2,0),COLORGREEN;
DRAWTEXT(ISLASTBAR,(支撑+阻力)/2,'      中'),COLORFFFFFF;

最新:C,LINETHICK1,COLORWHITE;
IF(C>=REF(C,1),C,DRAWNULL),LINETHICK1,COLORWHITE;
AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));
BB:=BETWEEN(C/AA,C+H,C-H);
DRAWICON(ISLASTBAR AND C>REF(C,1),C,1);
DRAWICON(ISLASTBAR AND C<REF(C,1),C,2);
LL:=IF(BARSCOUNT(C)<=30,C,999);
CONST(LLV(LL,0)),COLORFFFF00;
{要求是在开盘后30分钟内(9点30分————10点)最低价处画一条线};
DRAWRECTREL(62.5,0,62.5,1000,RGB(250,250,0));
DRAWRECTREL(187.5,0,187.5,1000,RGB(250,250,0));
DRAWRECTREL(312,0,312,1000,RGB(250,250,0));
DRAWRECTREL(437,0,437,1000,RGB(250,250,0));
DRAWRECTREL(562,0,562,1000,RGB(250,250,0));
DRAWRECTREL(687,0,687,1000,RGB(250,250,0));
DRAWRECTREL(812,0,812,1000,RGB(250,250,0));
DRAWRECTREL(937,0,937,1000,RGB(250,250,0));
{n12005 }



咖啡豆80 发表于 2016-11-26 16:10

谢谢分享,好好学习。

吾道问道 发表于 2016-11-29 13:55

谢谢分享,好好学习,天天向上。

ljxlxq 发表于 2016-11-29 14:13

谢谢楼主分享

吾道问道 发表于 2016-11-30 19:26

谢谢分享,好好学习,天天向上。

auto 发表于 2018-2-13 06:38

感谢楼主的精彩分享!学习了!

东升123 发表于 2018-2-13 10:27

谢谢分享辛苦了

yishuiriyue 发表于 2020-6-16 01:53


谢谢分享,好好学习,天天向上。

kjjzsl 发表于 2020-6-16 07:37

感谢楼主的精彩分享!

小城农夫 发表于 2020-6-20 23:00

感谢分享!

金燕369 发表于 2021-2-21 14:00


感谢楼主的分享
页: [1]
查看完整版本: 存盘公式分时主图