AUTOMATED TRADING

Use conditional orders to buy or sell

Simply define your target price with specific triggers.
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 =								
+2.4%
+1.2%
-0.6%
Apr 02, 23, 12:09:54 Bot deactivated
Apr 02, 23, 12:09:54 Backtest start date: 04/02/23 12:09:54 GTM+0
Apr 02, 23, 12:09:54 Backtest end date: 04/02/23 12:09:54 GTM+0
Apr 02, 23, 12:09:54 Backtest took: 00:00:01.6642358ms
Apr 02, 23, 12:09:54 ----- Custom Report -----
Apr 02, 23, 12:09:54 Estimated Profit: 0.01 BTC
Apr 02, 23, 12:09:54 ----- Backtest report BINANCE_BNB_BTC_ -----
Apr 02, 23, 12:09:54 Gross profits: 100.00000000 BNB
Apr 02, 23, 12:09:54 Fee costs: 10.00000000 BNB
Apr 02, 23, 12:09:54 Realized profits: 90.00000000 BNB
Apr 02, 23, 12:09:54 Return on investment: 10.0000 %
Apr 02, 23, 12:09:54 Price change: 0.0306%
Apr 02, 23, 12:09:54 Closed positions: 100x
Apr 02, 23, 12:09:54 Profitable positions: 60x (90.00%)
Apr 02, 23, 12:09:54 Losing positions: 40x (10.00%)
Apr 02, 23, 12:09:54 Average margin: 5.00000000 BNB
Apr 02, 23, 12:09:54 Average realized profits: 10.00000000 BNB
Apr 02, 23, 12:09:54 Executed orders: 100x
Apr 02, 23, 12:09:54 Completed order: 100x
Apr 02, 23, 12:09:54 Average open time: 10 seconds
Apr 02, 23, 12:09:54 ----- Performance report BINANCE_BNB_BTC_ -----
Apr 02, 23, 12:09:54 Max. DrawDown: 1.00% / 40.00000000 BNB
Apr 02, 23, 12:09:54 Sharpe Ratio: 1.00
Apr 02, 23, 12:09:54 Sortino Ratio: 1.00
Apr 02, 23, 12:09:54 Win %: 3.00 %
Apr 02, 23, 12:09:54 Profit Ratio: 3.00
Apr 02, 23, 12:09:54 Profit Factor: 3.00
Apr 02, 23, 12:09:54 CPC Index: 1.00
Apr 02, 23, 12:09:54 Tail Ratio: 2.00
Apr 02, 23, 12:09:54 Common Sense Ratio: 2.00
Apr 02, 23, 12:09:54 Outlier Win Ratio: 3.00
Apr 02, 23, 12:09:54 Outlier Loss Ratio: 1.00
Apr 02, 23, 12:09:54 Profit Margin Ratio: 54.00
Apr 02, 23, 12:09:54 Biggest Win: 100.00000000
Apr 02, 23, 12:09:54 Biggest Loss: -100.00000000
Apr 02, 23, 12:09:54 Highest Point in PNL: 5.00000000
Apr 02, 23, 12:09:54 Lowest Point in PNL: -5.00000000

*These numbers are for illustration only and do not reflect past or future performance.

The order bot is designed to set predefined orders that will only execute if the target price is reached. The bot has 3 different trigger conditions: Default, Trigger When Lower, Trigger When Higher.

Discover alternatives to the Order Bot

Pro Upgrade1. Completely Free2. Unrestricted Trial3.

Try TradeServer Cloud for 7-days and discover opportunities you've been missing.
Start free 7-day trial ›
1 TradeServer Cloud Pro upgrade is a 7-day trial of a premium subscription. Automatically downgraded to Lite on expiration or non-payment.
2 During the 7-day TradeServer Cloud Pro trial you will not be required to pay to access Pro plan features.
3 Access to premium features within TradeServer Cloud does not include third-party restrictions or unforeseen issues.