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

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

The conditional order trading strategy is an advanced approach that allows you to set predefined conditions for your trades. When these conditions are met, your trading bot executes the orders automatically. Using HaasScript on TradeServer Cloud, you can create custom trading bots that utilize conditional orders to take advantage of the ever-changing crypto market.

One key benefit of using conditional orders is the ability to manage your risk more effectively. By setting stop-loss and take-profit levels, you can ensure that your trades are executed at the most optimal price points, protecting your investments and locking in profits. This means you can trade with confidence, knowing that your strategy will adapt to the market's movements.

Another advantage of conditional order trading is the opportunity to capitalize on market events and trends. With HaasScript and TradeServer Cloud, you can create complex conditions based on technical indicators and other data points, allowing your trading bot to react swiftly to market changes. This gives you an edge over manual trading, as your bot can make decisions and execute trades faster than you could on your own.

In summary, the conditional order trading strategy, combined with HaasScript and TradeServer Cloud, provides you with an advanced, flexible, and effective way to trade in the dynamic world of cryptocurrencies. You'll be able to manage risk, seize opportunities, and stay ahead of the competition with ease.

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 Order Bot

Simplified Copy Bots

Copy top-tier trade bots and capitalize on their performance.
HaasScript Name Market Runtime ROI
SMMDH v3.3 XRP/USDT 219 days +25959.9565% Copy Bot
SMMDH v3.3 XRP/USD 245 days +25599.4769% Copy Bot
SMMD v2.51 BTC/USDT 102 days +23298.2527% Copy Bot
SMMD v2.51 DOGE/USD 366 days +10908.6072% Copy Bot
SMMD v2.51 ADA/USD 351 days +8208.8269% Copy Bot
SMMD v2.51 BTC/USD 366 days +6614.7265% Copy Bot
Haasonline Original - Market Making Bot BTC/USDT 382 days +6324.3115% Copy Bot
SMMD v2.51 XRP/USD 351 days +4879.2475% Copy Bot
SMMD v2.51 XRP/USDT 366 days +4014.4037% Copy Bot
SMMDH v3.3 BTC/USD 246 days +3638.1593% Copy Bot
SMMDH v3.3 XRP/USDT 197 days +3623.8999% Copy Bot
SMMDH v3.3 BTC/USDT 246 days +3373.8496% Copy Bot
SMMDH v3.3 BTC/USD 191 days +2139.0842% Copy Bot
Spot-SMMDv2 MTVT/USDT 210 days +1278.0459% Copy Bot
Haasonline Original - Market Making Bot XRP/USDT 383 days +1034.1867% Copy Bot
Haasonline Original - Flash Crash Bot XRP/USDT 384 days +985.0337% Copy Bot
[pshaiBot] Simple Market Maker v2.6-c XRP/USDT 253 days +964.1575% Copy Bot
Haasonline Original - Flash Crash Bot XRP/USDT 277 days +937.4823% Copy Bot
Haasonline Original - Flash Crash Bot XRP/USDT 283 days +920.903% Copy Bot
SMMD v2.51 ETH/USD 366 days +834.2351% Copy Bot
Haasonline Original - Scalper Bot XRP/USDT 383 days +688.4252% Copy Bot
Spot-SMMDv2 LINK/USDT 216 days +550.2963% Copy Bot
Haasonline Original - Flash Crash Bot DOGE/USDT 384 days +530.6804% Copy Bot
[pshaiBot] Simple Market Maker v2.6-c ARK/USDT 253 days +509.7908% Copy Bot
Haasonline Original - Flash Crash Bot ADA/USDT 384 days +468.2344% Copy Bot
[pshaiBot] Some Trend Trader (STT) ZEN/USDT 369 days +406.6852% Copy Bot
Spot-SMMDv2 BTC/USDT 216 days +349.4983% Copy Bot
Haasonline Original - Flash Crash Bot XBT/USDT 379 days +343.8214% Copy Bot
[pshaiBot] Some Trend Trader (STT) DOGE/USDT 371 days +335.2488% Copy Bot
Spot-SMMDv2 XRP/USDT 216 days +321.0626% Copy Bot
Spot-SMMDv2 B2M/USDT 175 days +282.8881% Copy Bot
Haasonline Original - Flash Crash Bot ETH/USDT 383 days +266.0818% Copy Bot
Spot-SMMDv2 ETH/USDT 211 days +213.0015% Copy Bot
Spot-SMMDv2 BTC/USDT 216 days +195.7992% Copy Bot
Haasonline Original - Flash Crash Bot BTC/USDT 383 days +190.0414% Copy Bot
Spot-SMMDv2 ETH/USDT 216 days +148.9435% Copy Bot
Haasonline Original - Scalper Bot ETH/USDT 383 days +139.3103% Copy Bot
Haasonline Original - Flash Crash Bot ADA/USDT 283 days +113.2466% Copy Bot
Spot-SMMDv2 BTC/USDT 175 days +79.1296% Copy Bot
Haasonline Original - Flash Crash Bot ADA/USDT 277 days +65.7307% Copy Bot
HFCBv1.0 BTC/USDT 14 days +39.6963% Copy Bot
HFCBv1.0 BTC/USDT 14 days +37.2945% Copy Bot
HFCBv1.0 BTC/USDT 14 days +36.6297% Copy Bot
HFCBv1.0 BTC/USDT 14 days +35.9248% Copy Bot
HFCBv1.0 BTC/USD 14 days +33.5276% Copy Bot
HFCBv1.0 BTC/USDT 14 days +32.9714% Copy Bot
HFCBv1.0 BTC/USDT 14 days +32.5721% Copy Bot
Enhanced RSI bot (spot) BTC/USDT 387 days +32.4853% Copy Bot
HFCBv1.0 BTC/USDT 14 days +31.317% Copy Bot
HFCBv1.0 BTC/USDT 14 days +30.0025% Copy Bot
HFCBv1.0 BTC/USDT 14 days +27.7492% Copy Bot
HFCBv1.0 XBT/USDT 14 days +23.3498% Copy Bot
Spot-SMMDv2 BTC/USDT 211 days +22.2661% Copy Bot
HFCBv1.0 BTC/USDT 14 days +20.5585% Copy Bot
Spot-SMMDv2 LINK/USDT 211 days +19.9682% Copy Bot
Spot-SMMDv2 XRP/USDT 211 days +16.2504% Copy Bot
Haasonline Original - Flash Crash Bot BTC/USDT 277 days +14.2077% Copy Bot
Haasonline Original - Intelli Alice Bot BTC/USDT 387 days +10.5855% Copy Bot
HFCBv1.0 BTC/USDT 14 days +9.3903% Copy Bot
Enhanced RSI bot (spot) ETH/USDT 387 days +4.7062% Copy Bot
[pshaiBot] Some Trend Trader (STT) BNB/USDT 372 days +1.5442% Copy Bot
* Please note that while our platform provides the tools to replicate the strategies of top-performing trading bots, individual results may vary. Success in financial markets is influenced by a variety of factors, many of which are beyond our control. Past performance is not indicative of future results, and there is always the potential for loss as well as gain. Always conduct your own research and consider your financial circumstances before making investment decisions.
Show more trade bots

Pro Upgrade1. Completely Free2. Unrestricted Trial3.

Embark on your journey to smarter, faster, and more effective trading with HaasOnline. Sign up now for a free trial and gain immediate access to our advanced trading bots.

Are you looking to optimize your trading strategy, reduce risks, or explore automated crypto trading? HaasOnline is your ideal partner. Experience firsthand how our customizable bots can enhance your trading efficiency and accuracy.

Start free 3-day trial ›
1 TradeServer Cloud Pro offers a 3-day trial of our premium subscription.
2 During the 3-day TradeServer Cloud Pro trial you will not be required to pay to access Pro plan features. Subscription automatically renews unless auto-renewal is disabled or if you opt for manual payments.
3 Access to premium features within TradeServer Cloud does not include third-party restrictions or unforeseen issues.