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
Apr 18, 24, 09:32:46 Bot deactivated
Apr 18, 24, 09:32:46 Backtest start date: 04/18/24 09:32:46 GTM+0
Apr 18, 24, 09:32:46 Backtest end date: 04/18/24 09:32:46 GTM+0
Apr 18, 24, 09:32:46 Backtest took: 00:00:01.6642358ms
Apr 18, 24, 09:32:46 ----- Custom Report -----
Apr 18, 24, 09:32:46 Estimated Profit: 0.01 BTC
Apr 18, 24, 09:32:46 ----- Backtest report BINANCE_BNB_BTC_ -----
Apr 18, 24, 09:32:46 Gross profits: 100.00000000 BNB
Apr 18, 24, 09:32:46 Fee costs: 10.00000000 BNB
Apr 18, 24, 09:32:46 Realized profits: 90.00000000 BNB
Apr 18, 24, 09:32:46 Return on investment: 10.0000 %
Apr 18, 24, 09:32:46 Price change: 0.0306%
Apr 18, 24, 09:32:46 Closed positions: 100x
Apr 18, 24, 09:32:46 Profitable positions: 60x (90.00%)
Apr 18, 24, 09:32:46 Losing positions: 40x (10.00%)
Apr 18, 24, 09:32:46 Average margin: 5.00000000 BNB
Apr 18, 24, 09:32:46 Average realized profits: 10.00000000 BNB
Apr 18, 24, 09:32:46 Executed orders: 100x
Apr 18, 24, 09:32:46 Completed order: 100x
Apr 18, 24, 09:32:46 Average open time: 10 seconds
Apr 18, 24, 09:32:46 ----- Performance report BINANCE_BNB_BTC_ -----
Apr 18, 24, 09:32:46 Max. DrawDown: 1.00% / 40.00000000 BNB
Apr 18, 24, 09:32:46 Sharpe Ratio: 1.00
Apr 18, 24, 09:32:46 Sortino Ratio: 1.00
Apr 18, 24, 09:32:46 Win %: 3.00 %
Apr 18, 24, 09:32:46 Profit Ratio: 3.00
Apr 18, 24, 09:32:46 Profit Factor: 3.00
Apr 18, 24, 09:32:46 CPC Index: 1.00
Apr 18, 24, 09:32:46 Tail Ratio: 2.00
Apr 18, 24, 09:32:46 Common Sense Ratio: 2.00
Apr 18, 24, 09:32:46 Outlier Win Ratio: 3.00
Apr 18, 24, 09:32:46 Outlier Loss Ratio: 1.00
Apr 18, 24, 09:32:46 Profit Margin Ratio: 54.00
Apr 18, 24, 09:32:46 Biggest Win: 100.00000000
Apr 18, 24, 09:32:46 Biggest Loss: -100.00000000
Apr 18, 24, 09:32:46 Highest Point in PNL: 5.00000000
Apr 18, 24, 09:32:46 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/USD 159 days +21640.7849% Copy Bot
SMMDH v3.3 XRP/USDT 133 days +20105.627% Copy Bot
SMMD v2.51 DOGE/USD 280 days +9664.3755% Copy Bot
SMMD v2.51 ADA/USD 265 days +7384.7287% Copy Bot
SMMD v2.51 BTC/USDT 16 days +5807.2975% Copy Bot
SMMD v2.51 BTC/USD 280 days +5360.2057% Copy Bot
Haasonline Original - Market Making Bot BTC/USDT 296 days +4596.7074% Copy Bot
SMMD v2.51 XRP/USDT 280 days +4540.7216% Copy Bot
SMMD v2.51 XRP/USD 265 days +3761.7997% Copy Bot
SMMDH v3.3 BTC/USDT 160 days +2169.961% Copy Bot
SMMDH v3.3 BTC/USD 105 days +2119.6402% Copy Bot
SMMDH v3.3 BTC/USD 160 days +1458.16% Copy Bot
Spot-SMMDv2 MTVT/USDT 124 days +1278.0459% Copy Bot
Haasonline Original - Market Making Bot XRP/USDT 297 days +1137.9346% Copy Bot
[pshaiBot] Simple Market Maker v2.6-c XRP/USDT 167 days +812.5% Copy Bot
Haasonline Original - Flash Crash Bot XRP/USDT 298 days +710.3882% Copy Bot
SMMD v2.51 ETH/USD 280 days +662.6457% Copy Bot
Haasonline Original - Flash Crash Bot XRP/USDT 197 days +613.4999% Copy Bot
Haasonline Original - Flash Crash Bot DOGE/USDT 298 days +530.6804% Copy Bot
Haasonline Original - Flash Crash Bot XRP/USDT 191 days +507.3996% Copy Bot
Haasonline Original - Scalper Bot XRP/USDT 297 days +502.6984% Copy Bot
[pshaiBot] Simple Market Maker v2.6-c ARK/USDT 167 days +476.1061% Copy Bot
Haasonline Original - Flash Crash Bot ADA/USDT 298 days +468.2344% Copy Bot
Spot-SMMDv2 LINK/USDT 130 days +371.3057% Copy Bot
Haasonline Original - Flash Crash Bot XBT/USDT 293 days +343.8214% Copy Bot
Spot-SMMDv2 XRP/USDT 130 days +278.773% Copy Bot
Haasonline Original - Flash Crash Bot ETH/USDT 297 days +266.0818% Copy Bot
SMMDH v3.3 XRP/USDT 111 days +261.6482% Copy Bot
Spot-SMMDv2 BTC/USDT 130 days +250.4574% Copy Bot
Haasonline Original - Flash Crash Bot BTC/USDT 297 days +190.0414% Copy Bot
Spot-SMMDv2 BTC/USDT 130 days +159.3178% Copy Bot
Spot-SMMDv2 B2M/USDT 89 days +147.5044% Copy Bot
Haasonline Original - Flash Crash Bot ADA/USDT 197 days +113.2466% Copy Bot
Spot-SMMDv2 ETH/USDT 125 days +106.2217% Copy Bot
Spot-SMMDv2 ETH/USDT 130 days +81.0813% Copy Bot
Spot-SMMDv2 BTC/USDT 89 days +77.8725% Copy Bot
Haasonline Original - Flash Crash Bot ADA/USDT 191 days +65.7307% Copy Bot
Enhanced RSI bot (spot) BTC/USDT 301 days +37.7998% Copy Bot
Spot-SMMDv2 BTC/USDT 125 days +22.2661% Copy Bot
Enhanced RSI bot (spot) ETH/USDT 301 days +18.1977% Copy Bot
Spot-SMMDv2 LINK/USDT 125 days +18.0107% Copy Bot
Haasonline Original - Intelli Alice Bot BTC/USDT 301 days +15.0475% Copy Bot
Haasonline Original - Flash Crash Bot BTC/USDT 191 days +14.2077% Copy Bot
Haasonline Original - Flash Crash Bot BTC/USDT 191 days +13.5317% Copy Bot
Spot-SMMDv2 XRP/USDT 125 days +12.635% Copy Bot
Haasonline Original - MadHatter Bot BTC/USDT 301 days +6.2605% Copy Bot
Simple Zero-lag EMA Bot ETH/USDT 297 days +2.9327% Copy Bot
Simple Zero-lag EMA Bot BTC/USDT 297 days +2.5029% 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.