Coinrule/coinrule_help_center huggingface dataset:
What is an "Aggregator" in DeFi?


FAQ: What is an "Aggregator" in DeFi?

An Aggregator is a service that connects to multiple decentralized exchanges (DEXs) to find the best prices and lowest fees for your trades. Aggregators ensure that you get the most efficient trade execution across different liquidity pools.

For example, if "Aggregator: LI.FI" is displayed, it means the trade execution is being routed through the LI.FI protocol, which aggregates liquidity from various sources to give you the best trade outcome.
What does "Triggered" refer to in rule summary?


FAQ: What does "Triggered" refer to in rule summary?

Triggered refers to the number of times specific actions (buying, selling, or notifying) have been triggered.

For example: "Triggered: 69/72 times" means your rule has triggered 69 actions out of a total of 72 opportunities.

This metric helps you verify whether the rule or strategy is functioning as expected and completing all intended actions with errors.
What Is Best Performing Coin?


What Is Best Performing Coin?

Best performing coin is the coin that had the highest price increase in the most recent 1 Day candle compared to the previous 1 Day candle as per TradingView. This is by definition always 1 specific coin. 24h later this will most likely be another coin.

​Time Zone Considerations

One important thing to note is that, when discussing best performing coin, especially in the context of the most recent 1 Day candle, it's crucial to understand that Candles are time zone independent. This means that regardless of where you are in the world, the data represented by a 1 Day candle remains consistent, ensuring a uniform frame of reference for traders globally.

Conclusion

The best performing coin provides a snapshot of the market's current momentum and direction. While it is a useful metric, it's vital for traders to use it in conjunction with other tools and research to make informed decisions.

Build your strategy on Coinrule to maximize your profits and returns!
Catch The Bottom Strategy


Introducing The 'Catching The Bottom' Template

This script utilises the RSI and EMA indicators to enter and close the trade.

​

The relative strength index ( RSI ) is a momentum indicator used in technical analysis . RSI measures the speed and magnitude of a security's recent price changes to evaluate overvalued or undervalued conditions in the price of that security. The RSI is displayed as an oscillator (a line graph) on a scale of zero to 100. The RSI can do more than point to overbought and oversold securities. It can also indicate securities that may be primed for a trend reversal or corrective pullback in price. It can signal when to buy and sell. Traditionally, an RSI reading of 70 or above indicates an overbought situation. A reading of 30 or below indicates an oversold condition.

​

An exponential moving average ( EMA ) is a type of moving average (MA) that places a greater weight and significance on the most recent data points. The exponential moving average is also referred to as the exponentially weighted moving average . An exponentially weighted moving average reacts more significantly to recent price changes than a simple moving average simple moving average ( SMA ), which applies an equal weight to all observations in the period.

​

The strategy enters and exits the trade based on the following conditions.

​

ENTRY

​RSI has a decrease of 3.

​RSI <40.

EMA100 has crossed above the EMA50.

​

EXIT

​RSI is greater than 65.

EMA9 has crossed above EMA50.

​

This strategy is back tested from 1 April 2022 to simulate how the strategy would work in a bear market and provides good returns.

​

Pairs that produce very strong results include ETH on the 5m timeframe, BNB on 5m timeframe, XRP on the 45m timeframe, MATIC on the 30m timeframe and MATIC on the 2H timeframe.

​

The strategy assumes each order is using 30% of the available coins to make the results more realistic and to simulate you only ran this strategy on 30% of your holdings. A trading fee of 0.1% is also taken into account and is aligned to the base fee applied on Binance.

​

​Pro tip: The 2-Hour time frame has proven to return the best results on average.

This strategy made 100% net profit on BNB/USDT on the 2-Hour timeframe from January 2022 - November 2022.

​
Uptrend Swing Trading

This rule acts on sharp uptrend increases and sells using a dynamic exit to maximise profits.

Introducing The 'Uptrend Swing' Trading Template

The Relative Strength Index is one of the most commonly used technical indicators when trading. It can give an indication of whether a coin is over or undervalued in relation to the previous 14 candles in the selected timeframe.

Moving averages can provide a signal of the trend of a coin. They can also act as support and resistance with price breaking above a significant moving average suggesting the start of an uptrend. If price breaks below it can signal the start of a downtrend. A short-term moving average crossing above a long-term moving average signals the start of a potential uptrend. The inverse suggests a downtrend is beginning.

Build This Rule on Coinrule!

Entry

Condition 1

