local orderTable = InputTable(
InputTableOptions('Orders'),
InputTableColumn('ID', 'buy', 'sl', 'sell'),
InputTableColumn('Market Order', false, true, false),
InputTableColumn('Direction', '+', '-', '-'),
InputTableColumn('Target Price', 62000, 61800, 63000),
InputTableColumn('Amount', 0.002, 0.002, 0.002),
InputTableColumn('Before *', '', 'sell', ''),
InputTableColumn('After *', '', 'buy', 'buy'),
InputTableColumn('Trigger Type *', '', '<', ''),
InputTableColumn('Trigger Price *', '', 61800, '')
)
local isDebug = Input('Debug Mode', false)
function debuglog(msg, color)
if not isDebug then return end
Log('[DEBUG] ' .. msg, color or '')
end
EnableHighSpeedUpdates(true)
HideOrderSettings()
HideTradeAmountSettings()
-- ===============================================================
-- Config object
local Config = {}
function Config:isSpot()
return MarketType() == SpotTrading
end
-- ===============================================================
-- Enums
local TableItem =
{
Id = 1,
IsMarket = 2,
Direction = 3,
TargetPrice = 4,
Amount = 5,
Before = 6,
After = 7,
TriggerType = 8,
TriggerPrice = 9
}
local TriggerType =
{
LowerThan = '<',
HigherThan = '>',
Normal = ''
}
local OrderDirection =
Nov 16, 24, 13:26:44 Bot deactivated
Nov 16, 24, 13:26:44 Backtest start date: 11/16/24 13:26:44 GTM+0
Nov 16, 24, 13:26:44 Backtest end date: 11/16/24 13:26:44 GTM+0
Nov 16, 24, 13:26:44 Backtest took: 00:00:01.6642358ms
Nov 16, 24, 13:26:44 ----- Custom Report -----
Nov 16, 24, 13:26:44 Estimated Profit: 0.01 BTC
Nov 16, 24, 13:26:44 ----- Backtest report BINANCE_BNB_BTC_ -----
Nov 16, 24, 13:26:44 Gross profits: 100.00000000 BNB
Nov 16, 24, 13:26:44 Fee costs: 10.00000000 BNB
Nov 16, 24, 13:26:44 Realized profits: 90.00000000 BNB
Nov 16, 24, 13:26:44 Return on investment: 10.0000 %
Nov 16, 24, 13:26:44 Price change: 0.0306%
Nov 16, 24, 13:26:44 Closed positions: 100x
Nov 16, 24, 13:26:44 Profitable positions: 60x (90.00%)
Nov 16, 24, 13:26:44 Losing positions: 40x (10.00%)
Nov 16, 24, 13:26:44 Average margin: 5.00000000 BNB
Nov 16, 24, 13:26:44 Average realized profits: 10.00000000 BNB
Nov 16, 24, 13:26:44 Executed orders: 100x
Nov 16, 24, 13:26:44 Completed order: 100x
Nov 16, 24, 13:26:44 Average open time: 10 seconds
Nov 16, 24, 13:26:44 ----- Performance report BINANCE_BNB_BTC_ -----
Nov 16, 24, 13:26:44 Max. DrawDown: 1.00% / 40.00000000 BNB
Nov 16, 24, 13:26:44 Sharpe Ratio: 1.00
Nov 16, 24, 13:26:44 Sortino Ratio: 1.00
Nov 16, 24, 13:26:44 Win %: 3.00 %
Nov 16, 24, 13:26:44 Profit Ratio: 3.00
Nov 16, 24, 13:26:44 Profit Factor: 3.00
Nov 16, 24, 13:26:44 CPC Index: 1.00
Nov 16, 24, 13:26:44 Tail Ratio: 2.00
Nov 16, 24, 13:26:44 Common Sense Ratio: 2.00
Nov 16, 24, 13:26:44 Outlier Win Ratio: 3.00
Nov 16, 24, 13:26:44 Outlier Loss Ratio: 1.00
Nov 16, 24, 13:26:44 Profit Margin Ratio: 54.00
Nov 16, 24, 13:26:44 Biggest Win: 100.00000000
Nov 16, 24, 13:26:44 Biggest Loss: -100.00000000
Nov 16, 24, 13:26:44 Highest Point in PNL: 5.00000000
Nov 16, 24, 13:26:44 Lowest Point in PNL: -5.00000000
*These numbers are for illustration only and do not reflect past or future performance.