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
Nov 22, 24, 23:48:45 Bot deactivated
Nov 22, 24, 23:48:45 Backtest start date: 11/22/24 23:48:45 GTM+0
Nov 22, 24, 23:48:45 Backtest end date: 11/22/24 23:48:45 GTM+0
Nov 22, 24, 23:48:45 Backtest took: 00:00:01.6642358ms
Nov 22, 24, 23:48:45 ----- Custom Report -----
Nov 22, 24, 23:48:45 Estimated Profit: 0.01 BTC
Nov 22, 24, 23:48:45 ----- Backtest report BINANCE_BNB_BTC_ -----
Nov 22, 24, 23:48:45 Gross profits: 100.00000000 BNB
Nov 22, 24, 23:48:45 Fee costs: 10.00000000 BNB
Nov 22, 24, 23:48:45 Realized profits: 90.00000000 BNB
Nov 22, 24, 23:48:45 Return on investment: 10.0000 %
Nov 22, 24, 23:48:45 Price change: 0.0306%
Nov 22, 24, 23:48:45 Closed positions: 100x
Nov 22, 24, 23:48:45 Profitable positions: 60x (90.00%)
Nov 22, 24, 23:48:45 Losing positions: 40x (10.00%)
Nov 22, 24, 23:48:45 Average margin: 5.00000000 BNB
Nov 22, 24, 23:48:45 Average realized profits: 10.00000000 BNB
Nov 22, 24, 23:48:45 Executed orders: 100x
Nov 22, 24, 23:48:45 Completed order: 100x
Nov 22, 24, 23:48:45 Average open time: 10 seconds
Nov 22, 24, 23:48:45 ----- Performance report BINANCE_BNB_BTC_ -----
Nov 22, 24, 23:48:45 Max. DrawDown: 1.00% / 40.00000000 BNB
Nov 22, 24, 23:48:45 Sharpe Ratio: 1.00
Nov 22, 24, 23:48:45 Sortino Ratio: 1.00
Nov 22, 24, 23:48:45 Win %: 3.00 %
Nov 22, 24, 23:48:45 Profit Ratio: 3.00
Nov 22, 24, 23:48:45 Profit Factor: 3.00
Nov 22, 24, 23:48:45 CPC Index: 1.00
Nov 22, 24, 23:48:45 Tail Ratio: 2.00
Nov 22, 24, 23:48:45 Common Sense Ratio: 2.00
Nov 22, 24, 23:48:45 Outlier Win Ratio: 3.00
Nov 22, 24, 23:48:45 Outlier Loss Ratio: 1.00
Nov 22, 24, 23:48:45 Profit Margin Ratio: 54.00
Nov 22, 24, 23:48:45 Biggest Win: 100.00000000
Nov 22, 24, 23:48:45 Biggest Loss: -100.00000000
Nov 22, 24, 23:48:45 Highest Point in PNL: 5.00000000
Nov 22, 24, 23:48: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
SMMD v2.51 BTC/USDT 234 days +53727.3876% Copy Bot
SMMDH v3.3 XRP/USDT 102 days +47125.5036% Copy Bot
SMMDH v3.3 XRP/USD 108 days +39502.0974% Copy Bot
SMMDH v3.3 XRP/USDT 104 days +15692.6178% Copy Bot
SMMD v2.51 DOGE/USD 499 days +12482.1246% Copy Bot
SMMD v2.51 BTC/USD 499 days +10227.7555% Copy Bot
SMMD v2.51 XRP/USDT 499 days +9761.456% Copy Bot
Haasonline Original - Market Making Bot BTC/USDT 515 days +9351.9627% Copy Bot
SMMDH v3.3 BTC/USDT 109 days +7196.3173% Copy Bot
SMMD v2.51 ADA/USD 484 days +6170.2883% Copy Bot
SMMDH v3.3 BTC/USD 109 days +5552.2875% Copy Bot
[pshaiBot] Some Trend Trader (STT) DOGE/USDT 504 days +2949.6229% Copy Bot
SMMD v2.51 XRP/USD 484 days +2022.0307% Copy Bot
SMMDH v3.3 BTC/USDT 109 days +1787.1376% Copy Bot
SMMD v2.51 ETH/USD 499 days +1379.925% Copy Bot
SMMDH v3.3 BTC/USDT 109 days +1331.8242% Copy Bot
[pshaiBot] Simple Market Maker v2.6-c XRP/USDT 386 days +931.4335% Copy Bot
SMMDH v3.3 BTC/USD 109 days +857.0408% Copy Bot
SMMDH v3.3 ETH/USDT 109 days +601.9351% Copy Bot
[pshaiBot] Some Trend Trader (STT) ZEN/USDT 501 days +493.1801% Copy Bot
[pshaiBot] Simple Market Maker v2.6-c ARK/USDT 386 days +439.7346% Copy Bot
SMMDH v3.3 ETH/USDT 109 days +409.8253% Copy Bot
HFCBv1.0 BTC/USDT 147 days +363.7736% Copy Bot
HFCBv1.0 BTC/USDT 147 days +283.3727% Copy Bot
[pshaiBot] Some Trend Trader (STT) BNB/USDT 504 days +273.8168% Copy Bot
HFCBv1.0 BTC/USDT 147 days +261.6021% Copy Bot
HFCBv1.0 BTC/USDT 147 days +247.9065% Copy Bot
HFCBv1.0 BTC/USD 147 days +245.9078% Copy Bot
Haasonline Original - Scalper Bot ETH/USDT 516 days +244.6159% Copy Bot
HFCBv1.0 BTC/USDT 147 days +228.0936% Copy Bot
HFCBv1.0 BTC/USDT 147 days +225.1551% Copy Bot
HFCBv1.0 BTC/USDT 147 days +196.3389% Copy Bot
HS-DCA-Spot-Hopper-v2.0 ADA/USDT 125 days +149.2002% Copy Bot
HFCBv1.0 BTC/USDT 147 days +149.1533% Copy Bot
HS-DCA-Spot-Hopper-v2.0 ADA/USDT 120 days +139.2914% Copy Bot
HS-DCA-Spot-Hopper-v2.0 XRP/USDT 120 days +123.2744% Copy Bot
HS-DCA-Spot-Hopper-v2.0 ADA/USDT 120 days +118.945% Copy Bot
Haasonline Original - Flash Crash Bot ADA/USDT 415 days +113.2466% Copy Bot
HS-DCA-Spot-Hopper-v2.0 SOL/USDT 123 days +86.144% Copy Bot
HS-DCA-Spot-Hopper-v2.0 XRP/USDT 125 days +77.9243% Copy Bot
HS-DCA-Spot-Hopper-v2.0 XRP/USDT 120 days +71.6413% Copy Bot
HS-DCA-Spot-Hopper-v2.0 SOL/USDT 120 days +70.2059% Copy Bot
HFCBv1.0 BTC/USDT 147 days +62.8524% Copy Bot
Enhanced RSI bot (spot) BTC/USDT 520 days +53.8059% Copy Bot
HS-DCA-Spot-Hopper-v2.0 SOL/USDT 120 days +44.1909% Copy Bot
HS-DCA-Spot-Hopper-v2.0 XRP/USDT 120 days +33.1079% Copy Bot
HS-DCA-Spot-Hopper-v2.0 ADA/USDT 120 days +19.1529% Copy Bot
Haasonline Original - Intelli Alice Bot BTC/USDT 520 days +15.2684% Copy Bot
HS-DCA-Spot-Hopper-v2.0 BTC/USDT 125 days +7.5193% 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.