Mida
Mida copied to clipboard
Changing the label field

It would be nice if we can change labels when placing new orders. The use case: We can add, for example, the indicators or the reasons why we opened this order. Later, we can use this label to close/cancel the orders.
Thanks
Hello! With Mida 2022.1 and Mida cTrader 5 you can now specify the label property and value in the order directives, let me know if it works!
Specify the label property works very well. Thanks @Vasile-Peste for the quick update.

Could you please add the API to read label property of the open positions as well? 🥰
Thank you
Specify the
labelproperty works very well. Thanks @Vasile-Peste for the quick update.
Could you please add the API to read
labelproperty of the open positions as well? 🥰 Thank you
We have just released Mida cTrader 5.3 and you can read the label from orders now. This is not exposed on positions since positions are affected by multiple orders therefore it makes more sense to get the orders of a position and then reading their respective labels.
Thank you!
Hi @Vasile-Peste, In the screenshot, I have 2 positions opened by 2 different orders (these orders are made manually, not by code). These positions have their own label. So It makes sense to be able to get the label from position, right?
My use case is: when MACD is crossing up, then I open a position with the label "MACD cross up" to that position. Later, when MACD is crossing down, I will close all the positions with label "MACD cross up". Is that technically possible? Thanks

It's working well. Thank you very much