请懂的帮我把这个公式改成博易大师的,谢谢!!!! 10
P1:=REF(HIGH,1)>HIGHANDREF(HIGH,1)>下鄂;平衡线买:REF(REF(HIGH,1),BARSLAST(p1)),LINETHICK0,C...
P1:=REF(HIGH,1)>HIGH AND REF(HIGH,1)>下鄂;
平衡线买:REF(REF(HIGH,1),BARSLAST(p1)),LINETHICK0,COLORWHITE;
STICKLINE(CROSS(HIGH,平衡线买) AND LOW>平衡线买,(HIGH+LOW)/2,(HIGH+LOW)/2,12,0),LINETHICK1,COLORWHITE;
STICKLINE(CROSS(HIGH,平衡线买) AND LOW<=平衡线买,平衡线买,平衡线买,12,0),LINETHICK1,COLORWHITE;
P2:=REF(LOW,1)<LOW AND REF(LOW,1)<下鄂;
平衡线卖:REF(REF(LOW,1),BARSLAST(p2)),LINETHICK0,COLORCYAN;
STICKLINE(CROSS(平衡线卖,LOW) AND HIGH<平衡线卖,(HIGH+LOW)/2,(HIGH+LOW)/2,12,0),LINETHICK1,COLORCYAN;
STICKLINE(CROSS(平衡线卖,LOW) AND HIGH>=平衡线卖,平衡线卖,平衡线卖,12,0),LINETHICK1,COLORCYAN;
{AO,AC方向}
VAR1:=(H+L)/2
AO:SMA(VAR1,5,1)-SMA(VAR1,34,1)
AC:SMA((AO-SMA(AO,5,1)),5,1)
DRAWTEXT(ISLASTBAR AND AO>REF(AO,1) AND AC>REF(AC,1),Y,'↑AO↑AC'),SHIFT1,COLORRED;
DRAWTEXT(ISLASTBAR AND AO<REF(AO,1) AND AC<REF(AC,1),Y,'↓AO↓AC'),SHIFT1,COLORGREEN;
DRAWTEXT(ISLASTBAR AND AO>REF(AO,1) AND AC<REF(AC,1),Y,'↑AO↓AC'),SHIFT1,COLORWHITE;
DRAWTEXT(ISLASTBAR AND AO<REF(AO,1) AND AC>REF(AC,1),Y,'↓AO↑AC'),SHIFT1,COLORWHITE; 展开
平衡线买:REF(REF(HIGH,1),BARSLAST(p1)),LINETHICK0,COLORWHITE;
STICKLINE(CROSS(HIGH,平衡线买) AND LOW>平衡线买,(HIGH+LOW)/2,(HIGH+LOW)/2,12,0),LINETHICK1,COLORWHITE;
STICKLINE(CROSS(HIGH,平衡线买) AND LOW<=平衡线买,平衡线买,平衡线买,12,0),LINETHICK1,COLORWHITE;
P2:=REF(LOW,1)<LOW AND REF(LOW,1)<下鄂;
平衡线卖:REF(REF(LOW,1),BARSLAST(p2)),LINETHICK0,COLORCYAN;
STICKLINE(CROSS(平衡线卖,LOW) AND HIGH<平衡线卖,(HIGH+LOW)/2,(HIGH+LOW)/2,12,0),LINETHICK1,COLORCYAN;
STICKLINE(CROSS(平衡线卖,LOW) AND HIGH>=平衡线卖,平衡线卖,平衡线卖,12,0),LINETHICK1,COLORCYAN;
{AO,AC方向}
VAR1:=(H+L)/2
AO:SMA(VAR1,5,1)-SMA(VAR1,34,1)
AC:SMA((AO-SMA(AO,5,1)),5,1)
DRAWTEXT(ISLASTBAR AND AO>REF(AO,1) AND AC>REF(AC,1),Y,'↑AO↑AC'),SHIFT1,COLORRED;
DRAWTEXT(ISLASTBAR AND AO<REF(AO,1) AND AC<REF(AC,1),Y,'↓AO↓AC'),SHIFT1,COLORGREEN;
DRAWTEXT(ISLASTBAR AND AO>REF(AO,1) AND AC<REF(AC,1),Y,'↑AO↓AC'),SHIFT1,COLORWHITE;
DRAWTEXT(ISLASTBAR AND AO<REF(AO,1) AND AC>REF(AC,1),Y,'↓AO↑AC'),SHIFT1,COLORWHITE; 展开
1个回答
展开全部
第一个指标的下鄂与指标的内容有关,不敢乱猜
=================================
{AO,AC方向}
VAR1:=(H+L)/2;
AO:SMA(VAR1,5,1)-SMA(VAR1,34,1);
AC:SMA((AO-SMA(AO,5,1)),5,1);
Y:=(AO+AC)/2;
DRAWTEXT(ISLASTBAR AND AO>REF(AO,1) AND AC>REF(AC,1),Y,'↑AO↑AC'),COLORRED,ALIGN0;
DRAWTEXT(ISLASTBAR AND AO<REF(AO,1) AND AC<REF(AC,1),Y,'↓AO↓AC'),COLORGREEN,ALIGN0;
DRAWTEXT(ISLASTBAR AND AO>REF(AO,1) AND AC<REF(AC,1),Y,'↑AO↓AC'),COLORWHITE,ALIGN0;
DRAWTEXT(ISLASTBAR AND AO<REF(AO,1) AND AC>REF(AC,1),Y,'↓AO↑AC'),COLORWHITE,ALIGN0;
-------------------------------------------------------------
你发出来的代码都不完整,我按我想像的加上了不是很重要的东西-----(就是如何显示指标的主要内容的部分-----不影响指标本身)
=================================
{AO,AC方向}
VAR1:=(H+L)/2;
AO:SMA(VAR1,5,1)-SMA(VAR1,34,1);
AC:SMA((AO-SMA(AO,5,1)),5,1);
Y:=(AO+AC)/2;
DRAWTEXT(ISLASTBAR AND AO>REF(AO,1) AND AC>REF(AC,1),Y,'↑AO↑AC'),COLORRED,ALIGN0;
DRAWTEXT(ISLASTBAR AND AO<REF(AO,1) AND AC<REF(AC,1),Y,'↓AO↓AC'),COLORGREEN,ALIGN0;
DRAWTEXT(ISLASTBAR AND AO>REF(AO,1) AND AC<REF(AC,1),Y,'↑AO↓AC'),COLORWHITE,ALIGN0;
DRAWTEXT(ISLASTBAR AND AO<REF(AO,1) AND AC>REF(AC,1),Y,'↓AO↑AC'),COLORWHITE,ALIGN0;
-------------------------------------------------------------
你发出来的代码都不完整,我按我想像的加上了不是很重要的东西-----(就是如何显示指标的主要内容的部分-----不影响指标本身)
追问
太谢谢你了,你能不能留个QQ啊,谢谢了!
追答
466231800---------长阳真人
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询