Support Board
Date/Time: Sat, 13 Dec 2025 02:30:57 +0000
Post From: Managing mutliple attached orders using ACSIL
| [2021-12-03 17:30:13] |
| tomas262 - Posts: 157 |
|
The entry is triggered by an indicator at bar close. I continuously store the price when indicator is signalling entry into a variable lastUpTrendPrice or lastDownTrendPrice. Then double slippage = 0.00000f;
if (PositionData.PositionQuantity > 0) slippage = sc.RoundToTickSize(PositionData.AveragePrice - lastUpTrendPrice); else if (PositionData.PositionQuantity < 0) slippage = sc.RoundToTickSize(lastDownTrendPrice - PositionData.AveragePrice); |
