Fix a bit the spot trading
This commit is contained in:
@@ -193,12 +193,6 @@ public class BacktestSpotBot : TradingBotBase, ITradingBot
|
||||
await AddSignal(backtestSignal);
|
||||
}
|
||||
|
||||
protected override async Task<decimal> GetLastPriceForPositionOpeningAsync()
|
||||
{
|
||||
// For backtest, use LastCandle close price
|
||||
return LastCandle?.Close ?? 0;
|
||||
}
|
||||
|
||||
protected override async Task<bool> CanOpenPosition(LightSignal signal)
|
||||
{
|
||||
// For spot trading, only LONG signals can open positions
|
||||
|
||||
Reference in New Issue
Block a user