Support Board
Date/Time: Tue, 01 Jul 2025 02:53:59 +0000
Post From: How to set Price1 few ticks higher
[2021-03-22 05:06:08] |
User641030 - Posts: 13 |
I'm new to Sierra chart ascil programming. So apologies if this is already covered in your documentation. I've reproduced a portion of the code that I'm having trouble with. BuyOrder.OrderQuantity = 1; BuyOrder.OrderType = SCT_ORDERTYPE_LIMIT; BuyOrder.Price1 = sc.High[sc.Index] + 2 * sc.TickSize; BuyOrder.TimeInForce = SCT_TIF_GOOD_TILL_CANCELED; The BuyEntry price always defaults to sc.High of the current bar. I tried to hardcode a price but it ignores and takes sc.High[sc.Index] instead. I'm running in sim mode. I've also set Target and Stop for the same order. Appreciate any help!. |