I am trying to build a strategy that finds the high and low from a certain time frame and then if the current bar closes above or below the high from that time frame I put a limit order in at the high or low found earlier. How can I use EnterLongLimit() to make this happen?
if (ToTime(Time[0]) >= 65010 && ToTime(Time[0]) <= 82500)
{
if (Close[0] > HighestPrice)
{
EnterLongLimit(Convert.ToInt32(DefaultQuantity), "");
}
}
Comment