副图y轴独立坐标,或者叠加效果

副图画opi 和vol,坐标显示有些问题。请问老师,如何能显示成图2的样子。下面是设置,另外margin-top和margin-bottom好像不起作用,不知什么原因。 OnInit() { plot_opi.figure(0); //plot_opi.setOption(\"margin-top\",\"-50%\"); //plot_opi.setOption(\"margin-bottom\",\"-80%\"); plot_opi.setOption(\"user_plot\",\"x-format\",\"time\"); plot_vol.subplot(plot_opi); plot_vol.subplot(plot_opi); }

Vars Plot plt1; Plot plt2;Events OnInit() { plt1.figure(0);//独立画板 plt2.subplot(plt1);//独立画板 plt1.setOption(\"x-format\",\"time\");//时间格式 plt1.setOption(\"y-format\",\"numeric\");//数值格式 } OnBar(ArrayRef<Integer> indexs) { plt1.line(\"MA1\",AverageFC(Close,5)); plt2.barv(\"Vol\",Vol); }试试这个代码

回复:谢谢

看不懂你这个要画的什么东西