Strategy Creation

The No-Code Strategy Template by Tuned

Tuned

Out of 50,000 trading bots there’s a strong chance at least one is profitable. In 2021 Tuned traders tested over 200 million bots, but we noticed an obstacle.

Despite free unlimited access, Tuned’s technical nature made it difficult for those unfamiliar. Believing we could do better, we wrote a No-Code Strategy Template that lets you harness Tuned backtesting and basic strategy creation without having to code. We think it’s so easy to use that even someone new to trading can create profitable trading strategies.

Here’s how it works

The template is a collection of technical indicators that produce a buy or sell action. These are broken down into two categories, Signals and filters. It’s the type of logic that you might run manually with the help of Tradingview, but is easily automated with Tuned. There’s also the massive benefit of running thousands of parallel tests to see which iteration produces the most profit.

It’s built with the help of our code editor but don’t be dissuaded! This will make sense if you take a few minutes to continue reading. Let’s have a look at the building blocks.

Signals are a specific trigger that tells the bot to take action. In the example below, we buy right after the price crosses over our moving average (blue line), and sell right after it crosses below. 

Filters are conditions that can be true for a period of time. In the example below, because RSI remains above our custom threshold, we allow the buy signal to go through.

Given these two categories, our no-code template uses a collection of indicators that can be toggled via checkbox. If that’s all you needed to understand then happy trading! I think a deeper dive makes sense though to understand these indicators and built-in trading philosophy.

Buy Signals

This template is programmed to be picky with market entry. If you toggle more than one buy signal at a time, the trading bot will only buy if both signals are present at the same point in time. The likelihood of this could be low and you may get a low amount of trades. This can apply less to some filters.

  1. Moving Average Crossover is the interaction between a fast and slow moving average. Typically, we buy when the fast moving average crosses over the slow moving one. The idea is that by comparing the short-term trend with a long-term trend we can take advantage of positive price movements.

    Fast and Slow Moving Average Lookback: is the length of the moving average. A simple moving average with a lookback of 7 will provide the average price of the previous 7 candles (periods).
    Moving Average Type: is a dropdown that lets you select which moving average to use. Want to learn more about moving averages?
  1. Price Crossover is when we measure price against a single moving average. Like our example from before, if price crosses over the trend, we buy.
  1. MACD with Signal Crossover is a bit long to explain here. To give a tl;dr, it’s visually similar to the moving average crossover from before, but behaves differently. You’re welcome to play with the input values but if you’re new to this indicator we recommend reading about the MACD.

Buy Filters

  1. Fast Moving Average > Slow Moving Average is not to be confused with a crossover. Unlike a crossover, we are measuring if one is larger than the other. This condition can remain true for a period of time, and is not limited to one instance.

  2. RSI is above threshold tests if trading momentum is above a certain point. This requirement can remain true for a period of time and is not restricted to a specific instance.

    RSI Lookback: has a default value of 14 candles, and is the period over which momentum is measured.
    RSI Threshold: is the point that will allow a buy signal, if crossed. Enabling this filter will restrict buy signals if RSI is below the threshold.

Sell Signals

Unlike Buy Signals, any of the selected Sell Signals will trigger a close position. That’s to say, assuming a good entry, we want to capture profits or cut losses as soon as an opportunity shows itself.

  1. Moving Average Crossunder is the same idea as the buy signal. By measuring two moving averages, a long-term and short-term trend, we can try and predict if price will drop. Once the fast moving average (short-term trend) crosses below the slow moving average (long-term trend)  we sell.

  2. Price Crossunder refers to the point at which the price falls below our moving average. The strategy will sell on the candle immediately after this is detected.

  3. CCI breakout is a momentum indicator that compares current price with the average price over time. The default configuration in our template is to exit a position once we think CCI has reached a high point. For more info you can read our article about CCI.

    CCI Lookback: has a default value of 20 candles, and is the period over which the momentum oscillator is measured.
    CCI Threshold: is the bar that triggers a sell signal, if crossed. Enabling this indicator will only trigger a sell signal if CCI crosses above the threshold.



  4. Percent ATR crossunder doesn’t tell us about trend direction, only volatility. Since high values indicate high volatility, we wait for it to cross below a predetermined point. It’s a way of saying ‘we think this run up is done’, since we would have originally bought assuming a price increase. We exit our position once we feel like there’s no more upward volatility. 

    The regular ATR indicator uses absolute values, but we’ve elected to add percent-based calculations to ours. This helps accommodate large swings in price.

    ATR Lookback: is normally 14 candles.

    ATR Threshold: is the bar that triggers a sell signal, if crossed below. Enabling this indicator will only trigger a sell signal if ATR crosses below the threshold.

Great, can you tell me how to access this template?

You can find it in the community library under the name: Tuned No-Code Strategy Template

If you’ve read everything above and are wanting a bit more we welcome you to try playing with the code, or talk about it with others on our Discord server! It’s not the shortest script, but there are a lot of comments that explain how things work. And who knows, you might like Pine Script!

Happy Trading!

Disclaimer: The opinions expressed here are for general informational purposes only and are not intended to provide specific advice or recommendations for any specific security or investment product. You should never invest money that you cannot afford to lose. Before trading using complex financial products, please ensure to understand the risks involved. Past performance is no guarantee of future results.

All investing involves risk, including the possible loss of all the money you invest, and past performance does not guarantee future performance. Historical returns expected returns, and probability projections are provided for informational and illustrative purposes, and may not reflect actual future performance.

Tuned is not a broker-dealer, exchange, custodian, wallet provider, or counterparty. Investing is highly speculative and volatile. Tuned is only suitable for investors who fully understand the risk of loss and may experience large drawdowns. Investors should never invest more than they can afford to lose.