1.3.4.5版本
在Onint域里,不对保证金率做任何设置,而是需要直接获取“策略单元设置”里的保证金率设置值,
以前可以直接MarginRatio获取这个数值,
但现在这个版本MarginRatio貌似已经没有了。
请问,如何在Onint域里不对保证金率做任何设置的情况下,直接获取“策略单元设置”里的保证金率设置值?
楼上的哥们,这说了等于没说。
不过我算是搞明白了。但不是你说的这么简单两行代码就能解决。
MarginRate rate;
GetMarginRate(rate);
Numeric lv=max(rate.longMarginRatio,rate.shortMarginRatio);
现在配置是金额费率,如果不修改配置,这个是可以使用的
MarginRate rate;
GetMarginRate(rate);
print(Text(rate.longMarginRatio));
print(Text(rate.shortMarginRatio));