AUTOMATED TRADING

Recreate trading strategies

Use HaasScript to develop, test, and deploy anything you can think up.
							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%
Unlock the full power of HaasOnline
Start a free trial and enjoy 7-days free. We'll help you make better trades using Standard Trade Bot.
Start free 7-day trial
Jun 06, 23, 16:09:02 Bot deactivated
Jun 06, 23, 16:09:02 Backtest start date: 06/06/23 16:09:02 GTM+0
Jun 06, 23, 16:09:02 Backtest end date: 06/06/23 16:09:02 GTM+0
Jun 06, 23, 16:09:02 Backtest took: 00:00:01.6642358ms
Jun 06, 23, 16:09:02 ----- Custom Report -----
Jun 06, 23, 16:09:02 Estimated Profit: 0.01 BTC
Jun 06, 23, 16:09:02 ----- Backtest report BINANCE_BNB_BTC_ -----
Jun 06, 23, 16:09:02 Gross profits: 100.00000000 BNB
Jun 06, 23, 16:09:02 Fee costs: 10.00000000 BNB
Jun 06, 23, 16:09:02 Realized profits: 90.00000000 BNB
Jun 06, 23, 16:09:02 Return on investment: 10.0000 %
Jun 06, 23, 16:09:02 Price change: 0.0306%
Jun 06, 23, 16:09:02 Closed positions: 100x
Jun 06, 23, 16:09:02 Profitable positions: 60x (90.00%)
Jun 06, 23, 16:09:02 Losing positions: 40x (10.00%)
Jun 06, 23, 16:09:02 Average margin: 5.00000000 BNB
Jun 06, 23, 16:09:02 Average realized profits: 10.00000000 BNB
Jun 06, 23, 16:09:02 Executed orders: 100x
Jun 06, 23, 16:09:02 Completed order: 100x
Jun 06, 23, 16:09:02 Average open time: 10 seconds
Jun 06, 23, 16:09:02 ----- Performance report BINANCE_BNB_BTC_ -----
Jun 06, 23, 16:09:02 Max. DrawDown: 1.00% / 40.00000000 BNB
Jun 06, 23, 16:09:02 Sharpe Ratio: 1.00
Jun 06, 23, 16:09:02 Sortino Ratio: 1.00
Jun 06, 23, 16:09:02 Win %: 3.00 %
Jun 06, 23, 16:09:02 Profit Ratio: 3.00
Jun 06, 23, 16:09:02 Profit Factor: 3.00
Jun 06, 23, 16:09:02 CPC Index: 1.00
Jun 06, 23, 16:09:02 Tail Ratio: 2.00
Jun 06, 23, 16:09:02 Common Sense Ratio: 2.00
Jun 06, 23, 16:09:02 Outlier Win Ratio: 3.00
Jun 06, 23, 16:09:02 Outlier Loss Ratio: 1.00
Jun 06, 23, 16:09:02 Profit Margin Ratio: 54.00
Jun 06, 23, 16:09:02 Biggest Win: 100.00000000
Jun 06, 23, 16:09:02 Biggest Loss: -100.00000000
Jun 06, 23, 16:09:02 Highest Point in PNL: 5.00000000
Jun 06, 23, 16:09:02 Lowest Point in PNL: -5.00000000

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

This crypto trade bot is anything but standard. It is one of the more advanced trade bots available with HaasOnline TradeServer. Using our crypto trade bot allows you to create spot, margin, or leverage trade bots and compile your own trading strategy using different technical indicators, chart settings, order types, safeties, and insurances. The goal was to provide traders with a method to easily replicate most trading strategies with speed.

More Alpha. Less Noise.

See if these exclusive offers can help your trading strategies, claim these rewards while they last!

Promotions offered by third-parties and are subject to availability, terms, and conditions. Other restrictions may apply. Individual results may vary and are not typical.

Discover alternatives to the Standard Trade 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.