Login Page - Create Account

Support Board


Date/Time: Tue, 16 Jun 2026 18:27:16 +0000



Creating ASCIL custom study that reverses my position when I get stopped out

View Count: 30

[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.
[2026-06-16 17:32:41]
Marmany - Posts: 318
Hi Northern,
For info your strategy is high risk and needs to take into acount the market phase ie trend / consolidation.
Also sim perfromance likely to differ from live where you need to clear one trade at the broker before opening another. Otherwise broker may reject order due to insufficient margin.
[2026-06-16 17:51:15]
NorthernTrader_21 - Posts: 8
Hello Marmany,
Thanks for the response, I do realize the risk with this strategy but I haven't fully tweaked it yet, right now I'm just trying to make this work on ACSIL.

What do you mean by the need to clear one trade at the broker before opening another? If I'm long 10 contracts and send a sell order of 20 contracts then that should put me in a 10 contract short position with a single trade.
Date Time Of Last Edit: 2026-06-16 17:51:39
[2026-06-16 18:03:14]
Marmany - Posts: 318
There may be a brief period when you require sufficient margin for 30 contracts. It may be only a few milliseconds. This possibility can be avoided by clearing the first position before opening the second.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account