Skip to main content

Support & Resistance

This method involves purchasing at the support level and offloading at the resistance level. You can modify this approach by establishing a specific range around the support and resistance levels for trading purposes.

Grasping the notion of support and resistance levels in trading is crucial for understanding this strategy better. A support level indicates a price point where an increase in demand is expected, preventing the asset's price from further decline or rebounding upwards. Conversely, a resistance level is a price point where a significant increase in supply is anticipated, resulting in the asset's price dropping or experiencing a pullback.

Technical analysis employs support and resistance levels to forecast potential price fluctuations of an asset. By pinpointing these critical levels, traders can make knowledgeable decisions about when to initiate or close trades. This strategy involves observing an asset's price changes and buying when it reaches the support level, then selling when it reaches the resistance level.

Implementing the Strategy

Conditions for Buy Method

A buy order is executed when the price is within SupRes_SPREAD % of the support level.

tip

This strategy allows for multiple purchases, which can be limited with SupRes_MAX.

Conditions for Sell Method

A sell order is executed when the price is within SupRes_SPREAD % of the resistance level and the set gain percentage has been achieved.

danger

Gain protection is optional for this strategy. Be cautious as this may lead to sell orders below your break-even point.

Working with This Strategy

There is a single setting that defines the entry point for this strategy: SupRes_SPREAD

This setting denotes a percentage (of the price) above the first support level (when buying) or below the first resistance level (when selling). As soon as the price surpasses this threshold, an order will be placed. If balance settings permit multiple orders, a buy order is placed each time the buy conditions are satisfied.

In the example below, SupRes_SPREAD is set to 0.1; the buy at line represents the target. The sell target would be 0.1% beneath the first resistance level.

It is essential to remember that support and resistance are not fixed targets. This renders the SupRes_SPREAD setting more or less a trailing range. It is crucial to establish a value suitable for the current pair and its price range: an excessively large spread may result in immediate trades.

The strategy sells when the price surpasses SupRes_SPREAD, and GAIN is achieved.

Formula

Gunbot employs the following formula to compute support and resistance levels. The number of candles used as input can be configured by the user with the SMAPERIOD setting.

P= (H + L + C) / 3 
R1= (P 2) - L
R2= P + (H - L)
S1= (P 2) - H
S2= P - (H - L)