Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 08:16:04 +0000



exit trade at close of bar

View Count: 863

[2014-10-03 22:03:23]
jivetrader - Posts: 379
is there a way to configure an open trade to auto-close at the end of the current (or next) bar (via DOM strategy or on the fly) ?
[2014-10-04 04:09:49]
vegasfoster - Posts: 444
Can create custom trading system that simply flattens and cancels any open positions and orders at the end of each bar. Not sure off hand about the next bar though, have to think about it.
[2014-10-07 06:55:45]
jivetrader - Posts: 379
i would like to manually enter the trade and then have it auto-close at the end of the current bar on the current chart according to its current periodicity. this could be volume-based or range based, for example. any advice is appreciated. thanks
[2014-10-08 18:30:15]
vegasfoster - Posts: 444
This will simply flatten and/or cancel any open orders on bar close as desired. You need to test this thoroughly before going live and note that I have never actually used an automated trading system to send live orders, so you will need to thoroughly validate that this works correctly.
attachmentFlattenAndCancel.dll - Attached On 2014-10-08 18:29:07 UTC - Size: 13.5 KB - 347 views
attachmentFlattenAndCancel.cpp - Attached On 2014-10-08 18:29:18 UTC - Size: 1.13 KB - 378 views

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

Login

Login Page - Create Account