老师您好.请老师修改一个指标, [博易POBO]
咨询内容:
A1:=REF(MINUTE,1)=0;
B1:=BARSLAST(A1)+1;
AA:=REF(STKDATA('',5,'HIGH'),B1);
BB:=REF(STKDATA('',5,'LOW'),B1);
A11:=REF(MINUTE,1)=30;
B11:=BARSLAST(A11)+1;
AA11:=REF(STKDATA('',5,'HIGH'),B11);
BB11:=REF(STKDATA('',5,'LOW'),B11);
CC1:=HOUR>8 AND HOUR<12;
CC2:=HOUR>20 AND HOUR<24;
CC3:=CC1 OR CC2;
DD1:=DATAPERIOD=3 OR DATAPERIOD=13 OR DATAPERIOD=2;
DRAWSL(ISLASTBAR AND DD1 AND CC3,AA,0,10000,0),COLORRED;
DRAWSL(ISLASTBAR AND DD1 AND CC3,BB,0,10000,0),COLOR0080FF;
DRAWSL(ISLASTBAR AND DD1 AND HOUR>12 AND HOUR<16,AA11,0,1000,0),COLORRED;
DRAWSL(ISLASTBAR AND DD1 AND HOUR>12 AND HOUR<16,BB11,0,1000,0),COLOR0080FF;
给你添麻烦了.谢谢 <!-- 咨询内容:
DRAWSL(ISLASTBAR AND DD1 AND HOUR=21:30,AA11,0,1000,0),COLORRED;
DRAWSL(ISLASTBAR AND DD1 AND HOUR=21:30,BB11,0,1000,0),COLOR0080FF; A1:=REF(MINUTE,1)=0;
B1:=BARSLAST(A1)+1;
AA:=REF(STKDATA('',5,'HIGH'),B1);
BB:=REF(STKDATA('',5,'LOW'),B1);
A11:=REF(MINUTE,1)=30;
B11:=BARSLAST(A11)+1;
AA11:=REF(STKDATA('',5,'HIGH'),B11);
BB11:=REF(STKDATA('',5,'LOW'),B11);
CC1:=HOUR>8ANDHOUR<12;
CC2:=HOUR>20ANDHOUR<24;
CC3:=CC1ORCC2;
DD1:=DATAPERIOD=3ORDATAPERIOD=13ORDATAPERIOD=2ANDDATAPERIOD=4ANDDATAPERIOD=5;
DRAWSL(ISLASTBARANDDD1ANDCC3,AA,0,10000,0),COLORRED;
DRAWSL(ISLASTBARANDDD1ANDCC3,BB,0,10000,0),COLOR0080FF;
DRAWSL(ISLASTBARANDDD1ANDHOUR>12ANDHOUR<16,AA11,0,1000,0),COLORRED;
DRAWSL(ISLASTBARANDDD1ANDHOUR>12ANDHOUR<16,BB11,0,1000,0),COLOR0080FF;
DRAWSL(DD1ANDHOUR=21ANDMINUTE=30,H,0,20,0),COLORGREEN;
DRAWSL(DD1ANDHOUR=21ANDMINUTE=30,L,0,20,0),COLORGREEN; 来源 程序化久久网
老师您好.请老师修改一个指标,
要求只显示在3、5、15.30,60 分钟上,取晚间21点30分的K线高低价,高低点的横线,要求一直往右延伸到收盘价的空白处.A1:=REF(MINUTE,1)=0;
B1:=BARSLAST(A1)+1;
AA:=REF(STKDATA('',5,'HIGH'),B1);
BB:=REF(STKDATA('',5,'LOW'),B1);
A11:=REF(MINUTE,1)=30;
B11:=BARSLAST(A11)+1;
AA11:=REF(STKDATA('',5,'HIGH'),B11);
BB11:=REF(STKDATA('',5,'LOW'),B11);
CC1:=HOUR>8 AND HOUR<12;
CC2:=HOUR>20 AND HOUR<24;
CC3:=CC1 OR CC2;
DD1:=DATAPERIOD=3 OR DATAPERIOD=13 OR DATAPERIOD=2;
DRAWSL(ISLASTBAR AND DD1 AND CC3,AA,0,10000,0),COLORRED;
DRAWSL(ISLASTBAR AND DD1 AND CC3,BB,0,10000,0),COLOR0080FF;
DRAWSL(ISLASTBAR AND DD1 AND HOUR>12 AND HOUR<16,AA11,0,1000,0),COLORRED;
DRAWSL(ISLASTBAR AND DD1 AND HOUR>12 AND HOUR<16,BB11,0,1000,0),COLOR0080FF;
给你添麻烦了.谢谢 <!-- 咨询内容:
附件 :
-->
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 加上一段即可,测试一下通不通DRAWSL(ISLASTBAR AND DD1 AND HOUR=21:30,AA11,0,1000,0),COLORRED;
DRAWSL(ISLASTBAR AND DD1 AND HOUR=21:30,BB11,0,1000,0),COLOR0080FF; A1:=REF(MINUTE,1)=0;
B1:=BARSLAST(A1)+1;
AA:=REF(STKDATA('',5,'HIGH'),B1);
BB:=REF(STKDATA('',5,'LOW'),B1);
A11:=REF(MINUTE,1)=30;
B11:=BARSLAST(A11)+1;
AA11:=REF(STKDATA('',5,'HIGH'),B11);
BB11:=REF(STKDATA('',5,'LOW'),B11);
CC1:=HOUR>8ANDHOUR<12;
CC2:=HOUR>20ANDHOUR<24;
CC3:=CC1ORCC2;
DD1:=DATAPERIOD=3ORDATAPERIOD=13ORDATAPERIOD=2ANDDATAPERIOD=4ANDDATAPERIOD=5;
DRAWSL(ISLASTBARANDDD1ANDCC3,AA,0,10000,0),COLORRED;
DRAWSL(ISLASTBARANDDD1ANDCC3,BB,0,10000,0),COLOR0080FF;
DRAWSL(ISLASTBARANDDD1ANDHOUR>12ANDHOUR<16,AA11,0,1000,0),COLORRED;
DRAWSL(ISLASTBARANDDD1ANDHOUR>12ANDHOUR<16,BB11,0,1000,0),COLOR0080FF;
DRAWSL(DD1ANDHOUR=21ANDMINUTE=30,H,0,20,0),COLORGREEN;
DRAWSL(DD1ANDHOUR=21ANDMINUTE=30,L,0,20,0),COLORGREEN; 来源 程序化久久网
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
相关文章
-
没有相关内容