MC Stop and pop a message about "name of the order has already been used for the other order."  [SOLVED]

Questions about MultiCharts and user contributed studies.
tonyng
Posts: 51
Joined: 04 Oct 2013
Has thanked: 2 times
Been thanked: 5 times

MC Stop and pop a message about "name of the order has already been used for the other order."

Postby tonyng » 22 May 2017

MultiCharts64 10 build 14322.

This morning, an error just pop up and stop the strategy saying:
"S1_Rot_s"name of the order has already been used for the other order.

We suspect this is a bug with build 14322. We have been using the this algo for few months and all the previous version before 14322 never complained this error. Also, we are very sure that the order name "S1_Ro1_s" is unique in the code. BTW, there are 5 other charts are using this same strategy too with different values with input parameters.

And the funny thing is we can't repeat this error again after we turn back on the strategy.
Attachments
2017-05-22_0754.png
(300.34 KiB) Downloaded 750 times

tonyng
Posts: 51
Joined: 04 Oct 2013
Has thanked: 2 times
Been thanked: 5 times

Re: MC Stop and pop a message about "name of the order has already been used for the other order."

Postby tonyng » 22 May 2017

How is the OrderName handled by MC10 . Does each chart has it's own set of OrderNames or its by each Strategy. Right now we are using 1 strategy with 6 charts and seems like charts are fighting to use for the same OrderName.

User avatar
Angelina MultiСharts
Posts: 260
Joined: 28 Dec 2016
Has thanked: 28 times
Been thanked: 66 times

Re: MC Stop and pop a message about "name of the order has already been used for the other order."

Postby Angelina MultiСharts » 22 May 2017

Hello tonyng,

OrderName has to be unique within one signal on a chart, different charts cannot cause this error.
It can only happen if your script generates same name for different orders.

If it is not the case and you know how this issue can be reproduced, please send us the files and we will investigate it further.

tonyng
Posts: 51
Joined: 04 Oct 2013
Has thanked: 2 times
Been thanked: 5 times

Re: MC Stop and pop a message about "name of the order has already been used for the other order."  [SOLVED]

Postby tonyng » 22 May 2017

Yes, u r right

RecalcLastBarAfter(5);

was the problem. so I just grey out this line

User avatar
Smoky
Posts: 507
Joined: 03 Dec 2010
Location: Thailand
Has thanked: 97 times
Been thanked: 115 times

Re: MC Stop and pop a message about "name of the order has already been used for the other order."

Postby Smoky » 22 May 2017

same Tonyng

if you works in ticks by ticks IOG you have to know with a flag if order has been already sent to MC ...


Return to “MultiCharts”