I'd like to place an entry order at a specific price given a set of conditions. But I am having trouble doing so. Example:
IF (Conditions on bar close)
{
EnterLongLimit(Convert.ToInt32(DefaultQuantity), (Close[0] - 3), "");
}
The above is meant to place a long entry order 12 ticks (3 points) below the close price at the time of the conditions. However, what happens when I test this is that the limit moves to be 12 ticks below the current price as it moves, so the limit never gets touched. I can confirm that the condition is not happening every bar. How can I make it so that the limit stays in place so that when it is touched by the price, there is an entry. thank you!
Comment