Stepgain
The Stepgain method tracks market prices and trends, and executes trades when the trend reverses. When a downtrend switches to an uptrend, Stepgain will buy, allowing you to purchase shortly after the price has hit its bottom. Conversely, when an uptrend becomes a downtrend, Stepgain will sell.
To determine when to buy with Stepgain, Gunbot uses EMA (Exponential Moving Average). After a set percentage below the lowest EMA is reached, Gunbot will start looking for a trend reversal. Trends are calculated automatically by XTrend and are visible in your logs. XTrend results can vary depending on your setting for PERIOD
. Using XTrend is optional, you can also have stepgain trigger purely on price reversals above/below the configured level.
If you'd like added confirmation before executing trades, you can choose to use indicators such as RSI or Stochastic. These allow you to only buy or sell when both a trend reversal and a specific indicator level occur. This can help reduce risk and make trading decisions more reliable.
How to work with it​
Buy method conditions​
A buy order is allowed when price is within the configured buy levels, and a trend direction change is detected.
Sell method conditions​
A sell order is allowed when price is within the configured sell levels, and a trend direction change is detected. Additionally the gain %
target must be reached.
Trading example​
Example of how trading with the stepgain strategy can perform. Details and settings
The infographic below describes what triggers trades with this strategy.
In this example both BUYLVL and SELLLVL would be set to 2. A change of price movement direction is assumed a trend reversal in this example, in reality not every change of price direction will be considered a trend reversal because the strength of the trend is considered as well.
Stepgain settings​
Buy settings​
Label | Config Parameter | Default Value | Detailed Description |
---|---|---|---|
Buy enabled | BUY_ENABLED | true | When enabled, this setting allows the strategy to initiate buy or long orders. |
Stepgain buy lvl | BUYLVL | 1 | Selects the step level for initiating a buy. You can choose from level 1, 2, or 3 depending on your strategy needs. |
Stepgain buy lvl 1 | BUYLVL1 | 0.3 | Defines the first level percentage below the lowest Exponential Moving Average (EMA) to place a buy order. T |
Stepgain buy lvl 2 | BUYLVL2 | 1 | Defines the second level percentage below the lowest EMA for buying. |
Stepgain buy lvl 3 | BUYLVL3 | 2 | This setting defines the third level percentage below the lowest EMA where you might consider placing a buy order. |
Sell settings​
Label | Config Parameter | Default Value | Detailed Description |
---|---|---|---|
Sell enabled | SELL_ENABLED | true | When enabled, this setting allows the strategy to execute sell or short orders. |
Stepgain sell lvl | SELLLVL | 1 | Selects the step level for selling. Options available are level 1, 2, or 3, allowing you to customize your selling strategy based on your risk preference. |
Stepgain sell lvl 1 | SELLLVL1 | 0.3 | Defines the first level percentage above the break-even point to initiate a sell order. |
Stepgain sell lvl 2 | SELLLVL2 | 1 | Defines the second level percentage above the break-even for selling. |
Stepgain sell lvl 3 | SELLLVL3 | 2 | Specifies the third level percentage above the break-even point for selling. |
Count sell | COUNT_SELL | 9999 | Disable trading on a specific pair after a set number of sell orders have been executed. This number can range from 1 to 999999, enabling strategic exits from trading pairs after certain activity levels. |
Indicators​
Label | Config Parameter | Default Value | Detailed Description |
---|---|---|---|
Period | PERIOD | 15 | The period setting determines the "size" of candlesticks used in calculating indicators. Ensure the selected value, which represents minutes, is supported by your exchange. |
Medium EMA | EMA1 | 16 | Defines the number of candlesticks used to calculate the medium Exponential Moving Average (EMA), helping to analyze market trends over a specified number of periods. |
Fast EMA | EMA2 | 8 | Defines the number of candlesticks used to calculate the fast EMA, providing quicker insights into market movements for more reactive trading decisions. |
Overview of effects on different order types​
Config Parameter | Affected Order Types | Not Affected Order Types |
---|---|---|
Buy Enabled | Strategy buy, DCA buy, RT buy, RT buyback | Strategy sell, Stop limit, Close, RT sell |
Stepgain Buy Lvl | Strategy buy | Strategy sell, Stop limit, Close, RT sell, DCA buy, RT buy, RT buyback |
Stepgain Buy Lvl 1 | Strategy buy | Strategy sell, Stop limit, Close, RT sell, DCA buy, RT buy, RT buyback |
Stepgain Buy Lvl 2 | Strategy buy | Strategy sell, Stop limit, Close, RT sell, DCA buy, RT buy, RT buyback |
Stepgain Buy Lvl 3 | Strategy buy | Strategy sell, Stop limit, Close, RT sell, DCA buy, RT buy, RT buyback |
Sell Enabled | Strategy sell, Stop limit, RT sell | Strategy buy, RT buy, RT buyback, Close, DCA buy |
Stepgain Sell Lvl | Strategy sell | Strategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit |
Stepgain Sell Lvl 1 | Strategy sell | Strategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit |
Stepgain Sell Lvl 2 | Strategy sell | Strategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit |
Stepgain Sell Lvl 3 | Strategy sell | Strategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit |
Period | Strategy sell, Strategy buy, DCA buy (trigger) | RT buy, RT buyback, RT sell, Close, Stop limit |
Slow EMA | Strategy buy | RT buy, RT buyback, RT sell, Close, Stop limit, Strategy sell, DCA buy |
Medium EMA | Strategy buy | RT buy, RT buyback, RT sell, Close, Stop limit, Strategy sell, DCA buy |
XTrend Enabled | Strategy buy | RT buy, RT buyback, RT sell, Close, Stop limit, Strategy sell, DCA buy |