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
Nov 13, 24, 15:18:42 Bot deactivated
Nov 13, 24, 15:18:42 Backtest start date: 11/13/24 15:18:42 GTM+0
Nov 13, 24, 15:18:42 Backtest end date: 11/13/24 15:18:42 GTM+0
Nov 13, 24, 15:18:42 Backtest took: 00:00:01.6642358ms
Nov 13, 24, 15:18:42 ----- Custom Report -----
Nov 13, 24, 15:18:42 Estimated Profit: 0.01 BTC
Nov 13, 24, 15:18:42 ----- Backtest report BINANCE_BNB_BTC_ -----
Nov 13, 24, 15:18:42 Gross profits: 100.00000000 BNB
Nov 13, 24, 15:18:42 Fee costs: 10.00000000 BNB
Nov 13, 24, 15:18:42 Realized profits: 90.00000000 BNB
Nov 13, 24, 15:18:42 Return on investment: 10.0000 %
Nov 13, 24, 15:18:42 Price change: 0.0306%
Nov 13, 24, 15:18:42 Closed positions: 100x
Nov 13, 24, 15:18:42 Profitable positions: 60x (90.00%)
Nov 13, 24, 15:18:42 Losing positions: 40x (10.00%)
Nov 13, 24, 15:18:42 Average margin: 5.00000000 BNB
Nov 13, 24, 15:18:42 Average realized profits: 10.00000000 BNB
Nov 13, 24, 15:18:42 Executed orders: 100x
Nov 13, 24, 15:18:42 Completed order: 100x
Nov 13, 24, 15:18:42 Average open time: 10 seconds
Nov 13, 24, 15:18:42 ----- Performance report BINANCE_BNB_BTC_ -----
Nov 13, 24, 15:18:42 Max. DrawDown: 1.00% / 40.00000000 BNB
Nov 13, 24, 15:18:42 Sharpe Ratio: 1.00
Nov 13, 24, 15:18:42 Sortino Ratio: 1.00
Nov 13, 24, 15:18:42 Win %: 3.00 %
Nov 13, 24, 15:18:42 Profit Ratio: 3.00
Nov 13, 24, 15:18:42 Profit Factor: 3.00
Nov 13, 24, 15:18:42 CPC Index: 1.00
Nov 13, 24, 15:18:42 Tail Ratio: 2.00
Nov 13, 24, 15:18:42 Common Sense Ratio: 2.00
Nov 13, 24, 15:18:42 Outlier Win Ratio: 3.00
Nov 13, 24, 15:18:42 Outlier Loss Ratio: 1.00
Nov 13, 24, 15:18:42 Profit Margin Ratio: 54.00
Nov 13, 24, 15:18:42 Biggest Win: 100.00000000
Nov 13, 24, 15:18:42 Biggest Loss: -100.00000000
Nov 13, 24, 15:18:42 Highest Point in PNL: 5.00000000
Nov 13, 24, 15:18:42 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
SMMD v2.51 BTC/USDT 225 days +48696.0972% Copy Bot
SMMDH v3.3 XRP/USDT 93 days +44207.5532% Copy Bot
SMMDH v3.3 XRP/USD 99 days +36559.2186% Copy Bot
SMMDH v3.3 XRP/USDT 95 days +13834.2057% Copy Bot
SMMD v2.51 DOGE/USD 490 days +11604.4484% Copy Bot
SMMD v2.51 BTC/USD 490 days +9962.7785% Copy Bot
Haasonline Original - Market Making Bot BTC/USDT 506 days +9354.5711% Copy Bot
SMMDH v3.3 BTC/USD 100 days +4842.3771% Copy Bot
SMMDH v3.3 BTC/USDT 100 days +4539.9524% Copy Bot
SMMD v2.51 ADA/USD 475 days +4526.5195% Copy Bot
SMMD v2.51 XRP/USDT 490 days +3983.0555% Copy Bot
SMMD v2.51 ETH/USD 490 days +1332.6297% Copy Bot
SMMD v2.51 XRP/USD 475 days +1028.3535% Copy Bot
[pshaiBot] Some Trend Trader (STT) DOGE/USDT 495 days +895.4609% Copy Bot
[pshaiBot] Simple Market Maker v2.6-c XRP/USDT 377 days +854.4169% Copy Bot
Haasonline Original - Scalper Bot XRP/USDT 507 days +489.0186% Copy Bot
[pshaiBot] Some Trend Trader (STT) ZEN/USDT 492 days +462.1479% Copy Bot
SMMDH v3.3 BTC/USD 100 days +454.1452% Copy Bot
HFCBv1.0 BTC/USDT 138 days +363.7736% Copy Bot
[pshaiBot] Some Trend Trader (STT) BNB/USDT 495 days +318.8285% Copy Bot
HFCBv1.0 BTC/USDT 138 days +283.3727% Copy Bot
[pshaiBot] Simple Market Maker v2.6-c ARK/USDT 377 days +262.3274% Copy Bot
HFCBv1.0 BTC/USDT 138 days +261.6021% Copy Bot
HFCBv1.0 BTC/USDT 138 days +247.9065% Copy Bot
HFCBv1.0 BTC/USD 138 days +245.9078% Copy Bot
HFCBv1.0 BTC/USDT 138 days +228.0936% Copy Bot
HFCBv1.0 BTC/USDT 138 days +225.1551% Copy Bot
Haasonline Original - Market Making Bot XRP/USDT 507 days +210.8702% Copy Bot
HFCBv1.0 BTC/USDT 138 days +196.3389% Copy Bot
Haasonline Original - Scalper Bot ETH/USDT 507 days +188.8366% Copy Bot
HFCBv1.0 BTC/USDT 138 days +149.1533% Copy Bot
Haasonline Original - Flash Crash Bot ADA/USDT 406 days +113.2466% Copy Bot
HS-DCA-Spot-Hopper-v2.0 ADA/USDT 116 days +91.0003% Copy Bot
HS-DCA-Spot-Hopper-v2.0 ADA/USDT 111 days +82.9381% Copy Bot
HS-DCA-Spot-Hopper-v2.0 ADA/USDT 111 days +71.2521% Copy Bot
HS-DCA-Spot-Hopper-v2.0 SOL/USDT 114 days +63.4867% Copy Bot
HFCBv1.0 BTC/USDT 138 days +62.8524% Copy Bot
Enhanced RSI bot (spot) BTC/USDT 510 days +53.8059% Copy Bot
HS-DCA-Spot-Hopper-v2.0 XRP/USDT 116 days +53.614% Copy Bot
HS-DCA-Spot-Hopper-v2.0 XRP/USDT 111 days +53.3543% Copy Bot
HS-DCA-Spot-Hopper-v2.0 XRP/USDT 111 days +49.3522% Copy Bot
HS-DCA-Spot-Hopper-v2.0 SOL/USDT 111 days +47.2026% Copy Bot
HS-DCA-Spot-Hopper-v2.0 SOL/USDT 111 days +44.1909% Copy Bot
HS-DCA-Spot-Hopper-v2.0 XRP/USDT 111 days +24.8057% Copy Bot
HS-DCA-Spot-Hopper-v2.0 ADA/USDT 111 days +19.1529% Copy Bot
[pshaiBot] Some Trend Trader (STT) BCH/USDT 495 days +17.2681% Copy Bot
Haasonline Original - Intelli Alice Bot BTC/USDT 511 days +9.7077% 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.