我们如何在金融烛台图表上绘制红点(代表交易)?
我正在使用以下 MATLAB 函数绘制金融烛台图:
http://www. mathworks.com/help/toolbox/finance/candlefts.html
如何在图表上绘制红点来代表该点的交易?
I am plotting a financial candlestick chart using this MATLAB function:
http://www.mathworks.com/help/toolbox/finance/candlefts.html
How do I plot a red dot on the chart, to represent a trade at that point?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于要添加的点,您需要其在 y 轴
yValue
上的位置以及将其放置在 x 轴xValue
上的日期(格式为作为单个序列日期号)。那么以下应该可以工作:如果您想要更大的红点,您可以将最后一行替换为以下任一内容:
For the point you want to add, you would need its position on the y-axis
yValue
and the date where it is to be placed on the x-axisxValue
(formatted as a single serial date number). Then the following should work:If you want a larger red dot, you can replace the last line with either of the following: