Support Board
Date/Time: Mon, 25 Nov 2024 16:29:27 +0000
Post From: Multiple limit orders to open
[2024-02-18 05:18:07] |
User43 - Posts: 101 |
your check if (sc.Symbol != PositionSymbol)
{ // Close all orders for the other symbols sc.CancelAllOrders; } will only be triggered when a new symbol was selected for the current chart. sc.CancelAllOrders will try to cancel the orders on the new symbol but not the prior one. see Automated Trading From an Advanced Custom Study: sc.CancelAllOrders As suggested before for the scenario you described in your first post, the way I'd approach this is having for ES a study which shows the number open position size. NQ and RTY will have a study which reads the Position size from the ES Chart and when that goes to 0 the study will execute sc.CancelAllOrders closing all orders on NQ and RTY. |