Support Board
Date/Time: Fri, 05 Sep 2025 07:55:48 +0000
Post From: Non-Attached OCO Orders With Multiple Profit Targets
[2025-09-03 09:09:49] |
User688525 - Posts: 306 |
Hi John, I looked through the files in the ACS_Source folder (sierrachart.h, TradingSystem.cpp, etc.) as well as read the Order Types documentation and neither resolve the issue. There are two scenarios: 1. Execute naked short trade, i.e., no brackets or OCOs. - Create OCO after trade has been filled. - OCO is required to exit the position by buying above the entry price (stop loss) or below the entry price (profit target). Whichever is filled first cancels the other (OCO). - The Stop Loss should be a BUY STOP that becomes a market order once tagged. - The Take Profit should be a BUY LIMIT that remains a limit order until filled. 2. Execute naked long trade, i.e., no brackets or OCOs. - Create OCO after trade has been filled. - OCO is required to exit the position by selling below the entry price (stop loss) or above the entry price (profit target). Whichever is filled first cancels the other (OCO). - The Stop Loss should be a SELL STOP that becomes a market order once tagged. - The Take Profit should be a SELL LIMIT that remains a limit order until filled. I'm trying to understand which ACSIL order type to use as SCT_ORDERTYPE_OCO_BUY_STOP_SELL_STOP, SCT_ORDERTYPE_OCO_BUY_STOP_LIMIT_SELL_STOP_LIMIT and SCT_ORDERTYPE_OCO_BUY_LIMIT_SELL_LIMIT don’t appear to support this. Thank you |