I know in the UI of tradovate, we have options of having an “Auto-breakeven” stop. I have a vague suspicion I could submit a trailing stop after my code watches the trade for whatever initial profit I want (or update the existing order?) but was wondering if there is a way to “finesse” it on Tradovate server-side.
As it stands there is no ‘native’ way to do this. You can watch for events via websocket, and send orders based on what happens in real-time. But keep in mind: disconnects can affect the outcome of a strategy that relies on watching events to escape a bad position, rather than a bracket strategy/OCO/OSO which is guaranteed to work within its good-until period, stable connection or not. Relying on this type of mechanism to take excess profit in select scenarios sounds less risky, however.
With that in mind and the disclaimer above, watch for the execution of your profit-target order from the WebSocket. You’re looking for an event object like this:
Once filled, you can submit a trailing stop via API as an attempt to continue to ride the momentum of a market move. I’d suggest the trailing stop because it will automatically tap out, so once submitted you won’t have to watch the websocket events anymore.
I would not suggest using this strategy to close via market order, or to close positions using /order/liquidatePosition. Additionally, relying on a similar strategy to call order/cancelOrder is also not advised (a disconnected websocket can’t cancel an order, for example).
Alexander, you are the leader here. Please tell me straight up, is auto trading really working on Tradovate, or delays, issues are such that it is kind of working but not really??? I have a strategy on Tradingview that works, I want to code it on Tradovate. Is it worth my time and money? If yes, can you recommend someone who can rewrite my strategy and make it work on Tradovate? I need to know before I go elsewhere. Thank you
Hi Ron, this is a bit off-topic here, but that’s OK.
The recent changes to CME Market Data Requirements have made it slightly more difficult expense-wise to use our API for automated trading. However, if you’re willing to pay the CME’s MD distributors’ rates, then there should be no problems with the API once it has been enabled for your user. The API is and has been fully functional for retail users since ~2020. Bear in mind we use our own API as the backbone of the Tradovate Trader application.
Alexander, can you direct me or recommend a developer who can make it happen for me. I have the code in Pine Script on Tradingview. I made a mistake, thinking since I run my Tradovate trades on Tradingview, I assumed that I will not have problems executing the orders on Traingview, sadly it’s not happening. I need someone to make it happen for me, rewrite the code in whatever language is used on Tradovate, connect it and make it work - turn key! I am not a coder/developer, I am a trader and I have a strategy that works for me. Please help, or I am leaving Tradovate.
Hi RonM I am a developer and I would be happy to see if I can be of assistance in using the API for automation. Could you provide a little more information about the specific tasks you are looking to automate? This will help me determine how I may be able to assist you. Thank you.
You may email me at email@example.com