AUTOMATED TRADING

Zone recovery

Shoot for consistent gains with Zone Recovery
							EnableHighSpeedUpdates()
HideTradeAmountSettings()

-- Inputfields
minimumTradeAmount = Input('Minimum exposure', 10)
maximumTradeAmount = Input('Maximum exposure', 10000000)
amountFactor = Input('Trade amount factor', 2)
takeProfit = Input('Percentage profits', 0.2)
zoneFactor = Input('Zone factor', 1)

currentPrice = ClosePrices()

-- Load saved or default info.
reset = Load('reset', true)
basePrice = Load('basePrice', currentPrice)
targetSide = Load('targetSide', SignalExitPosition)
targetAmount = Load('targetAmount', minimumTradeAmount)

longAmount = LongAmount()
shortAmount = ShortAmount()

if IsAnyOrderOpen() == false and targetSide == SignalExitPosition then
  -- We dont have open orders.
  -- Make sure we dont have any positions open anymore.

  if longAmount > 0 then
    PlaceExitLongOrder(currentPrice, longAmount)
  end

  if shortAmount > 0 then
    PlaceExitShortOrder(currentPrice, shortAmount)
  end

  -- Reset base price if we dont have a position and are resetting.
  if longAmount + shortAmount == 0 and reset then
    basePrice = currentPrice
    reset = false
  end

end

-- Lets calculate the go long and short price
zoneSize = (basePrice / 100) * takeProfit / zoneFactor
goLongPrice = basePrice + zoneSize
goShortPrice = basePrice - zoneSize

function SwitchToShort(amount) 
    targetSide = SignalShort
    targetAmount = amount
    PlaceGoShortOrder(currentPrice, amount)
end

function SwitchToLong(amount) 
    targetSide = SignalLong
    targetAmount = amount
    PlaceGoLongOrder(currentPrice, amount)
end								
						
+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 Zone Recovery.
Start free 7-day trial
Apr 17, 24, 02:29:14 Bot deactivated
Apr 17, 24, 02:29:14 Backtest start date: 04/17/24 02:29:14 GTM+0
Apr 17, 24, 02:29:14 Backtest end date: 04/17/24 02:29:14 GTM+0
Apr 17, 24, 02:29:14 Backtest took: 00:00:01.6642358ms
Apr 17, 24, 02:29:14 ----- Custom Report -----
Apr 17, 24, 02:29:14 Estimated Profit: 0.01 BTC
Apr 17, 24, 02:29:14 ----- Backtest report BINANCE_BNB_BTC_ -----
Apr 17, 24, 02:29:14 Gross profits: 100.00000000 BNB
Apr 17, 24, 02:29:14 Fee costs: 10.00000000 BNB
Apr 17, 24, 02:29:14 Realized profits: 90.00000000 BNB
Apr 17, 24, 02:29:14 Return on investment: 10.0000 %
Apr 17, 24, 02:29:14 Price change: 0.0306%
Apr 17, 24, 02:29:14 Closed positions: 100x
Apr 17, 24, 02:29:14 Profitable positions: 60x (90.00%)
Apr 17, 24, 02:29:14 Losing positions: 40x (10.00%)
Apr 17, 24, 02:29:14 Average margin: 5.00000000 BNB
Apr 17, 24, 02:29:14 Average realized profits: 10.00000000 BNB
Apr 17, 24, 02:29:14 Executed orders: 100x
Apr 17, 24, 02:29:14 Completed order: 100x
Apr 17, 24, 02:29:14 Average open time: 10 seconds
Apr 17, 24, 02:29:14 ----- Performance report BINANCE_BNB_BTC_ -----
Apr 17, 24, 02:29:14 Max. DrawDown: 1.00% / 40.00000000 BNB
Apr 17, 24, 02:29:14 Sharpe Ratio: 1.00
Apr 17, 24, 02:29:14 Sortino Ratio: 1.00
Apr 17, 24, 02:29:14 Win %: 3.00 %
Apr 17, 24, 02:29:14 Profit Ratio: 3.00
Apr 17, 24, 02:29:14 Profit Factor: 3.00
Apr 17, 24, 02:29:14 CPC Index: 1.00
Apr 17, 24, 02:29:14 Tail Ratio: 2.00
Apr 17, 24, 02:29:14 Common Sense Ratio: 2.00
Apr 17, 24, 02:29:14 Outlier Win Ratio: 3.00
Apr 17, 24, 02:29:14 Outlier Loss Ratio: 1.00
Apr 17, 24, 02:29:14 Profit Margin Ratio: 54.00
Apr 17, 24, 02:29:14 Biggest Win: 100.00000000
Apr 17, 24, 02:29:14 Biggest Loss: -100.00000000
Apr 17, 24, 02:29:14 Highest Point in PNL: 5.00000000
Apr 17, 24, 02:29:14 Lowest Point in PNL: -5.00000000

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

The zone trading strategy involves identifying specific price zones where the market is more likely to reverse or consolidate, allowing you to enter or exit trades strategically. These zones are typically determined by technical indicators, support and resistance levels, or other market analysis tools. By understanding and utilizing these zones, you can potentially capitalize on market fluctuations and improve your trading performance.

One of the main benefits of using the zone trading strategy is that it enables you to pinpoint high-probability trade entries and exits. By focusing on these specific price zones, you can increase your chances of successful trades, ultimately leading to a more consistent trading experience. Additionally, zone trading can help you manage risk more effectively. By entering trades at or near these zones, you can set tighter stop-loss orders, minimizing potential losses if the market moves against you.

Trading bots using HaasScript on TradeServer Cloud can greatly enhance the zone trading strategy. HaasScript is a powerful scripting language designed for creating and customizing trading algorithms. By developing a custom trading bot using HaasScript, you can automate your zone trading strategy, ensuring that your trades are executed precisely when your desired price zones are reached. This level of automation can help to eliminate the need for constant market monitoring and reduce the risk of human error or emotional decision-making, which can negatively impact your trading results.

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 Zone Recovery

Simplified Copy Bots

Copy top-tier trade bots and capitalize on their performance.
HaasScript Name Market Runtime ROI
SMMDH v3.3 XRP/USD 158 days +21389.358% Copy Bot
SMMDH v3.3 XRP/USDT 132 days +19947.3767% Copy Bot
SMMD v2.51 DOGE/USD 279 days +9565.2063% Copy Bot
SMMD v2.51 ADA/USD 264 days +7253.708% Copy Bot
SMMD v2.51 BTC/USD 279 days +5215.6243% Copy Bot
SMMD v2.51 BTC/USDT 15 days +4936.0669% Copy Bot
SMMD v2.51 XRP/USDT 279 days +4475.6735% Copy Bot
Haasonline Original - Market Making Bot BTC/USDT 295 days +4438.4609% Copy Bot
SMMD v2.51 XRP/USD 264 days +3714.7476% Copy Bot
SMMDH v3.3 BTC/USDT 158 days +2704.9798% Copy Bot
SMMDH v3.3 BTC/USD 159 days +2508.357% Copy Bot
SMMDH v3.3 BTC/USD 104 days +2319.9484% Copy Bot
Spot-SMMDv2 MTVT/USDT 123 days +1278.0459% Copy Bot
Haasonline Original - Market Making Bot XRP/USDT 296 days +1123.2335% Copy Bot
[pshaiBot] Simple Market Maker v2.6-c XRP/USDT 166 days +812.5694% Copy Bot
Haasonline Original - Flash Crash Bot XRP/USDT 296 days +700.8862% Copy Bot
SMMD v2.51 ETH/USD 279 days +659.4102% Copy Bot
Haasonline Original - Flash Crash Bot XRP/USDT 195 days +603.0589% Copy Bot
Haasonline Original - Flash Crash Bot DOGE/USDT 296 days +530.6804% Copy Bot
Haasonline Original - Scalper Bot XRP/USDT 296 days +502.6984% Copy Bot
Haasonline Original - Flash Crash Bot XRP/USDT 190 days +500.4739% Copy Bot
[pshaiBot] Simple Market Maker v2.6-c ARK/USDT 166 days +475.0573% Copy Bot
Haasonline Original - Flash Crash Bot ADA/USDT 296 days +468.2344% Copy Bot
Spot-SMMDv2 LINK/USDT 129 days +368.6938% Copy Bot
Haasonline Original - Flash Crash Bot XBT/USDT 292 days +343.8214% Copy Bot
Spot-SMMDv2 XRP/USDT 129 days +274.98% Copy Bot
Haasonline Original - Flash Crash Bot ETH/USDT 296 days +266.0818% Copy Bot
Spot-SMMDv2 BTC/USDT 129 days +245.7865% Copy Bot
Haasonline Original - Flash Crash Bot BTC/USDT 296 days +190.0414% Copy Bot
Spot-SMMDv2 BTC/USDT 129 days +155.2583% Copy Bot
Spot-SMMDv2 B2M/USDT 88 days +145.3873% Copy Bot
SMMDH v3.3 XRP/USDT 110 days +131.7818% Copy Bot
Haasonline Original - Flash Crash Bot ADA/USDT 195 days +113.2466% Copy Bot
Spot-SMMDv2 ETH/USDT 124 days +102.6879% Copy Bot
Spot-SMMDv2 ETH/USDT 129 days +77.8794% Copy Bot
Spot-SMMDv2 BTC/USDT 88 days +77.2796% Copy Bot
Haasonline Original - Flash Crash Bot ADA/USDT 190 days +65.7307% Copy Bot
Enhanced RSI bot (spot) BTC/USDT 300 days +37.7998% Copy Bot
Spot-SMMDv2 BTC/USDT 124 days +22.2661% Copy Bot
Enhanced RSI bot (spot) ETH/USDT 300 days +18.33% Copy Bot
Spot-SMMDv2 LINK/USDT 124 days +18.0107% Copy Bot
Haasonline Original - Flash Crash Bot BTC/USDT 190 days +14.2077% Copy Bot
Haasonline Original - Flash Crash Bot BTC/USDT 190 days +13.5317% Copy Bot
Haasonline Original - Intelli Alice Bot BTC/USDT 300 days +13.3023% Copy Bot
Spot-SMMDv2 XRP/USDT 124 days +12.635% Copy Bot
Haasonline Original - MadHatter Bot BTC/USDT 300 days +12.5206% Copy Bot
Simple Zero-lag EMA Bot ETH/USDT 296 days +4.2551% Copy Bot
Simple Zero-lag EMA Bot BTC/USDT 296 days +0.7544% 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.