The first condition for this rule utilises the RS, and will be met once it is lower than 70 in a 5-minute timeframe. This ensures the rule is not buying coins that could be considered overvalued over the past 14-periods.

Condition 2

The second condition also utilises the RSI and is met once the RSI increases by 5 within a 5-minute period. This signals that momentum is increasing to the upside and buyers are showcasing strength.

Condition 3

The third and final condition for the entry is met once the moving average (MA) 9 crosses above the MA 50 in a 5-minute timeframe. The shorter-term moving average (MA 9) crossing above the longer-term moving average (MA 50) signals that an uptrend is occurring and price appreciation could continue with the coin's momentum increasing (As indicated by the RSI).

Exit

This rule uses a dynamic stop loss and take profit for the exit, leading to the rule holding trades for an extended period of time to maximise exposure to extensive moves to the upside.

Condition 1

The first sell condition also uses the MA 9 and MA 50 in a 5-minute timeframe. Once the MA 9 crosses below the MA 50 the condition will be met. This crossing could suggest the start of a downtrend signal that price will continue declining - leading to a potentially good time to exit the trade.

Condition 2

The second sell condition uses RSI and is met once it is greater than 50 - signalling price is still above the 50 level, also known as the "fair value level" for the selected timeframe. This will prevent the rule from selling on a dip and to increase the probability of it selling when the coin is within "Overvalued territory" on the RSI.

Condition 3

The third condition uses the MA 100, with the rule only selling if the MA 100 is lower than price in a 5-minute timeframe. This will also prevent the rule from selling when the coin is on a downtrend and increase the likelihood of the coin selling when it is in profit.

Backtesting Results

When backtested against MATIC / USDT from May 1st 2022 to August 15th 2022, the rule achieved a net profit of 54.4% with a 83.3% win ratio.
Maximized Scalping On Trend

This strategy uses Moving Averages and the RSI to scalp trades on coins during uptrends.

Introducing The 'Maximized Scalping On Trend' Template"

The trend is your friend." This is one of the most famous and valuable teachings that experienced traders can give to newbies. There is a reason for that.

No matter your views about where the price moves, what matters is where the price heads to. The market is always right, and ultimately it decides who gets the profit and who has to take a loss.

The purpose of this strategy is to spot when it's the most suitable time to buy an asset profiting from a potential short-term price increase. The strategy tends to open trades frequently, closing them on average in one and a half days.

ENTRY

The buy order is placed on assets that present strong momentum when it's more likely that it is about to increase further in the short term.

To capture momentum on the asset, the rule strategy requires:

the MA50 greater than the MA100

the RSI greater than 50

The rule, then, places the order when

The price crosses below the MA9.

EXIT

This strategy comes with a stop loss and a take profit which adapt dynamically to market conditions.

The trade is closed in profit when the RSI is greater than 70, as the trend could experience a pull-back.

Alternatively, the trade is closed when the RSI is lower than 30, being this a sign of weakening of the trend.

Create the strategy with Coinrule​

You will find the strategy in the template library, or you can build it yourself step-by-step.

Pro tip: The 1-hour time frame has proven to return the best results on average. The strategy can also work well in the 15-min time frame if you want to increase the trades' frequency.

​This strategy made 60.53% net profit on BNB/USDT on the 1Hour timeframe from January 2022 - November 2022.

Backtest the strategy on Tradingview

You can backtest this strategy using this trading script published on Tradingview. You can test the results on historical data, selecting the coin of your choice, and adjusting the parameters to fit even better your needs.

This is a guide to learn how to backtest strategies on Tradingview.

Try out the Maximized Scalping on Trend Strategy now on Coinrule to maximize your profits and returns!
Ride The Trend

Catch at any time the opportunity of buying the coins with the most powerful uptrend on the market.

Introducing the 'Ride The Trend' Template

The Relative-Strength Index (RSI) is a technical indicator that measures the magnitude of a coin's price moves. High values indicate that the price is going up quickly. Lower values, on the contrary, signal that the price is dropping.

Cryptocurrencies can experience sudden and sharp uptrends, and the RSI is a useful tool to find them. The rule spots the coins on a strong trend as their price could increase even more.

​

How it works

In theory, an RSI above 70 means that the coin's price already increased significantly and, thus, it could be a good time for selling. On the other hand, the RSI of cryptocurrencies may remain at high values for an extended period.

In the example below, the RSI of Waves stays above 60, and often above 70, for almost one month. Buying and selling on the way up would have provided excellent opportunities.

Pro-tip: you can run this rule in every market condition. In times of market downtrend, rarely the RSI will be at high values, so that the strategy will wait for more convenient market conditions before opening new trades.

Avoid pump-and-dumps

The RSI must be above 70 in a time frame of 4-hours (i.e., looking at the 4-hr chart) to open the position. That means that the strategy buys coins that are on solid uptrends, avoiding short-term pump-and-dumps, where the risk of buying the top is very high.

The best time frame for this strategy is the 4-hr. Other time frames are not advisable.

​

Close your trades

The strategy sells the coins if the price increases 6% from the entry price. Alternatively, it closes the position if the RSI drops below 55, indicating a possible weakening of the trend.

​

The rule can only buy one coin at a time with the default setup. If you want to open multiple trades simultaneously, you can use the Any Time Operator.

​

​This strategy made 57.89% net profit on ETH/USDT on the 4Hour timeframe from January 2022 - November 2022.

​

Backtest the strategy on Tradingview

You can backtest this strategy using this trading script published on Tradingview. You can test the results on historical data, selecting the coin of your choice, and adjusting the parameters to fit even better your needs.

This is a guide to learn how to backtest strategies on Tradingview.

​

​Try out the Ride the Trend Strategy now on Coinrule to maximize your profits and returns!

​
Short Selling MA Cross

This rule utilises moving averages to short coins that are in a downtrend.

Introducing The 'Short Selling MA Cross' Template

This simple, but effective rule focuses on selling and buying back coins to profit from bearish market conditions. It also uses a moving average as trend protection from trying to sell when the price direction reverses and market conditions become bullish.

Build This Rule on Coinrule!

Entry

Condition 1

The first condition uses the Moving Average (MA) 9 and Moving Average (MA) 50, both in the 1-hour timeframe. Once the MA 9 crosses below the MA 50 - signalling that there has been a recent decline in the price of the asset and the start of a downtrend.

Condition 2

The second condition features the MA 100, in the 1-hour timeframe, having to be greater than price. This condition acts as trend protection and prevents the rule from selling when prices are increasing and the asset has regained strength as it surpasses the 100-hour moving average.

Read this article for more information on trend protection and trading in a bear market.

Exit

The exit for this rule uses a fixed stop loss and take profit.

Take Profit

The take-profit is set to trigger a buy when price decreases by 8% from the price at which the rule sold.

Stop Loss

The stop-loss is set to trigger a buy once price increases by 16% from price at which the rule sold.

Backtesting Results

The risk:reward of this rule is 0.5. This means that for the rule to break even, for every trade that the rule hits the stop loss, the rule will have to have two trades execute at the take profit. This results in the rule requiring a win ratio of at least 66.6% for the rule to be profitable.

When backtested against Solana / USDT from May 1st 2022 to August 12th 2022, the rule achieved a net profit of 73.66% with a 90% win ratio.

Try out the Short Selling MA Cross Strategy now on Coinrule to maximize your profits and returns!
Build Your Condition Block

Learn how to use AND and OR in the conditions blocks to fully customise your triggers.

How To Build Your Condition Block

Flexibility is a key asset for trading. Having the possibility of customising your conditions allows your automated trading strategy to fit better your needs. That also allows you to experiment with more strategy combinations to adjust them to all possible market conditions.

Customise your conditions

On a Trader plan, you can add up to five different conditions per block so that the strategy will fire the orders based on complex combinations. The more precise is the definition of the trigger, the more effective the trading strategy will be!

​How to set up your conditions?

You can add AND or OR between conditions to build your customised signal. You can combine two or more conditions using the AND if you want them to be met simultaneously to trigger the orders. On the other hand, use the OR to create an alternative scenario.

How it works

The system checks the conditions sequentially based on their order and then evaluates if overall the block is True or False.

These are the possible outcomes. The result can only be True or False. Thus, only the following combinations apply:

False AND False = False

False AND True = False

True AND False = False

True AND True = True

False OR False = False

False OR True = True

True OR False = True

True OR True = True

Keeping that in mind, the logic applies across multiple conditions in the following way:

Condition_1 AND / OR Condition_2 = Result_1

Result_1 AND / OR Condition_3 = Result_2

Result_2 AND / OR Condition_4 = Result_3

Result_3 AND / OR Condition_4 = Result_Final

Some Examples

Example 1

Con_1 (True) OR Con_2 (False) = Result_1 is True

Result_1 (True) AND Con_3 (True) = Result_2 is True

Result_2 (True) OR Con_4 (False) = Result_3 is True

