Now it is doing the following:ROOI wrote: Yip.Got it to open trades.Works well.The problem is it open a hedge trade every tic for that minute that is "trading hours" are on.So its like a little to many stacked orders.
IS there anyway to change that it executes once per trading interval ?
When it is inside tradingtime, it will check if there already exists a BUY and a SELL order.
If either not exists, it will open one. So there are never more than one buy and one sell order at the same time opened.
For example: if one buy already opened, it will open just a sell order.