当前公式 : FYSJ (指标画线公式) 错误句 : 详细信息 : 引用指标FYSJ时出现自我调用的情况或者FYSJ未通过

2024-12-02 15:27:06
推荐回答(1个)
回答1:

N:=7.5;
MMA30:=EMA(CLOSE,30);
强弱界定:=IF(PERIOD=0,EMA(CLOSE,900),DRAWNULL),COLORWHITE,LINETHICK2;
分时价量线:=SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK1;
实时涨幅限制:=(C/DYNAINFO(3)-1)*100;
{买卖力度}
买入力度:='FYSJ.买入力度';
卖出力度:='FYSJ.卖出力度';
买卖力度:=SUM((买入力度-卖出力度),0),COLORAAAA00,NODRAW;
买卖力度比:=买卖力度/SUM((买入力度+卖出力度),0)*50,NODRAW,COLORFFFFFF,LINETHICK2;
买卖力度比设置:=买卖力度比+50;
买卖力度比限制:IF(买卖力度比设置>80,80,IF(买卖力度比设置<20,20,买卖力度比设置));
DRAWBAND(买卖力度比限制,RGB(208,188,58),50,RGB(8,58,18));
分时力度线:=SUM(C*买卖力度比限制,240)/SUM(买卖力度比限制,240),COLORYELLOW,LINETHICK2;
买卖力度参考线0:=MA(买卖力度比限制,8)*1.062,COLORRED;
买卖力度参考线:MA(买卖力度比限制,8)*1.091,COLORRED;
买卖力度参考线2:=MA(买卖力度比限制,5)*1.191,COLORCYAN;
平安分时关注:=买卖力度参考线<50 AND CROSS(买卖力度比限制,50);
平安分时追涨:=(CROSS(买卖力度比限制,买卖力度参考线) OR (CROSS(买卖力度比限制,买卖力度参考线0) AND 买卖力度比限制>70)) AND (买卖力度比限制>50) AND (MMA30>强弱界定 OR 分时价量线>强弱界定 OR C>MAX(MMA30,强弱界定)) AND C>分时价量线 AND V>MA(V,20) AND DYNAINFO(17)>=1.2 AND 实时涨幅限制STICKLINE(平安分时关注,50,60,1,0),COLOR0000FF;
STICKLINE(FILTER(平安分时追涨,20),50,65,1,0),COLORMAGENTA;
DRAWICON(CROSS(买卖力度比限制,买卖力度参考线) AND 买卖力度比限制>50 AND (V>MA(V,20) OR V=HHV(V,20)),66,1);
DRAWTEXT(FILTER(平安分时关注,20),62,'平安关注'),COLORRED;
DRAWTEXT(FILTER(平安分时追涨,20),67,'平安追涨'),COLORMAGENTA;
DRAWICON(FROMOPEN<=20 AND 买卖力度比限制>60 AND CROSS(买卖力度参考线,买卖力度比限制),70,9);
{计算收益、已爆分钟}
PA1:=BARSSINCE(平安分时追涨)+1;
首次追涨价:=REF(C,PA1-1),NODRAW;
追涨收益:(DYNAINFO(7)-首次追涨价)/首次追涨价*100,NODRAW;
PA2:=BARSSINCE(平安分时关注)+1;
首次关注价:=REF(C,PA2-1),NODRAW;
关注收益:(DYNAINFO(7)-首次关注价)/首次关注价*100,NODRAW;