论坛里不能发代码吗?

 

我昨天发了一个问题,是关于平部分仓位的,早上帖子还在,好心人帮我出了思路,我根据提供的思路测试成功了,我想把成功的代码发到帖子里,我一点发送,就提示我帖子不存在了?我找不到我发的帖子了?

是论坛里不能发代码,导致帖子被删了?

 

论坛

...

Ziheng Zhuang, 2019.05.22 14:27

很显然你的单子多次连续平掉了。

要先判断达到目标执行部分平仓时,且要保证剩下的单子不会立即跟着平仓,因此:

在执行第一次平仓时,要在单子的注释中写入识别字符串ABC,

 _tradeRequest.comment="ABC",这样剩下的单子的注释有了识别字符串ABC。

所以,思路是这样的:

执行第一次平仓前,判断单子的注释是否含有ABC,没有则说明没有执行过部分平仓,

然后就可以执行平仓一半,且平仓时把单子的注释改成ABC,那么剩下的单子注释就是ABC.


 
33917075:

I sent a question yesterday, about the flat position, the morning post is still, the good people helped me out of the idea, I tested successfully according to the ideas provided, I want to send the successful code to the post, I send it a little , I am prompted that my post does not exist? Can't I find my post?

Is the forum unable to send code, resulting in the post deleted?

One person only helped you (look at the post above).

Your two threads were auto-deleted by anti-spam robot.
Why?
Because you uploaded your codes in wrong way.
There is the correct way to upload the codes - 

论坛

When you post code please use the CODE button (Alt-S)!

Use the CODE button


 
当然可以啊
原因: