最新
热门
I'm developing a quantitative trading strategy using the moomoo client's quantitative strategy platform. I've encountered an issue when trying to save and load the strategy state. The log shows an error: 'ERROR: Unexpected error while saving strategy state: Open file for writing is forbidden: strategy_state.json'.
Is file read/write operations not allowed in moomoo's quantitative strategy en...
Is file read/write operations not allowed in moomoo's quantitative strategy en...
1
hi there! i love moomoo algo. it is a lot of fun to backtest strategies.
i am working on a futures trading algorithm and i am having some trouble placing a limit order on the contracts.
here's what's happening:
given
Backtesting Account - Futures account selected
when
i run a backtest with
place_limit(symbol=Contract('US.NVDA241115C130000'), ...)
then
i receive
"The account cannot trade this contract"
if i use the securities account i receive
"Unavailable to trade"
normal symbol ...
i am working on a futures trading algorithm and i am having some trouble placing a limit order on the contracts.
here's what's happening:
given
Backtesting Account - Futures account selected
when
i run a backtest with
place_limit(symbol=Contract('US.NVDA241115C130000'), ...)
then
i receive
"The account cannot trade this contract"
if i use the securities account i receive
"Unavailable to trade"
normal symbol ...
3
我注册了 moomoo,以为我可以使用它的 API 来进行算法交易,但现在我发现他们不再支持他们的 API 了。难道只有我有这个问题吗?你们是如何进行算法交易的
已翻译
2
我明白我们可以在一个策略中添加多个触发符号。触发该事件时,该事件将记录在运行日志中。我没有找到一种方法来打印这个事件触发的是哪个符号(在我的情况下是哪个股票)。有人有任何想法吗?谢谢。
我试图为一个符号定义一个全局变量,在触发条件后我可以在代码中分配给触发的符号,但它没有这个选项
我试图为一个符号定义一个全局变量,在触发条件后我可以在代码中分配给触发的符号,但它没有这个选项
已翻译
![如何打印触发事件的触发符号](https://sgsnsimg.moomoo.com/sns_client_feed/102184816/20240405/e7ce834291739f49f01b42c4e67e8214.jpg/thumb?area=101&is_public=true)
2
5
我已经测试了提交买入订单的代码,并对代码进行了回溯测试。它适用于进入新的买入头寸。但是,当我尝试使用清算这些买入头寸时,它在回测中不起作用。不可能回测平仓头寸吗?我使用清算还是使用卖出订单来平仓这些头寸?
已翻译
1
1