Result_3 (True) AND Con_5 (True)= The Final Result is True > The condition is met.

Example 2

Con_1 (False) OR Con_2 (True)= Result_1 is True

Result_1 (True) AND Con_3 (False) = Result_2 is False

Result_2 (False) OR Con_4 (True) = Result_3 is True

Result_3 & Con_3 (False)= The Final Result is False > The condition is NOT met.
KuCoin Futures API Setup

A step-by-step guide on how to connect your KuCoin Futures account API keys to your Coinrule account.

KuCoin Futures API Setup

To connect your Coinrule account to KuCoin Futures, you will need to create an API Key.

1. First, you will need to sign in or create an account with KuCoin. You will also need to set up Two-Factor Authentication (2FA). Once signed in and on the homepage, hover over the profile icon on the top right of the page and select “Futures API” from the drop-down menu.

Click here for step 1 of the video tutorial.

2. Next, select “Create API” then name your API and set an API Passphrase. Make sure to keep a note of this.

Once you’ve named your API, set and remembered the Passphrase, enable the “Trade” permission. Next, set IP Restriction to “No” and Period of Validity to “Permanent”.

Click here for step 2 of the video tutorial.

3. Next, follow the security verification instructions and once completed you will then be provided with your API Key and API Secret Key.

Finally, you have to copy/paste both your PassPhrase, API Key and API Secret Key in the Exchanges section of your Coinrule account with KuCoin Futures selected.

Click here for step 3 of the video tutorial.

Once connected you will be able to automate your KuCoin Futures trades with Coinrule! Trade safely!

Important note: KuCoin recently changed their API policy and wallets that do not have IPs whitelisted need to be renewed every month. This is temporary and we will create an IP whitelisting process for Kucoin users soon.
What Platforms Does Coinrule Support?


What Platforms Does Coinrule Support?

Coinrule is compatible with and accessible across different devices to suit your needs. Here's what we currently support:

Mobile Devices

Android: We have a dedicated app available for download on the Google Play Store. You can easily manage your trading strategies on the go.
iOS: We have a dedicated iOS app available in the Apple App Store. You can now build your trading strategies directly on an iPhone or iPad.

Desktop

Our web app is fully accessible via any browser (e.g., Chrome, Safari, Firefox, Brave). Whether you're using a Windows PC, Mac, or Linux device, you can log in to Coinrule and manage your rules.

We aim to expand our accessibility options for iOS, so stay tuned for future updates!

Happy trading!
Rule Persistence Logic

Breakdown of rule persistence logic to ensure rules keep running even when errors occur

Rule Persistence Logic Explained

We understand that, in the world of trading, time is of the essence. The enhanced Rule Persistence improvements are designed to ensure your trading rules keep running, even when unforeseen errors crop up. Instead of stopping entirely upon encountering an error, your rule will attempt to recover and continue to execute. ​

Our main goal is to minimize interruptions and ensure a smooth trading experience for you.

How Does Rule Persistence Logic Work?

Once an error occurs in a rule, here's a breakdown of the rule persistence logic:

1. Initial Attempt: The rule will try to execute 5 times.

2. First Pause: If the rule faces consistent errors, it will pause for 3 minutes.

3. Second Attempt: After the brief pause, the rule will retry 5 more times.

4. Second Pause: If errors persist, it will pause for 10 minutes.

5. Third Attempt: After the pause, the rule will retry 5 more times.

6. Third Pause: If still unsuccessful, it will pause for 30 minutes.

7. Fourth Attempt: It will retry another 5 times.

8. Fourth Pause: Following persistent errors, the rule will pause for 3 hours.

9. Fifth Attempt: It will retry 5 times once more.

10. Fifth Pause: If unsuccessful, the rule will pause for 24 hours.

11. Last Attempt: The rule will make its final 5 retries.

12. Final Pause: If all these attempts fail, the rule will then be paused and no retry attempts will be made.

By following this structure, we are maximizing the chances of your rule executing successfully, while also ensuring it doesn't get stuck in a continuous loop of errors.

Note on 'Any Time' Rules: We'd like to highlight that the Rule Persistence feature is not fully compatible with 'any time' rules as of now. Our team is aware of this limitation and is diligently working to introduce further improvements to address this in the near future.

The enhanced Rule Persistence feature is a testament to Coinrule's commitment to providing a seamless and reliable trading platform for its users. We're constantly listening to feedback and improving. If you have any questions or face issues, please don't hesitate to reach out to our support team via support@coinrule.com

Stay tuned for more updates and happy trading!