Support Board
Date/Time: Sat, 11 Jan 2025 20:41:35 +0000
Post From: Unable to set "Step amount" through ACSIL for Triggered step trail stop method
[2016-12-24 16:55:54] |
FerroTrader - Posts: 70 |
Hello, I am trying to use Step amount through ACSIL - but doesn't seem to work properly. I don't see the parameter not getting reflected in TradeWindow parameters (as in the image here attached). Here attached, the code used to find this bug (there are lots of comments within the code). s_SCNewOrder NewOrder; NewOrder.Reset(); NewOrder.OrderQuantity = 1; NewOrder.Price1 = sc.Close[sc.Index]; NewOrder.OrderType = SCT_ORDERTYPE_MARKET; NewOrder.AttachedOrderStopAllType = SCT_ORDERTYPE_TRIGGERED_STEP_TRAILING_STOP; NewOrder.Target1Offset = 15 * sc.TickSize; NewOrder.Stop1Offset = 10 * sc.TickSize; NewOrder.StopAllOffset = 10 * sc.TickSize; //Trail Offset - Set Correctly in TradeWindow Parameters NewOrder.TriggeredTrailStopTrailPriceOffset = 5 * sc.TickSize; //Trigger Offset - Set Correctly in TradeWindow Parameters NewOrder.TriggeredTrailStopTriggerPriceOffset = 3 * sc.TickSize; //Step Amount - This DOESN't get Set Correctly in TradeWindow parameter NewOrder.TrailStopStepPriceAmount = 1 * sc.TickSize; Thank you and Merry Xmas Andrew Date Time Of Last Edit: 2016-12-24 17:07:24
|
SC_TradeWindow_Parameters.jpg / V - Attached On 2016-12-24 16:55:41 UTC - Size: 101.16 KB - 314 views ASCIL_Code_Trailing_Stop.txt - Attached On 2016-12-24 17:04:30 UTC - Size: 744 B - 396 views |