「翔博精选指标」仓位参考(通达信公式 副图 源码 测试图)
2022-02-15原创 编 辑:翔博软件
{仓位参考}
DRAWRECTREL(5,0,73,990,RGB(18,150,65));
参考值:="KD.K#DAY";
风险:=ROUND(参考值),NODRAW;
风险1:=IF(ROUND(参考值/10)*10<10,0,IF(ROUND(参考值/10)*10>90,100,ROUND(参考值/10)*10)),NODRAW;
仓位:100-风险1,COLORWHITE,NODRAW;
DRAWRECTREL(5,CONST(风险1*10),73,990,RGB(100,0,0));{==表格横线==;}
DRAWRECTREL(5,200,20,200,RGB(250,250,250));
DRAWRECTREL(5,400,20,400,RGB(250,250,250));
DRAWRECTREL(5,600,20,600,RGB(250,250,250));
DRAWRECTREL(5,800,20,800,RGB(250,250,250));AAA1:=STRCAT(STRCAT('',CON2STR(仓位,0)),'%');
DRAWTEXT_FIX(C>0,0.03,0.6,0,AAA1),COLORYELLOW;
DRAWRECTREL(5,0,73,990,RGB(18,150,65));
参考值:="KD.K#DAY";
风险:=ROUND(参考值),NODRAW;
风险1:=IF(ROUND(参考值/10)*10<10,0,IF(ROUND(参考值/10)*10>90,100,ROUND(参考值/10)*10)),NODRAW;
仓位:100-风险1,COLORWHITE,NODRAW;
DRAWRECTREL(5,CONST(风险1*10),73,990,RGB(100,0,0));{==表格横线==;}
DRAWRECTREL(5,200,20,200,RGB(250,250,250));
DRAWRECTREL(5,400,20,400,RGB(250,250,250));
DRAWRECTREL(5,600,20,600,RGB(250,250,250));
DRAWRECTREL(5,800,20,800,RGB(250,250,250));AAA1:=STRCAT(STRCAT('',CON2STR(仓位,0)),'%');
DRAWTEXT_FIX(C>0,0.03,0.6,0,AAA1),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.02,0.02,0,'仓位表'),COLORYELLOW;