I'm currently using this code snippet:
donchian = DonchianChannel(10).Upper[0];
if (Position.MarketPosition == MarketPosition.Flat)
{
EnterLongLimit(donchian + 1);
}
But now the order gets filled, although the whole bar was about 100 points below the order prize. I'm using the default filling algorithm. How can I get it, that it only gets filled when the limit price gets reached? I've never had this problem before.
Regards and a happy new year,
Sepp
Comment