Support Board
Date/Time: Sat, 23 Nov 2024 19:20:24 +0000
Order-Reverse in an Automated Trading System
View Count: 187
[2024-08-02 12:30:09] |
User931541 - Posts: 17 |
I have developed an automated trading system using C++ / Studies. Among other functions, it stops an active order based on specific parameters and initiates a new order in the opposite direction. I would like to implement this more 'elegantly' by using the Reverse option available in the trading window and integrating it into my code. Unfortunately, my efforts in this direction have been unsuccessful, and I haven't been able to find any information on whether this is possible. Could I please get some information on that? Thanks! |
[2024-08-04 01:43:57] |
ForgivingComputers.com - Posts: 960 |
If you set sc.SupportReversals = true;
Then if you are long and a sell signal occurs, a Sell Entry will first flatten the long and cancel its OCO bracket orders, then enter short. Nothing to do with the Trade Window unless you want to do it manually. Date Time Of Last Edit: 2024-08-04 01:44:48
|
[2024-08-04 09:59:53] |
User931541 - Posts: 17 |
Good morning, thank you for your response. And 'sc.SupportReversals' I obviously didn't see or overlooked or... sorry. In Germany, there's a saying: "You can't see the forest for the trees." ;-) Thanks again, and have a nice Sunday. Tom |
To post a message in this thread, you need to log in with your Sierra Chart account: