Mida icon indicating copy to clipboard operation
Mida copied to clipboard

Changing the label field

Open ezcafe opened this issue 3 years ago • 5 comments

Screen Shot 2022-06-16 at 6 42 43 AM

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

ezcafe avatar Jun 16 '22 13:06 ezcafe

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!

Vasile-Peste avatar Jul 23 '22 21:07 Vasile-Peste

Specify the label property works very well. Thanks @Vasile-Peste for the quick update.

Screen Shot 2022-07-25 at 7 53 32 PM

Could you please add the API to read label property of the open positions as well? 🥰 Thank you

ezcafe avatar Jul 25 '22 13:07 ezcafe

Specify the label property works very well. Thanks @Vasile-Peste for the quick update.

Screen Shot 2022-07-25 at 7 53 32 PM

Could you please add the API to read label property 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!

Vasile-Peste avatar Sep 29 '22 13:09 Vasile-Peste

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

ezcafe avatar Sep 30 '22 12:09 ezcafe

Screen Shot 2022-09-30 at 7 36 10 PM

ezcafe avatar Sep 30 '22 12:09 ezcafe

It's working well. Thank you very much

ezcafe avatar Oct 07 '22 12:10 ezcafe