Support Board
Date/Time: Tue, 16 Jun 2026 20:01:34 +0000
Post From: Creating ASCIL custom study that reverses my position when I get stopped out
| [2026-06-16 16:32:46] |
| NorthernTrader_21 - Posts: 8 |
|
Hello! I'm working on a automated trading management study that continuously reverses my position whenever I get stopped out instead of closing my position, I've been working on this for two weeks while learning ACSIL and I'm not sure what the most effective approach is. Currently I'm trying to manage all of this using ACSIL entirely without relying on the attached orders functionality of the Trade Window. If I'm long 10 contracts and my SELL STOP order gets triggered (set at 20 contracts) I will now be in a 10 contract short position, is it possible to create a new BUY STOP order (also set at 20 contracts) that is attached to my previous SELL STOP order? (so that I can use s_SCNewOrder::MoveToBreakEven.Type function for example) if there's a better way achieve this with ACSIL do let me know. Hope my question makes sense. |
