Coinrule/coinrule_help_center huggingface dataset:
DeFi Wallets


To start launching DeFi Rules, you’ll need to connect a DeFi wallet. This connection allows Coinrule to automatically set up a secure Smart Account.

FAQ: What Are DeFi Wallets?

DeFi wallets are non-custodial wallets that give you complete control over your cryptocurrency. Unlike centralized exchange (CEX) wallets, DeFi wallets ensure that you, and only you, have access to your private keys, offering greater security and autonomy.

These wallets are essential tools for managing and interacting with decentralized finance (DeFi) platforms.

Once your DeFi wallet is connected, you can create and launch rules to automate trades on decentralized exchanges (DEXs). This setup combines the power of automation with the benefits of decentralization, giving you more control and flexibility in your trading all while ensuring that your funds remain fully under your control at all times.

FAQ: What DeFi Wallets Are Supported by Coinrule?

Coinrule supports a variety of popular DeFi wallets, including:

MetaMask
Phantom
Rabby
Trezor
Ledger
Trust Wallet
OKX Wallet
Coinbase Wallet
And many more

For the best experience, desktop users can access their wallet via the corresponding browser extension, while mobile users can use the corresponding app.

FAQ: Which Wallet Should I Use and What If I Don’t Have One?

This is really a personal decision. The most popular options are MetaMask and hardware wallets such as Trezor and Ledger. Here’s a quick glance at both types:

Hardware Wallets: Physical devices that store private keys offline for maximum security. Great for long-term storage and large amounts of crypto (e.g., Ledger, Trezor).
Software Wallets: Digital wallets stored online as mobile apps, desktop programs, or browser extensions. Convenient for frequent transactions and interacting with dApps (e.g., MetaMask, Rabby).

Choosing the right DeFi wallet depends on your needs and preferences. Consider factors like:

Security: Hardware wallets are a great choice for maximum security.
Ease of Use: Software Wallets (e.g. Metamask) are user-friendly and integrate well with many platforms.
Supported Networks: Ensure the wallet supports the blockchain networks you intend to use.

We strongly recommend conducting your own research on the different wallet options to decide which one best suits your requirements.
Binance Futures API Setup

A step-by-step guide to create your API Key and Secret Key on Binance Futures to connect your Coinrule account

Watch here: Binance Futures API Setup

To be able to connect Coinrule with your Binance Futures account, you will need to create an API Key to create your trading bot on Binance Futures.

As a first step, log in with your credentials to Binance and select your account settings on the top right and click on “API Management”.

Then, select the proper option to start the API Key creation process. Make sure you have enabled the Two-Factor Authentication (2FA) since this is required to go ahead in the process. Give a name to the new API first.

Then Binance will ask to confirm the API creation according to your security settings. Once the API is created, click on “Edit Restrictions”

For enhanced security, select Restrict access to trusted IPs only. Copy the list of IPs on Coinrule and paste it on Binance.

We strongly advise you to enable only the “Read” and the “Enable Futures” options related to the API created. Remember, Coinrule doesn’t need any withdrawal permissions, so for your own security, you don’t have to select this option.

Finally, you have to copy/paste both the API Key and the Secret Key in the Exchanges section of your Coinrule account

You are now ready to build your trading bot on Binance Futures with Coinrule!
OKX API Setup

A step-by-step guide to creating your API Key on OKX to connect your Coinrule account

OKX API Setup

To connect Coinrule account to OKX , you will need to create an API Key that will allow you to create an automated trading bot on Coinrule while trading with your OKX account.

1. As a first step, you will need to Sign in or create an account on OKX and select your account settings on the top right and click on “API”.​

Make sure you have enabled the Google Authentication (2FA) since this is required to go ahead in the process.

2. After clicking API, you will be directed to the 'APIs' page. Click 'Create API'.​

​

3. You will be required to name the new API and choose a passphrase. Kindly note down your passphrase as you will need it later.

​

4. In the Permissions box select 'Read and 'Trade'. Remember that Coinrule doesn’t need withdrawal rights for your API. There is also no need to specify any specific IP address(es). Once the required permissions have been selected, click 'confirm'.

​

5. You will be required to complete a verification step based on your chosen verification method (e.g. Google authenticator/Email/Phone verification).

6. After entering the verification code, a pop up will appear with your new API credentials.

​

7. You can now view your API key and Secret Key.

8. Finally, copy/paste both your API Key, API Secret Key and Passphrase in the Exchanges section of your Coinrule account with OKX selected then click 'connect'.

​

​

Once connected you will be able to automate your OKX trades using Coinrule! Trade safely!

​Please note that this article contains affiliate links.
How To Use ‘Greater/Lower Than Previous Value’ Of Indicator

Compare the current value of an indicator to the previous value for more flexibility with indicators

How To Use ‘Greater/Lower Than Previous Value’ Of Indicator

Coinrule has introduced a new feature 'greater/lower than previous value'. This update allows you to compare the previous value of an indicator to the current value to trigger events and ensures a more accurate signal is used for your strategy.

This feature works with Bollinger Bands (BB), Exponential Moving Average (EMA), Moving Average (MA) and Open High Low Close (OHLC) on Coinrule.

See below for an example on how to incorporate this feature into your strategies:

Example

In the example above, when using ‘EMA (12) greater than previous value of EMA (12)’ the bot compares the value of the most-recent available value of EMA (12) with the previous value of EMA (12).

If your rule features ‘EMA greater than previous value’ condition and specifies a 1-hour timeframe, the rule will use the previous 1 hour EMA close value compared to the current EMA close value as a reference point for the following 1 hour. If at any time, within this timeframe, EMA (12) is greater than the previous value of EMA (12), the rule will execute. This also applies when using “indicator lower than previous value”

Important tip: Coinrule uses only confirmed “closed candles” to trigger events and applies to indicators also. The importance of using closed candles to trigger events is to avoid intra candle volatility and to prevent the rule from triggering false signals.

We hope you enjoy the new feature. Happy trading!
Market Data for Stocks

Market data sources for stock trading on Coinrule

As Coinrule supports different stock trading platforms, it is important to understand possible price differences between the same stock offered through different trading platforms.

Stock market data may come from different underlying sources such as IEX (The Investors Exchange) and the SIP (Securities Information Processor) market data feed which is a consolidated, real-time stream of U.S. equity market datafeeds.

Why can prices differ between brokers or platforms?

Prices may vary slightly depending on which price type and market data source a broker or exchange chooses to display.

For every instrument, there are three distinct prices:

Bid – the price at which you can sell
Ask – the price at which you can buy
Last Trade (Trade Price) – the price of the most recent executed trade

If two platforms display the same price type (for example, the Ask price) and source their data from the same primary exchange, prices should be effectively identical.

However, differences can occur when:

A platform displays Last Trade Price instead of Bid or Ask

Market data is sourced from different exchanges or liquidity venues

Secondary or alternative exchanges are used, which may have slightly different liquidity and spreads

As a result, Bid, Ask, and Trade prices may not always perfectly align across platforms.

Important note

Some platforms and charts display only the Last Trade Price. This price is informational and may differ slightly from the actual Bid or Ask price at which an order is executed.

Pros

Reflects real market conditions across multiple venues
Encourages competition between exchanges and liquidity providers
Often results in tighter spreads on high-liquidity platforms

Cons

Can be confusing when comparing prices across platforms
Small price differences may appear during fast market moves
Last Trade Price can be misleading for execution expectations

Practical takeaway: Minor price differences are normal in live markets and are usually the result of different price references or data sources — not an error or malfunction.
Save Rule as Draft

How to Save a Rule as Draft in Coinrule

At Coinrule, we understand that creating the perfect trading rule can require time and refinement. To assist with this process, we've implemented the ability to save a rule as a draft. This feature allows you to start creating a rule, save your progress, and return to it later for further editing and finalization. Here’s a simple guide on how to use this valuable feature.

Benefits of Saving a Rule as Draft

Flexibility: Save your rule at any stage of creation and come back to it when you have more information or have refined your strategy.

Testing and Refinement: Allows for testing parts of your rule under different conditions before finalizing.

Convenience: Manage your time effectively by working on your rules as and when your schedule allows.

Steps to Save a Rule as Draft

Step 1: Start Creating Your Rule

Begin by logging into your Coinrule account and navigate to the “Create Rule” section. Set up the initial parameters of your rule, including triggers, conditions, and actions according to your trading strategy.

Step 2: Save as Draft

Once you have started setting up your rule but before finalizing it, look for the “Save as Draft” button typically located at the bottom of the rule create page. Name your rule and click this button to save your current progress. The rule will be stored in your drafts, which can be accessed later.

Step 3: Accessing Your Drafts

To return to your saved drafts, navigate to the Rule Dashboard section. Here you’ll find a tab or section labeled “Drafts”. Click on this to view all rules you’ve saved as drafts.

Step 4: Editing Your Draft

Select the draft rule you wish to edit by clicking on it. You will be taken back to the create rule page where you can continue to modify and build out your rule. You can save your progress as often as needed.

Step 5: Activating Your Rule

Once your rule is configured to your satisfaction, you can finalize it by clicking “Launch Rule”. This will move your rule from drafts to active rules, and it will begin operating based on the conditions you’ve set.

Conclusion

Saving a rule as a draft is a straightforward feature that enhances the functionality and user experience on Coinrule. Whether you’re a new trader testing the waters or an experienced investor tweaking complex strategies, the ability to save and revisit your trading rules can be incredibly beneficial.

Take advantage of this feature to make thoughtful, well-planned trading decisions, optimizing your strategies for the best possible outcomes.
Optimised RSI and MA Strategy


Introducing The 'Optimised RSI and MA Strategy' Template

The relative strength index is a momentum indicator used in technical analysis. It measures the speed and magnitude of a coin's recent price changes to evaluate overvalued or undervalued conditions in the price of that coin. The RSI is displayed as an oscillator (a line graph essentially) on a scale of zero to 100. When the RSI reaches oversold levels, it can provide a signal to go long. When the RSI reaches overbought levels, it can mark a good exit point or alternatively, an entry for a short position. Traditionally, an RSI reading of 70 or above indicates an overbought situation. A reading of 30 or below indicates an oversold condition.

​

A moving average (MA) calculates the average of a selected range of prices, usually closing prices, by the number of periods in that range. Essentially it is used to help smooth out price data by creating a constantly updated average price.

​This strategy is uses the RSI and MA With Trailing Stop Loss and Take Profit. The Strategy enters and closes trades when the following conditions are met:

​

Entry Conditions:

RSI is greater than 40

MA9 is greater than MA50

RSI increases by 3

​

Exit Conditions:

Price increases by 2% trailing (from buy price)

Price decreases by 2% trailing

​​

This strategy is back-tested from 1 January 2022 to simulate how the strategy would work in a bear market. The strategy 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.
Comparing Live Trading & Demo Exchange

Slippage, order book and other factors to consider

Comparing Live Trading & Demo Exchange

The demo exchange is a great way to test the logic of your strategies in a realistic environment. Coinrule's demo exchange is modelled on Binance and features the same coins.

However, at times you will find that demo exchange trades and live trades can lead to different outcomes.

While the logic behind the executions is the same both for demo and live, the main difference lies in the fact that slippage is not taken into account on the Demo exchange. This can lead to different outcomes.

Slippage refers to the difference between the expected price of a trade and the price at which the trade is actually executed. Slippage occurs when;

The requested trade size/volume is bigger than the current bids or offers available in the orderbook which causes the execution in the next bid/ask level(s). This usually occurs when trading a large amount with a low-volume trading asset.
The market moved very quickly. In this case, we can see a price of $10, decide to enter a trade, send the order, and by the time it executes (which can be in milliseconds) the price has moved to $10.1

This is not caused by a technical issue, but by the market/asset behaviour. At times the real world cannot be simulated entirely accurately.

﻿The lack of slippage generally improves the returns of Demo rules. This effect is even more evident when the rule trades less liquid coins and takes profit with very small price percentages. You can read more on the topic.

Also, at busy times, the conditions on demo rules may be checked less frequently by our system than live rules. That is intended to give priority to live trading strategies running on our servers.

​﻿

​﻿What Does This Mean For You?

Demo rules are not intended to replicate precisely the results of live trading, but they provide a useful sandbox to test out the logic of the strategies and for checking at which point the rule would open and close trades. This provides useful insight into how to optimize your rule setup.

Conclusion

In most cases, trading results are similar when comparing live trading and demo trading. When trading assets with lower liquidity, slippage can be spotted when comparing demo rules to rules on the live exchange and finding different results or missing hits between them. The reason for these gaps is (almost) always slippage, which affects live trading and does not affect trading on the demo exchange.

This is something to be generally mindful of when trading low-volume assets.

Coinrule is also continuing to look into making the Demo Exchange even more realistic in a way that would take into account the effect of slippage.
How To Use Moving Average (MA)

A guide explaining the Moving Average indicator on Coinrule!

How To Use Moving Average (MA)

What Is a Moving Average (MA)?

A moving average (MA) is a technical indicator commonly used in technical analysis. The reason for calculating the moving average is to help smooth out the price data by creating a constantly updated average price.​

By calculating the moving average, the impacts of random, short-term fluctuations on the price of a stock over a specified time frame are mitigated.

Moving averages are calculated to identify the trend direction of a coin or to determine its support and resistance levels. It is a trend-following or lagging, indicator because it is based on past prices. An upward trend in a moving average might signify an upswing in the price or momentum of a security, while a downward trend would be seen as a sign of decline.

Generally, technical analysts will use moving averages to detect whether a change in momentum is occurring for a security, such as if there is a sudden downward move in a security’s price. Other times, they will use moving averages to confirm their suspicions that a change might be underway.

​

​MA Periods available on Coinrule

We have now integrated support for 9 Moving Average (MA) periods. You can now build MA3, MA9, MA27, MA32, MA50, MA63, MA75, MA100 and MA200 into your strategies, giving you a greater degree of customizability for your rules.

​

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

​

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

​
How To Use Volume

A guide explaining the volume indicator on Coinrule

How To Use Volume on Coinrule

Volume is one of the most fundamental and widely used technical indicators in trading. It represents the total amount of an asset traded within a specific timeframe and provides insight into the strength of price movements. On Coinrule, we use candle-based volume, meaning the volume corresponds to the trading activity within each candlestick period.

Volume measures the number of units of an asset traded during a specific timeframe. It is often displayed as a histogram below price charts, with bars representing the total volume for each candlestick.​

Volume Offerings on Coinrule

How Volume Works

High volume indicates strong interest and participation in an asset, often confirming price trends. Low volume suggests weak market interest, which may lead to sideways movement or trend reversals. Volume spikes, which are sudden increases in volume, often precede significant price movements.

Volume helps in assessing trend strength. Rising volume along with increasing prices suggests a strong bullish trend, whereas rising volume with decreasing prices indicates a strong bearish trend. A trend accompanied by declining volume may be losing momentum and could be nearing reversal.

Volume is also a key factor in breakouts. When price breaks through key support or resistance levels with high volume, it is more likely to sustain the move. If a breakout occurs on low volume, the move may lack conviction and could be a false breakout. Additionally, volume divergence can signal potential trend reversals. If price makes a new high but volume is decreasing, it may indicate weakening momentum and a possible reversal. Conversely, if price makes a new low but volume is decreasing, it may suggest a potential bottom and an upcoming price increase.

Key Takeaways

Volume measures market participation and helps determine the strength of price movements.
High volume supports trends, while low volume may indicate weakness.
Volume spikes help confirm breakouts, reducing false signals.

Below is an example rule using volume while trading on Coinrule:

Experiment with volume in your rules to find the best approach for your trading style and optimize your trading strategies.

Happy Trading!
Price Increase With Multiple Coins Logic

Understand how price increase working with multiple coins

FAQ: Price Increase With Multiple Coins Logic

When using price increase by x% with multiple assets, the snapshot of coins are taken at the start of the rule and updated once the rule's conditions are met by one of the selected coins:

​

​Example 1

Rule starts at 8pm and conditions are evaluated
Current live price snapshot of referenced coins (ADADOWN, ADA, ACM) is taken
ADA Price was 0.3 USD then price increased by 1%.
ADA has met the conditions in Action 1 set above in the screenshot
The rule buys ADA
Once the rule buys ADA we update the snapshot for all the coins (ADADOWN, ADA & ACM)
The rule continues to evaluate the conditions using the updated snapshot of the coins

Formula

CurrentLivePrice snapshot is taken at the beginning of every cycle
Rule start -> Snapshot taken
Position open + close -> Snapshot taken
How To Use Multiswap

Introducing Coinrule's Quick Swap feature and a step-by-step guide on how to use

How to Use Coinrule's Multiswap On Coinrule

Multiswap is designed to give you more flexibility and efficiency in managing your cryptocurrency portfolio by allowing you to convert selected coin balances into your preferred base currency instantly.

What is Multiswap?

Multiswap is a feature that enables you to convert the balance of selected coins into a different base currency of your choice, using a market order. This can be particularly useful for portfolio rebalancing, taking advantage of market opportunities, or simply consolidating your holdings into a preferred currency.

How to Access Multiswap

You can find the Multiswap feature within your Coinrule dashboard or in your wallet modal.

Simply navigate to this section, and you'll see the option to "Multiswap" your coins for each connected exchange. See image

How Multiswap Works

Select the Coin to Swap: In the Multiswap interface, select the coin balance you wish to convert. See image
Choose Your Base Currency: Select your preferred base currency to which you want to convert your chosen coin.
Conversion Using Market Order: The conversion will be executed using a market order. This means your swap will be processed at the current market price for the coin pair, ensuring a swift execution.
Availability: It's important to note that Multiswap can only be used if a direct coin pair exists with your selected base currency. If no such pair exists, the swap cannot be completed.

5. Swap: Once you click the 'swap' icon above, a Multiswap rule will be created and you can view the status of the swaps on the Activity Log. See images

​

Benefits of Using Multiswap

Speed: Convert your cryptocurrencies quickly to react to market changes or opportunities.
Simplicity: A straightforward process that makes managing your portfolio easier.
Efficiency: Helps in rebalancing your portfolio without the need to manually search for coin pairs or execute multiple trades.

Conclusion

Multiswap is a valuable tool for Coinrule users looking to streamline their trading strategy and portfolio management. By understanding how to use this feature effectively, you can make more informed decisions and execute trades more efficiently.