通达信个股融资融券副图指标源码
{
财报公告日期:FINVALUE(314)+20000000,COLORGREEN,NODRAW;
下期预约时间:GPONEDAT(28)+20000000,COLORWHITE,NODRAW;
净资产:FINVALUE(4),DOTLINE,COLORGREEN,NODRAW;
股息率(%):FINANCE(45),COLORWHITE,NODRAW;
一致预期目标价:GPONEDAT(3),COLORGREEN,NODRAW;
股东人数:FINVALUE(242),COLORWHITE;
交易股东人数:GPJYVALUE(1,1,1),COLORRED;
}
DRAWTEXT_FIX(ISLASTBAR,0,0.03,0,STKNAME);
零轴:0,DOTLINE;
融资余额(万):GPJYVALUE(3,1,1),COLORMAGENTA;
融券余量(万):GPJYVALUE(3,2,1)*C/10000,COLORGREEN;
融券余量(股):GPJYVALUE(3,2,1),COLORLIGRAY,NODRAW;
融资净买(万):GPJYVALUE(13,1,1),DOTLINE,COLORMAGENTA;
融券净卖(万):GPJYVALUE(13,2,1)*C/10000,DOTLINE,COLORGREEN;
融券净卖(股):GPJYVALUE(13,2,1),DOTLINE,COLORLIGRAY,NODRAW;
{==========================================《左侧》=============================================}
DRAWTEXT_FIX(C>0,0.16,0.08,0,STRCAT(' 融资融券-融资余额(万元):',CON2STR(GPJYONE(3,1,0,0),2))),COLORLIGRAY;
DRAWTEXT_FIX(C>0,0.16,0.16,0,STRCAT(' 融资融券-融券余量(股):',CON2STR(GPJYONE(3,2,0,0),2))),COLORLIGRAY;
{==========================================《中间》=============================================}
DRAWTEXT_FIX(C>0,0.49,0.08,0,STRCAT(' 融资买入额(万元):',CON2STR(GPJYONE(11,1,0,0),2))),COLORLIGRAY;
DRAWTEXT_FIX(C>0,0.49,0.16,0,STRCAT(' 融资偿还额(万元):',CON2STR(GPJYONE(11,2,0,0),2))),COLORLIGRAY;
DRAWTEXT_FIX(C>0,0.49,0.24,0,STRCAT(' 融资净买入(万元):',CON2STR(GPJYONE(13,1,0,0),2))),COLORLIGRAY;
DRAWTEXT_FIX(C>0,0.49,0.40,0,STRCAT(' 融券卖出量(股):',CON2STR(GPJYONE(12,1,0,0),2))),COLORLIGRAY;
DRAWTEXT_FIX(C>0,0.49,0.48,0,STRCAT(' 融券偿还量(股):',CON2STR(GPJYONE(12,2,0,0),2))),COLORLIGRAY;
DRAWTEXT_FIX(C>0,0.49,0.56,0,STRCAT(' 融券净卖出(股):',CON2STR(GPJYONE(13,2,0,0),2))),COLORLIGRAY;
未来函数检测结果如下:
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出{财报公告日期:FINVALUE(314)+20000000,画绿色,NODRAW
输出下期预约时间:GPONEDAT(28)+20000000,画白色,NODRAW
输出净资产:FINVALUE(4),DOTLINE,画绿色,NODRAW
输出股息率(%):FINANCE(45),画白色,NODRAW
输出一致预期目标价:GPONEDAT(3),画绿色,NODRAW
输出股东人数:FINVALUE(242),画白色
交易输出股东人数:GPJYVALUE(1,1,1),画红色
当满足条件ISLASTBAR时,在横轴0纵轴0.03位置书写文字
输出零轴:0,DOTLINE
输出融资余额(万):GPJYVALUE(3,1,1),画洋红色
输出融券余量(万):GPJYVALUE(3,2,1)*C/10000,画绿色
输出融券余量(股):GPJYVALUE(3,2,1),COLORLIGRAY,NODRAW
输出融资净买(万):GPJYVALUE(13,1,1),DOTLINE,画洋红色
输出融券净卖(万):GPJYVALUE(13,2,1)*C/10000,DOTLINE,画绿色
输出融券净卖(股):GPJYVALUE(13,2,1),DOTLINE,COLORLIGRAY,NODRAW
{==========================================《左侧》=============================================}DRAWTEXT_FIX(C>0,0.16,0.08,0,STRCAT(' 融资融券-融资余额(万元):',CON2STR(GPJYONE(3,1,0,0),2))),COLORLIGRAY
DRAWTEXT_FIX(C>0,0.16,0.16,0,STRCAT(' 融资融券-融券余量(股):',CON2STR(GPJYONE(3,2,0,0),2))),COLORLIGRAY
{==========================================《中间》=============================================}DRAWTEXT_FIX(C>0,0.49,0.08,0,STRCAT(' 融资买入额(万元):',CON2STR(GPJYONE(11,1,0,0),2))),COLORLIGRAY
DRAWTEXT_FIX(C>0,0.49,0.16,0,STRCAT(' 融资偿还额(万元):',CON2STR(GPJYONE(11,2,0,0),2))),COLORLIGRAY
DRAWTEXT_FIX(C>0,0.49,0.24,0,STRCAT(' 融资净买入(万元):',CON2STR(GPJYONE(13,1,0,0),2))),COLORLIGRAY
DRAWTEXT_FIX(C>0,0.49,0.40,0,STRCAT(' 融券卖出量(股):',CON2STR(GPJYONE(12,1,0,0),2))),COLORLIGRAY
DRAWTEXT_FIX(C>0,0.49,0.48,0,STRCAT(' 融券偿还量(股):',CON2STR(GPJYONE(12,2,0,0),2))),COLORLIGRAY
DRAWTEXT_FIX(C>0,0.49,0.56,0,STRCAT(' 融券净卖出(股):',CON2STR(GPJYONE(13,2,0,0),2))),COLORLIGRAY