Change order label
Change order label
08 Nov 2018, 05:12
Dear Panagiotis, hi!
let us say I have an order with empty string label. How can I change it.
Mayby on Posittion Open events?
Regards, Sasha
Replies
alexander.n.fedorov
11 Nov 2018, 09:23
Hi, Panagiotis!
What I am actually doing is starting the cBot, which gives me a grafical setup, then (OnStart) I use a Timer.
While the timer is woking (60) seconds, I put the stop and limit orders (normally 2 - long and short) at whateever volume it is
Then , after the orders are place the bot looks at the risk, that I am willing to take, replaces the orders with a proper size, and, what is important , with proper lables
After that it kills the old orders, so by the end of timer I have 2 orders - long and short with a label
When one of the orders gets activated, the other one gets killed. The order looses StopLoss and TakeProfit, so , instead of a broker, my computer controls it
So, this is a long way to change position label
Regards,
Alexander
P..S. the Mouse event is good,but
1. it only works in 3.3. cTrader
2. It would be nice if were possible to control event, let us say with an Alt key
@alexander.n.fedorov
PanagiotisCharalampous
09 Nov 2018, 10:19
Hi Sasha,
It is not possible to change a position's label at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous