Coinrule/coinrule_help_center huggingface dataset:
Kraken API Setup

A step-by-step guide to creating your API Key and Private Key on Kraken to connect your Coinrule account

Kraken API Setup

To connect your Kraken account to Coinrule, you need to create an API Key and import it into your Coinrule Exchange page.

As a first step, log in with your credentials to Kraken and click on the top right button, under “Security” you will find API Keys.

2. Once you click "create API keys" select "Go to Kraken Pro".

​

​

3. You will then be redirected to Kraken Pro to create your Spot Trading API Key. On the page, click on the “Create API Key” button.

4. Set up your API Key and make sure you grant all the required permissions as shown in the image below. All other fields are optional, so fill them only if you have the proper expertise.

5. Finally, click on the “Generate Key” button.

6. You will then be provided with an API Key and Private Key.

7. Finally, you have to copy/paste both the API Key and the Private Key in the Exchanges section of your Coinrule account and click "Connect".

You are now ready to create your automated trading strategies on Coinrule with Kraken!

Happy trading!

​​Disclaimer: Please note that this article contains affiliate links.
How To Use Exponential Moving Average (EMA)


Learn How To Use Exponential Moving Average (EMA)

As part of our new technical indicator offerings, we have now integrated support for 4 Exponential Moving Average (EMA) periods. You can now build EMA8, EMA12, EMA26 and EMA55 into your strategies, giving you a greater degree of customizability for your rules.

EMAs are a type of moving average 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. They react more significantly to recent price changes than a simple moving average, which applies an equal weight to all observations in the period. Similar to Moving Average crossings, EMA crossings can provide important signals for traders. For example, if a fast period Exponential Moving Average (e.g. EMA8) crosses above a slower period Average (e.g. MA55) it can act as a buy signal for a trader:

Intuitively, when the fast period EMA crosses below the slower period EMA, it can act as a signal to close a position or open a short position.

​Formula used to calculate EMA on Coinrule

EMA = (price - emaData[idx]) *k + emaData[idx]

​Smoothing = 2

k = smoothing divided by (length of the candle + 1)

EMA[idx] is the candles data feed we get from the exchange

Pre-built Templates using EMA can be found in our Template Library by seraching 'EMA' here:

The template library features a 'Short Selling EMA Cross with Trailing Stop Loss' strategy. This short selling strategy works best in periods of downtrends and bearish market conditions. This strategy comes with a trailing stop loss which allows the strategy to capitalise on strong gains and helps protect your profits.

We hope you enjoy the new indicator. Happy trading!
How To Use Relative Strength Index (RSI)

A guide explaining the RSI indicator on Coinrule!

How To Use Relative Strength Index (RSI)

What is the Relative Strength Index (RSI)?

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.

​

​RSI Offerings on Coinrule

​

How the Relative Strength Index (RSI) Works​

As a momentum indicator, the RSI compares a security's strength on days when prices go up to its strength on days when prices go down. Relating the result of this comparison to price action can give traders an idea of how a security may perform. The RSI, used in conjunction with other technical indicators, can help traders make better-informed trading decisions.

​

​Overbought or Oversold

Generally, when the RSI indicator crosses 30 on the RSI chart, it is a bullish sign and when it crosses 70, it is a bearish sign. Put another way, one can interpret that RSI values of 70 or above indicate that a security is becoming overbought or overvalued. It may be primed for a trend reversal or corrective price pullback. An RSI reading of 30 or below indicates an oversold or undervalued condition.

​

​KEY TAKEAWAYS

The standard number of periods used to calculate the initial RSI value is 14.
The RSI provides technical traders with signals about bullish and bearish price momentum, and it is often plotted beneath the graph of an asset’s price.
An asset is usually considered overbought when the RSI is above 70 and oversold when it is below 30.
The RSI line crossing below the overbought line or above oversold line is often seen by traders as a signal to buy or sell.

Below is an example strategy using RSI while trading on Coinrule:

Check out some of our RSI templates to get started with building this indicator into your strategies:​

Happy Trading!
How To Use Moving Average Convergence Divergence (MACD)

A guide explaining the new MACD indicator on Coinrule!

Learn How To Use Moving Average Convergence Divergence (MACD)

We have have now integrated support for the MACD (Moving Average Convergence Divergence) indicator, giving you even more customizability for your strategies!

The MACD is a trend-following momentum indicator that shows the relationship between two moving averages of an assets price. The MACD is calculated by subtracting the 26-period exponential moving average (EMA) from the 12-period EMA.

The result of that calculation is the MACD line. A nine-day EMA of the MACD called the “signal line,” is then plotted on top of the MACD line, which can function as a trigger for buy and sell signals.

Traders may buy the asset when the MACD crosses above its signal line and sell—or short—the asset when the MACD crosses below the signal line. MACD indicators can be interpreted in several ways, but the more common methods are crossovers, divergences, and rapid rises/falls. As the below example illustrates, the MACD can serve as an extremely useful signal of when to enter and exit trades.

Below is an example strategy using MACD while trading on Coinrule and other sample prebuilt strategies using MACD can be found in our Template Library:

We hope you enjoy the new indicator. Happy trading!
Coinbase (Advanced Trade) API Setup

A step-by-step guide on how to connect your Coinbase (Advanced Trade) account API keys to your Coinrule account.

Connect Exchange: Coinbase (Advanced Trade) API Setup

Coinbase has recently updated its API key creation process. As a result, connecting your Coinbase account to Coinrule now requires following a new set of steps. To ensure a seamless experience, we've prepared a comprehensive guide below outlining the updated process.

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

1. First, you will need to sign in or create an account with Coinbase. Once signed in, you can create the API keys from either the 'Coinbase' or the 'Coinbase Advance' interface.

2. Click on the dotted icon, next to 'Transfer' on the top right corner then select 'Cloud'.

3. Once you are on Cloud, you will be automatically logged in with your details. Select 'API Keys' then click 'Create API Key'

4. After clicking on 'Create API Key', select 'Trading Key.​

5. You will be required to name the new API then select 'default' for portfolio. In the permissions section, enable "View (read-only)" and "Trade (execute trades on your behalf)".

You do not need to specify any specific IP address(es). Once the required permissions have been selected, click 'create & download'.

6. You will be required to complete a verification step by providing the 2FA verification code.

7. After entering the verification code, you will be provided with your API Key and Private Key.

8. As final step, you have to copy/paste both your API Key and Private Key in the Exchanges section of your Coinrule account with Coinbase selected.

Once connected you will be able to automate your trades on Coinbase (Advanced Trade) with Coinrule! Trade safely!

​Keep in mind: Coinrule does not and will never have any withdrawal rights. That means that funds cannot be moved out from your account through these keys.

You can read more about which security measures we take here.

Disclaimer: Please note that this article contains affiliate links.
Multi Time Frame Buy Low Sell High - Short-Term

This combined contrarian and trend-following strategy buys on reversing weakness in the RSI when supported by strength in the MAs.

Introducing The 'Multi Time Frame Buy Low Sell High-Short-Term' Strategy

Sometimes, there is great value to be found in being contrarian. But you have to do it at the right time when there is enough strength behind the reversal.

No matter what you and I think about the market and where it "should" go, where it does go is all that matters. In the end, the market is always right. So, even if you want to be a contrarian, you have to wait for the right opportunity to enter a position.

The purpose of this strategy is to be contrarian on a longer timeframe and simultaneously be trend-following on a shorter timeframe. This combined, multi-timeframe strategy gives you a great signal to buy just when a longer trend is beginning to reverse.

Basically, you want to buy on reversing weakness in the longer term but only when you get sufficient signs of strength on the lower term. To achieve this, you can look at the moving averages on the shorter timeframe and to the RSI on the longer timeframe.

ENTRY

To capture the strength behind the reversal on the asset, the strategy requires that MA50 be lower than the current market price. To capture a contrarian opportunity on the asset, the rule requires that RSI be lower than 35 on a higher timeframe.

The rule places the order when both conditions above are met. The buy order only ends up being placed on assets when it seems they are leaving the "oversold" status on the RSI.

EXIT

This strategy comes with a conditional stop loss and a target take profit.

The engine only engages the stop loss if, as a whole, the rule is in a certain pre-defined loss. The rule checks the total cumulative PnL across all trades (open and closed) by that strategy, and if this is greater than the predefined amount, only then does it apply the stop loss logic. This way you can adapt the risk management of the strategy to the market, becoming more risk-averse when the market turns against you and become more risk-loving when you are trading in favourable market conditions.

This also prevents trades from being closed out too soon due to short-term volatility. The idea is that you cut your losses when the overall market conditions change but not on small fluctuations.

Alternatively, the trade is closed at a target take profit. This percentage can be adjusted to suit your needs.

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: This combination of timeframes has proven to return the best results on average, but please feel free to test out other combinations as well.
‘Within’, Closed Candles and Price

'Within x time period' calculation and closed candles

Understanding: ‘Within’, Closed Candles and Price

For the above condition to trigger, the price increase by 5% 'WITHIN 15 minutes' would have to happen within one 15 minute candle. When we evaluate price increase, we need some price reference back in time, we use the closing price of the previous candle.

Using 'Within':

The condition below evaluates if there has been a price increase of 20% within 1 day.

As reference it takes price close from the most recent closed candle (ie. yesterday)
As the second reference it uses live price, so the condition could be met at any time today.
It "resets" at the end of the current live candle (today)

Exception

The price indicator is almost always equal to live price. The only exception is when using a technical indicator crossing above/below price. In this case, we use the closing price instead because there’s no historical record in TradingView to verify if the crossover happened. Without this data, it would be difficult to confirm whether the event was accurate or not.

If you want to compare yesterday's price close with today's price close, you should use price close instead. In that case your condition would be if any coin has price close increase by 20% within 1 day (see image below).

Example 1

Rule starts at 10.03pm, price for 1 ETH is 1,000 USD
The last Close Price of the last closed 15 minutes candle (9.45pm) is 995 USD
The condition is not met. The condition looks for a 5% increase over the 995 USD of the previous closed 15 minute candle
Let's assume at 10.13pm the price of 1 ETH reaches 1,045 USD (straight from 995 USD).
The condition of a 5% increase is met and the rule immediately triggers

Example 2

Rule starts at 10.03pm, price for 1 ETH is 1,000 USD
The last Close Price of the last closed 15 minutes candle (9.45pm) is 995 USD
The condition is not met. The condition looks for a 5% increase over the 995 USD of the previous closed 15 minute candle
Let's assume it is 10.37pm, the price of 1 ETH is 1,020, the 10.15pm Close Price of the 15 minute Candle was 1,010 USD. The condition now looks for a 5% price increase against the 1,010 USD.
The rule would trigger if the price were to reach 1,060.5 USD which is a 5% increase.
Build A Rule

How to create an automated trading strategy step-by-step.

How To Build A Rule On Coinrule

Using the Coinrule interface, you can easily build rules that allow you to automate your trading!​

From the dashboard, click "Create Rule," this will take you to the rule editor.

First, select the exchange you would like the rule to run on, you can check the available wallets on the exchange once you have selected one.

​

Then, you can start specifying the conditions that you would like in place for the rule to trigger.

Once you have selected the condition it's time to define an action or multiple actions that the bot will execute once the condition is met. ​

Once you have set up the first execution, you can create a more advanced rule by adding an operator.

The operator is representative of a logical connection between different blocks within one rule. ​

There are five operators that are available to use when using Coinrule, providing versatility and fluidity to create any trading plan desired.​

Lastly, you can set the time you would like to Launch the rule, and how many times you would like the rule to be executed. It is of utmost importance to avoid overtrading by setting a limit of execution within a timeframe.

You are now ready to create your first rules!

You may find it useful to have a look at our best-performing templates.

Build your rule now on Coinrule to maximize your profits and returns!
Ichimoku Cloud and Bollinger Bands (by Coinrule)


Introducing The 'Ichimoku Cloud and Bollinger Bands (by Coinrule)' Template

The Ichimoku Cloud is a collection of technical indicators that show support and resistance levels, as well as momentum and trend direction. It does this by taking multiple averages and plotting them on a chart. It also uses these figures to compute a “cloud” that attempts to forecast where the price may find support or resistance in the future.
​
The Ichimoku Cloud was developed by Goichi Hosoda, a Japanese journalist, and published in the late 1960s. It provides more data points than the standard candlestick chart. While it seems complicated at first glance, those familiar with how to read the charts often find it easy to understand with well-defined trading signals.
​
The Ichimoku Cloud is composed of five lines or calculations, two of which comprise a cloud where the difference between the two lines is shaded in.
The lines include a nine-period average, a 26-period average, an average of those two averages, a 52-period average, and a lagging closing price line.
The cloud is a key part of the indicator. When the price is below the cloud, the trend is down. When the price is above the cloud, the trend is up.
The above trend signals are strengthened if the cloud is moving in the same direction as the price. For example, during an uptrend, the top of the cloud is moving up, or during a downtrend, the bottom of the cloud is moving down.
​
The Bollinger Bands are among the most famous and widely used indicators. A Bollinger Band is a technical analysis tool defined by a set of trendlines plotted two standard deviations (positively and negatively) away from a simple moving average ( SMA ) of a security's price, but which can be adjusted to user preferences. They can suggest when an asset is oversold or overbought in the short term, thus providing the best time for buying and selling it.
​
This strategy combines the Ichimoku Cloud with Bollinger Bands to better enter trades.
​
Long orders are placed when these basic signals are triggered.
​
Long Position:
Tenkan-Sen is above the Kijun-Sen
Chikou-Span is above the close of 26 bars ago
Close is above the Kumo Cloud
The closing price is greater than the upper standard deviation of the Bollinger Bands
​
Short Position:
Tenkan-Sen is below the Kijun-Sen
Chikou-Span is below the close of 26 bars ago
Close is below the Kumo Cloud
The upper standard deviation of the Bollinger Band is greater than the closing price
​
The script is backtested from 1 January 2022 and provides good returns.
​
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.
​
This script also works well on BTC 30m/1h, ETH 2h, MATIC 2h/30m, AVAX 1h/2h, SOL 45m timeframes
How To Use Supertrend

A guide explaining the new Supertrend indicator on Coinrule!

The Supertrend indicator is now live on Coinrule! Supertrend is a popular technical analysis tool used to identify the direction of the prevailing market trend. It is a trend-following indicator that dynamically adjusts based on price movement and volatility. Supertrend works exceptionally well in trending markets and can help traders make better-informed trading decisions.

What is Supertrend?

The Supertrend indicator is based on two key parameters:

ATR (Average True Range): Used to measure market volatility.
Multiplier: Determines the distance from the price at which the Supertrend line is plotted. Default value is 3.

The Supertrend plots a line above or below the price, depending on the market trend. If the price is above the Supertrend line, it indicates a bullish trend. Conversely, if the price is below the Supertrend line, it signifies a bearish trend.

How Supertrend Works

Supertrend uses the Average True Range (ATR) to factor in market volatility. The default multiplier on Coinrule is set to 3, which determines how sensitive the indicator is to price movements. The formula for Supertrend is as follows:

Upper Band: (High + Low) / 2 + Multiplier × ATR
Lower Band: (High + Low) / 2 - Multiplier × ATR

The Supertrend switches between the upper and lower bands based on the price closing above or below the bands, signaling a potential trend reversal.

We offer the following Supertrend periods: 5, 10, 15. These periods determine the number of candles used in calculating the ATR.

Using Supertrend on Coinrule

With Supertrend, you can create strategies that take advantage of trend signals such as:

Trend-Following Strategies:

Trigger a buy rule when the price crosses above the Supertrend line, signaling the start of an uptrend.
Example: If the price closes above the Supertrend (Period 10), initiate a buy order.

Trend Reversal Signals:

Trigger a sell rule when the price crosses below the Supertrend line, signaling the start of a downtrend.
Example: If the price closes below the Supertrend (Period 15), exit the position.

Dynamic Stop Loss:

Use the Supertrend line as a trailing stop loss.
Example: Set your stop loss dynamically at the Supertrend level to lock in profits while staying in the trade during an ongoing trend.
Alpaca Connect Guide

A step-by-step guide on how to connect Alpaca to your Coinrule account.

Connect Exchange: Alpaca Connect Guide

To connect your Coinrule account to Alpaca, you will first need to create an API Key.

1. You will need to sign in or create an account with Alpaca.

Once you've signed in, you can create your API key by navigating to "Your API Keys" box on the homepage.

​Watch video guide:

2. Once you navigate to "Your API Keys" box, click on the button to generate a new key. Once you've done this, you will be provided with an API key and Secret Key.

​Watch video guide:

3. As the final step, you have to copy/paste both your API Key and API Secret Key in the Exchanges section of your Coinrule account with Alpaca selected.

Watch video guide:

You are now ready to create your 'Notify' for stock trading rules on Coinrule with Alpaca!

Read more: Using Notify for Stock Trading on Coinrule
How To Become An Affiliate

Details on how to become an affiliate partner with Coinrule

How To Become An Affiliate

Think big and become an affiliate partner with Coinrule and grow alongside one of the leaders in the automated trading space. Join Now

What is an affiliate program?

Our affiliate program credits you for sending customers to our website. Affiliate programs like ours don’t require any fees and are easy to set up, so there’s no risk for you.

Get great value for you and your traffic

Feature Coinrule and earn like a pro. With strong conversion rates and some of the most competitive affiliate rates available, you can ensure you get rewarded for the traffic you drive. With no setup fees and low minimum payouts, you have nothing to lose.

Join an affiliate program you can trust

We value the strong relationships we have built with our partners. Without them, Coinrule wouldn’t be in the position we are today.

Maximize your potential

Through the support of our affiliate managers and other tools, we help you design and build a successful affiliate campaign. Choose from a wide range of banner and text ads that fit your site.

Visit our Coinrule Affiliate Page today!