Support Board
Date/Time: Sat, 28 Dec 2024 10:28:57 +0000
Post From: Get index of trade entry bar
[2016-02-26 02:15:04] |
rhovega - Posts: 279 |
I'm trying to set the stop of a new order at the low of the entry bar (for a long), via ACSIL. In other words, want this: NewOrder.StopAllPrice = sc.Low[index@bar_of_neworder_creation]. Thought to use sc.GetNearestMatchForSCDateTime to get the index of PositionData.LastEntryDateTime. Unfortunately, that provides the index for the LastEntryDateTime prior to creating the new order, and not the index for the EntryDateTime of the newly created order. Is there a way to get the index of the bar where a new order is created at the time it is created? I do not want to modify the order after creation. Thanks |