Type/to search

Sizeblock Strategy

Cryptocurrency
Created: 2023-11-06 09:20:34
Last modified: 3 years ago
1
Follow
1777
Followers

img

Overview

The Sizeblock strategy is a trading strategy based on the percentage or tick deviation of price changes displayed in diagonal rows. It can clearly show local trends and reversal points on the chart. This is a very useful tool for tracking price direction.

Principles

The calculation is based on the percentage or tick deviation of the price movement (indicated in the "Deviation" parameter), which is displayed on the chart in the form of rows.

The row consists of the base middle line, upper and lower limits:

  • The base middle line is equal to the upper or lower limits of the previous row (if the price changes rapidly in one time interval, then the base middle line of the current row is greater than the upper limit of the previous row or less than the lower limit of the previous row by an equal number of deviations depending on the direction of price movement). At the beginning of the calculation, the base middle line is equal to the initial value of the first row.

  • The "Quantity" parameter determines the deviation for the upper or lower limits depending on the direction of the price movement, and the "U-turn" parameter determines the deviation for changing the direction of the price movement.

The rule for constructing a new row:

  • If the close ≥ the upper limit and close > open, the upper limit will gradually move up, and the lower limit will also move up but less.

  • If the low ≤ the lower limit and close < open, the lower limit will gradually move down, and the upper limit will also move down but less.

By adjusting certain deviations, you can clearly see the local trend and reversal points on the chart. This is a very useful tool for tracking price direction.

Advantages

  • Visualize price change trends and clearly identify support and resistance.

  • Diagonal lines clearly show the strength of breakouts and the range of pullbacks.

  • The slope of diagonal lines can be adjusted as needed to identify trends of different strength.

  • Can find relatively large support and resistance for breakouts.

  • Easy to see changes in price rhythm and adjust position size accordingly.

Risks

  • Diagonal lines cannot completely accurately predict subsequent price moves.

  • Need to watch for divergences in trends where diagonal lines may diverge from actual prices.

  • Cannot be used as an isolated strategy, needs to incorporate other indicators to determine the major trend.

  • Improper parameter adjustments may lead to overly frequent trading.

  • Need to beware of potential reversals during pullbacks instead of blindly chasing trends mechanically.

Can moderately reduce position sizing and refer to other indicators as auxiliary judgment within major trends.

Optimization

  • Can add position management modules to dynamically adjust positions in different trend stages.

  • Can incorporate volatility indicators to reduce positions when volatility increases.

  • Can set stop loss based on drawdown percentage to control single loss.

  • Can add filters to pause trading when price divergences occur.

  • Can divide diagonal slopes into multiple levels to identify trend changes of different strength.

By dynamically adjusting positions, setting stops and filters, can more steadily track price trends.

Summary

The Sizeblock strategy utilizes diagonal lines to intuitively display price trend changes and clearly identify support, resistance and breakout levels. But cannot solely rely on diagonal lines for judgment, need to incorporate analysis from other indicators and manage risks. This is a very valuable auxiliary tool to help traders better grasp market rhythm. Optimization can make the strategy more robust and efficient with great application potential.

Source
Pine
/*backtest
start: 2023-10-06 00:00:00
end: 2023-11-05 00:00:00
period: 2h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=5
// **********************************************************************************
// This code is invented and written by @StCogitans.
// The idea presented in this code and the rights to this code belong to @StCogitans.
Strategy parameters
Strategy parameters
Datetime
Start time
Finish time
Main
Source
Deviation
Quantity
U-turn
Positions
Direction
Swapping
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)