Support Board
Date/Time: Thu, 17 Jul 2025 10:22:47 +0000
[Programming Help] - Triggered Step Trailing Stop issue
View Count: 22
[2025-07-15 15:44:51] |
User35213 - Posts: 5 |
I am having 2 issues. Once the Triggered Trailing Stop moves the correct distance, the order somehow is getting changed from the correct Triggered Step Trailing Stop order to a Triggered Step Trailing Stop Limit order.. Why is it changing to a step trailing stop limit order? also it quits the step trailing and does not move any further once next step/trigger is reached below is the code I am using.. else if (StopLossType == 2) // Triggered Step Trailing Stop { NewOrder.Stop1Offset = StopOffset; NewOrder.AttachedOrderStop1Type = SCT_ORDERTYPE_TRIGGERED_STEP_TRAILING_STOP; // Convert ticks to actual price values (documentation specifies price values, not ticks) float TriggerOffset = Input_StopLossStepTicks.GetInt() * sc.TickSize; float TrailOffset = StopOffset; // Use stop offset as trail offset NewOrder.AttachedOrderStop1_TriggeredTrailStopTriggerPriceOffset = TriggerOffset; NewOrder.AttachedOrderStop1_TriggeredTrailStopTrailPriceOffset = TrailOffset; SCString StepDebug; StepDebug.Format("LONG Triggered Step Trailing Stop: TriggerOffset=%.2f, TrailOffset=%.2f", TriggerOffset, TrailOffset); sc.AddMessageToLog(StepDebug, 0); sc.AddMessageToLog("Attached TRIGGERED STEP TRAILING STOP order", 0); } |
To post a message in this thread, you need to log in with your Sierra Chart account: