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
Jul 20, 24, 14:12:19 Bot deactivated
Jul 20, 24, 14:12:19 Backtest start date: 07/20/24 14:12:19 GTM+0
Jul 20, 24, 14:12:19 Backtest end date: 07/20/24 14:12:19 GTM+0
Jul 20, 24, 14:12:19 Backtest took: 00:00:01.6642358ms
Jul 20, 24, 14:12:19 ----- Custom Report -----
Jul 20, 24, 14:12:19 Estimated Profit: 0.01 BTC
Jul 20, 24, 14:12:19 ----- Backtest report BINANCE_BNB_BTC_ -----
Jul 20, 24, 14:12:19 Gross profits: 100.00000000 BNB
Jul 20, 24, 14:12:19 Fee costs: 10.00000000 BNB
Jul 20, 24, 14:12:19 Realized profits: 90.00000000 BNB
Jul 20, 24, 14:12:19 Return on investment: 10.0000 %
Jul 20, 24, 14:12:19 Price change: 0.0306%
Jul 20, 24, 14:12:19 Closed positions: 100x
Jul 20, 24, 14:12:19 Profitable positions: 60x (90.00%)
Jul 20, 24, 14:12:19 Losing positions: 40x (10.00%)
Jul 20, 24, 14:12:19 Average margin: 5.00000000 BNB
Jul 20, 24, 14:12:19 Average realized profits: 10.00000000 BNB
Jul 20, 24, 14:12:19 Executed orders: 100x
Jul 20, 24, 14:12:19 Completed order: 100x
Jul 20, 24, 14:12:19 Average open time: 10 seconds
Jul 20, 24, 14:12:19 ----- Performance report BINANCE_BNB_BTC_ -----
Jul 20, 24, 14:12:19 Max. DrawDown: 1.00% / 40.00000000 BNB
Jul 20, 24, 14:12:19 Sharpe Ratio: 1.00
Jul 20, 24, 14:12:19 Sortino Ratio: 1.00
Jul 20, 24, 14:12:19 Win %: 3.00 %
Jul 20, 24, 14:12:19 Profit Ratio: 3.00
Jul 20, 24, 14:12:19 Profit Factor: 3.00
Jul 20, 24, 14:12:19 CPC Index: 1.00
Jul 20, 24, 14:12:19 Tail Ratio: 2.00
Jul 20, 24, 14:12:19 Common Sense Ratio: 2.00
Jul 20, 24, 14:12:19 Outlier Win Ratio: 3.00
Jul 20, 24, 14:12:19 Outlier Loss Ratio: 1.00
Jul 20, 24, 14:12:19 Profit Margin Ratio: 54.00
Jul 20, 24, 14:12:19 Biggest Win: 100.00000000
Jul 20, 24, 14:12:19 Biggest Loss: -100.00000000
Jul 20, 24, 14:12:19 Highest Point in PNL: 5.00000000
Jul 20, 24, 14:12:19 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/USDT 226 days +27485.6578% Copy Bot
SMMDH v3.3 XRP/USD 252 days +26583.0422% Copy Bot
SMMD v2.51 BTC/USDT 109 days +24724.54% Copy Bot
SMMD v2.51 DOGE/USD 373 days +11015.6189% Copy Bot
SMMD v2.51 ADA/USD 358 days +8462.9897% Copy Bot
SMMD v2.51 BTC/USD 373 days +6610.1058% Copy Bot
Haasonline Original - Market Making Bot BTC/USDT 389 days +6568.3471% Copy Bot
SMMD v2.51 XRP/USD 358 days +5167.2962% Copy Bot
SMMDH v3.3 XRP/USDT 204 days +4929.8847% Copy Bot
SMMDH v3.3 BTC/USDT 252 days +3854.1778% Copy Bot
SMMDH v3.3 BTC/USD 253 days +3518.8603% Copy Bot
SMMDH v3.3 BTC/USD 198 days +1736.6748% Copy Bot
SMMD v2.51 XRP/USDT 373 days +1429.1998% Copy Bot
Haasonline Original - Flash Crash Bot XRP/USDT 390 days +1037.2405% Copy Bot
Haasonline Original - Flash Crash Bot XRP/USDT 284 days +969.5045% Copy Bot
Haasonline Original - Flash Crash Bot XRP/USDT 289 days +967.9399% Copy Bot
Haasonline Original - Market Making Bot XRP/USDT 390 days +848.1271% Copy Bot
SMMD v2.51 ETH/USD 373 days +843.6108% Copy Bot
[pshaiBot] Simple Market Maker v2.6-c XRP/USDT 260 days +825.1154% Copy Bot
Haasonline Original - Scalper Bot XRP/USDT 390 days +579.3558% Copy Bot
Spot-SMMDv2 LINK/USDT 223 days +560.2512% Copy Bot
Haasonline Original - Flash Crash Bot DOGE/USDT 390 days +530.6804% Copy Bot
[pshaiBot] Some Trend Trader (STT) DOGE/USDT 378 days +468.6787% Copy Bot
Haasonline Original - Flash Crash Bot ADA/USDT 390 days +468.2344% Copy Bot
[pshaiBot] Some Trend Trader (STT) ZEN/USDT 376 days +449.3917% Copy Bot
[pshaiBot] Simple Market Maker v2.6-c ARK/USDT 260 days +402.5692% Copy Bot
Spot-SMMDv2 BTC/USDT 223 days +358.5875% Copy Bot
Haasonline Original - Flash Crash Bot XBT/USDT 386 days +343.8214% Copy Bot
Spot-SMMDv2 XRP/USDT 223 days +322.2555% Copy Bot
Spot-SMMDv2 B2M/USDT 182 days +282.0773% Copy Bot
Haasonline Original - Flash Crash Bot ETH/USDT 390 days +266.0818% Copy Bot
Spot-SMMDv2 ETH/USDT 218 days +212.7575% Copy Bot
Spot-SMMDv2 BTC/USDT 223 days +195.7992% Copy Bot
Haasonline Original - Flash Crash Bot BTC/USDT 390 days +190.0414% Copy Bot
[pshaiBot] Some Trend Trader (STT) BNB/USDT 379 days +168.6051% Copy Bot
Spot-SMMDv2 ETH/USDT 223 days +147.6255% Copy Bot
Haasonline Original - Flash Crash Bot ADA/USDT 289 days +113.2466% Copy Bot
HFCBv1.0 BTC/USDT 21 days +96.3779% Copy Bot
Spot-SMMDv2 BTC/USDT 182 days +79.4004% Copy Bot
Haasonline Original - Flash Crash Bot ADA/USDT 284 days +65.7307% Copy Bot
HFCBv1.0 BTC/USDT 21 days +51.0543% Copy Bot
HFCBv1.0 BTC/USDT 21 days +47.522% Copy Bot
HFCBv1.0 BTC/USD 21 days +46.0131% Copy Bot
HFCBv1.0 BTC/USDT 21 days +45.6967% Copy Bot
HFCBv1.0 BTC/USDT 21 days +43.4741% Copy Bot
HFCBv1.0 BTC/USDT 21 days +42.5365% Copy Bot
HFCBv1.0 BTC/USDT 21 days +39.9568% Copy Bot
HFCBv1.0 BTC/USDT 21 days +39.2062% Copy Bot
HFCBv1.0 BTC/USDT 21 days +35.2615% Copy Bot
Enhanced RSI bot (spot) BTC/USDT 394 days +32.4853% Copy Bot
HFCBv1.0 XBT/USDT 21 days +32.016% Copy Bot
HFCBv1.0 BTC/USDT 21 days +26.9432% Copy Bot
Spot-SMMDv2 BTC/USDT 218 days +22.2661% Copy Bot
Spot-SMMDv2 LINK/USDT 218 days +19.9682% Copy Bot
Spot-SMMDv2 XRP/USDT 218 days +16.2504% Copy Bot
Haasonline Original - Flash Crash Bot BTC/USDT 284 days +14.2077% Copy Bot
Haasonline Original - Intelli Alice Bot BTC/USDT 394 days +14.0174% Copy Bot
HFCBv1.0 BTC/USDT 21 days +10.0747% Copy Bot
Enhanced RSI bot (spot) ETH/USDT 394 days +4.7062% 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.