I am developing a drawing tool which allows me to draw on the chart a structure which allows me to asses where to enter , which stop loss and which take profit to put.
I managed to implement a clickable area on my tool which will insert the entry order, which works (at least in sim01), but I have the usual problem of not being able to put a stop loss and a take profit automatically. What I have to do is select programmatically a predefined ATM strategy with say 10 points stop loss and take profit, and use that - I then have to monitor the chart and when my entry gets filled I have to quickly move manually the SL and TP to the right places, which is terrible as many times I will not make it in time during volatile moves.
I would like to be able to programmatically create an atm entry with my precise take profit and stop losses. Or I would like to be able to be notified when the entry gets filled and the programmatically create 2 orders linked by an OCO identifier , one for stop loss and one for take profit, but it seems to be impossible from a drawing tool.
Is there any way I can automate my stop loss and take profit for the inserted entry? I need speed for NQ market!

Comment