找回密码
 立即注册

QQ登录

只需一步,快速开始

广告载入中...
查看: 203|回复: 1

指标编写问答125学习的宝藏

[复制链接]
发表于 2022-1-12 11:38 | 显示全部楼层 |阅读模式

马上注册,享用更多功能,让你轻松玩转本论坛。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
606.问:
      分析家通过却无法正常显示

      n=5,n1=7;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
PARTLINE(RSI1,RSI1),COLORff3399,LINETHICK2;
STICKLINE(RSI1,20,20,3,0),COLORYELLOW;
STICKLINE(RSI1,50,50,3,0),COLORWHITE;
STICKLINE(RSI1,80,80,3,0),COLORYELLOW;
STICKLINE(RSI1<20,0,RSI1,3,0),COLORCYAN;
STICKLINE(RSI1>80,100,RSI1,3,0),COLORRED;
STICKLINE(RSI1<20,0,5,10,0),COLORCYAN;
STICKLINE(RSI1>80,100,95,10,0),COLORRED;
STICKLINE(REF(RSI1,1)<20 AND RSI1>REF(RSI1,1),0,50,3,0),COLORRED;
STICKLINE(REF(RSI1,1)>80 AND RSI1<REF(RSI1,1),0,65,3,0),COLORGREEN;
STICKLINE(REF(RSI1,1)<20 AND RSI1>REF(RSI1,1),0,5,10,0),COLORRED;
STICKLINE(REF(RSI1,1)>80 AND RSI1<REF(RSI1,1),0,5,10,0),COLORGREEN;
DRAWICON(REF(RSI1,1)<20 AND RSI1>REF(RSI1,1),50,0);
DRAWICON(REF(RSI1,1)>80 AND RSI1<REF(RSI1,1),65,2);
STICKLINE(RSI1,100,100,10,0),COLORWHITE;
STICKLINE(RSI1,112,112,10,0),COLORWHITE;
FILLRGN(RSI1>=50,103,108),COLORRED;
FILLRGN(RSI1<=50,103,108),COLORCYAN;
STICKLINE(RSI1,0,0,10,0),COLORWHITE;
STICKLINE(RSI1,-12,-12,10,0),COLORWHITE;
STICKLINE(RSI1>=REF(RSI1,1),-3,-8,6,0),COLORRED;
STICKLINE(RSI1<=REF(RSI1,1),-3,-8,6,0),COLORCYAN;
TY:=RSI1;
AA:=REF(TY,N)=HHV(TY,2*N+1);
BB:=BACKSET(AA,N+1);
CC:=FILTER(BB,N) AND TY=HHV(TY,N+1);
DRAWICON(CC,TY*1.07,10);
p1:=BARSLAST(REF(CC,1));
q1:=REF(CLOSE,p1+1)<CLOSE and REF(RSI1,p1+1)>RSI1 and CC;
STICKLINE(FILTER(q1>0,5),100,RSI1,3,0),COLORMAGENTA;
STICKLINE(FILTER(q1>0,5),100,95,10,0),COLORMAGENTA;
DRAWLINE(CC,RSI1,FILTER(q1>0,5),RSI1,0),COLORMAGENTA;
AA2:=REF(TY,N)=LLV(TY,2*N+1);
BB2:=BACKSET(AA2,N+1);
CC2:=FILTER(BB2,N) AND TY=LLV(TY,N+1);
DRAWICON(CC2,TY*0.95,11);
p2:=BARSLAST(REF(CC2,1));
q2:=REF(CLOSE,p2+1)>CLOSE and REF(RSI1,p2+1)<RSI1 AND CC2;
STICKLINE(FILTER(q2>0,5),0,RSI1,3,0),COLORGREEN;
STICKLINE(FILTER(q2>0,5),0,5,10,0),COLORGREEN;
DRAWLINE(CC2,RSI1,FILTER(q2>0,5),RSI1,0),COLORGREEN;
    答(流光之星):
FILLRGN(RSI1>=50,103,108),COLORRED;
FILLRGN(RSI1<=50,103,108),COLORCYAN;
        改为
FILLRGN(103,108,RSI1>=50),COLORRED;
FILLRGN(103,108,RSI1<=50),COLORCYAN;
        试试。

发表于 2022-1-12 12:08 | 显示全部楼层
谢谢楼主分享
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|股海明灯官网 ( 京ICP备18020431号 )

GMT+8, 2024-11-23 03:06 , Processed in 0.088633 second(s), Total 12, Slave 10 queries , Gzip On, MemCached On.

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表