目录
https://github.com/CoinAlpha/hummingbot-rfox.git
The “twap_plus” strategy highly involves the Relative Strength Indicator (RSI) trend of a certain trading pair to execute trades. This way users can setup bots to match whenever the RSI levels are theoretically giving “Buy” signals or “Sell” signals and decide potential entry and exit points.
(RSI) is a momentum indicator that evaluates overbought or oversold conditions by measuring the magnitude of recent price changes for various assets. It is displayed as an oscillator (a line graph that moves between two extremes) and can have a reading from 0 to 100.
Traditional interpretation and usage of the RSI are:
For more info about RSI click the link below.
The RSI Graph is available as a custom view in most exchanges. A view on how it looks like is seen below.
The table below reflects the config settings that comes after strategy; connector and trading_pair setup.
Key | Default Value | Other Values | On Select | Order | Prompt |
---|---|---|---|---|---|
price_source | current market | current_marke external_market or custom_api | N/A | 1 | Which price source to use? |
external_exchange | add connector | ||||
external_trading_pair | trading pair | ||||
price_custom_api | - | ||||
custom_api_interval | URL | Enter external pricing API URL | |||
price_type | |||||
price_indicators | RSI | Enter the indicator based on which order sizes are adjusted (RSI) | |||
indicator_candle | 1m | 1s;1m;5m;10m;30m;1h;1d | 3 | Enter the size of candles used for indicator calculatio | |
rsi_length | 14 | 4 | What history length should be used in the RSI? | ||
order_side | buy | buy/sell | 5 | What operation will be executed? | |
target_asset_amount | 1 | 6 | What is the total amount of "trading_pair" to be traded? | ||
order_amount_min | 1 | 7 | What is the minimum amount of each individual order (denominated in the base as set)? | ||
order_amount_max | 1 | 8 | What is the maximum amount of each individual order (denominated in the base as set)? | ||
order_spreads | - | 9 | What is the size of the limit orders from the price_type (denominated as a% of the asset price)? | ||
order_level | 1 | ||||
order_level_amount | 0 | ||||
order_level_spread | 0 | ||||
price_floor | None | ||||
price_ceiling | None | ||||
is_delayed_start_execution | No | Yes/No | 10 | Do you want to specify a start time for the execution? | |
is_time_span_execution | (MM:DD:YYY - HH:MM:SS) | ||||
end_time | No | Yes/No | 11 | Do you want to specify an end time for the execution? | |
order_delay_time | (MM:DD:YYY - HH:MM:SS) | ||||
cancel_order_wait_time | 60 | 12 | How long do you want to wait before cancelling your limit order (in seconds)? |
price_source - Gets where the price of the subject asset/token is from
price_indicator - RSI based trading
indicator_candle - Similar to the Timeframe of the desired trade view on an exchange trading block
rsi_length - RSI level of entry (14 as the default undervalued Buy signal)
order_side - Select which action to execute (buy/sell)
target_asset_amount - Amount of set asset/token to be traded.
order_amount_min - Set minimum base asset/token order.
order_amount_max - Set maximum base asset/token order.
is_delayed_start_execution - Activate the option of starting trade.
is_time_span_execution - Set time of start if is_delayed_start_execution = "yes"
end_time - Activate the option of ending trade.
order_delay_time - Set time of end if end_time = "yes”
cancel_order_wait_time - ****Activate the option of ending trade.
See details below:
When Started
With the configuration above:
The twap_plus strategy’s ultimate goal is to fill the asset value indicated in the target_asset_amount. In order to do this, once the bot has started, it will create either a bid or an ask order based on the value assigned on the order_side which will be buying or selling. If buying, make sure to have enough Quote currency. On the other hand, to sell, make sure Base currency is available. The asset order volume to be placed will use the values indicated on the order_amount_min and order_amount_max. Remember that the bot uses the Base currency as the indicator on all order fields. And the frequency of the order will be depending on the graph of the rsi_length and selected timeframe in the indicator_candle_size. The bot will stop making orders when the target_asset_amount has been reached or if: (x + y) > target_asset_amount. Where:
For more info about RFOX see link below:
免责声明:位于https://hummingbot.io、https://docs.hummingbot.io、https://miners.hummingbot.io的网站(统称为“网站”)是属于CoinAlpha, Inc.(“公司”、“我们”和“我们的”)的受版权保护的作品。本网站的某些功能可能受附加指南、条款或规则的约束,这些指南、条款或规则将发布在与此类功能相关的网站上。所有此类附加条款、指南和规则均通过引用纳入本条款。这些使用条款(以下简称“条款”)规定了具有法律约束力的条款和条件,以规范您对本网站的使用。访问或使用本网站,即表示贵方接受这些条款(代表贵方自己或贵方所代表的实体),并且贵方声明并保证贵方有权利、权限和能力签订这些条款(代表贵方自己或贵方所代表的实体)。如果贵方未满18岁,则不得访问、使用本网站或接受这些条款。如果贵方不同意这些条款的所有规定,请勿访问和/或使用本网站。