3Commas DCA Backtester + TBO3Commas DCA bot users rejoice! Have you ever wanted to know how your 3Commas DCA bot would have performed with slightly different settings? Or a different deal start condition? Another safety trade? We've combined the logic of 3Commas DCA Bots with TradingView's powerful strategy backtester to FINALLY help 3Commas users backtest their bot settings.
There are several things to be aware of with this strategy:
There is no bot assistant in TradingView, so you'll have to enter in your funds for bot trading in the "Initial capital" section in the Properties tab of the settings.
Even though you can use simultaneous deals with this strategy, there is no way on TradingView to collectively backtest multiple trading pairs with a single instance of this strategy.
We have created all of the available deal start conditions natively available in 3Commas DCA Bots PLUS the TBO and its trigger symbols (Open Long, Close Long, Cross Up, Breakout, Open Short, Close Short, Cross Down, Breakdown). The strategy uses ASAP (as soon as possible) by default.
3Commas DCA Bots use a built-in AND logic for the deal start conditions, meaning that deals will only start when ALL deal start conditions are true. This logic is included in the strategy, however we also provided the option to use OR logic, which will trigger a deal if any of the selected deal start conditions have been met.
Use your own indicators by selecting the "external" option under deal start conditions.
Cooldown between deals cannot use seconds as this is a limitation in TradingView (the strategy will only run on the current timeframe you are viewing), so this has been changed to "next bar."
Customize your backtests in our look back section. Select a specific start and end date for your back test results.
Use the strategy to send alerts directly to your 3Commas bots by providing your bot ID numbers and your email token (found in the JSON code when viewing your bot's overall settings).
Some things to keep in mind while using the back tester:
Enable Buy & Hold Equity to compare your bot strategy and settings.
The back tester can't guarantee future results based on past performance.
Stop losses will result in poor performance. Take advantage of DCA strategy and use safety trades.
Settings for the strategy shown are:
Bot type: Long
Take Profit type: % Quote
Base order: 25
Safety order: 50
Deal Start Conditions:
Custom - OR
TBO Breakout
15m Strong Buy
1h Strong Buy
4h Strong Buy
Target Profit: 4
Max Active Safety Trades: 2
Price deviation in %: 8
Safety order volume scale: 2
Safety order step scale: 2
Simultaneous deals per same pair: 3
Lookback:
2020-05-11
9999-01-01
移動平均線
Combo Backtest 123 Reversal & TEMA1This is combo strategies for get a cumulative signal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
This study plots the TEMA1 indicator. TEMA1 ia s triple MA (Moving Average),
and is calculated as 3*MA - (3*MA(MA)) + (MA(MA(MA)))
WARNING:
- For purpose educate only
- This script to change bars colors.
RSI + MA StrategyHello, everyone!
We have just released an innovative strategy for TradingView. It allows you to facilitate the trading process when you have to use both indicators.
This strategy is:
User-friendly
Configurable
Equipped with the combination of Relative Strength Index (RSI) and Moving Average (MA) indicators
Designed with all required functions to manage positions
Features
The RSI+MA strategy can:
Identify entry points for Long and Short positions.
Depict RSI and MA values concerning each other.
Reduce visual congestion and import usability thanks to using a combo of 2 indicators.
Allow using pivot trading. The RSI+MA strategy will enter a Long position according to the Short position conditions. And vice versa.
Note! If you want to open a Long position, the RSI line should cross MA from top to bottom. If you want to open a Short position, RSI has to cross MA from bottom to top.
Parameters
We have equipped our strategy with more than 14 additional parameters. So, you can configure the EA according to your needs!
Inputs :
Use Reverse Trade — allows swapping Long and Short positions opening conditions.
Resolution — allows you to view an indicator with data on a higher or lower timeframe on the current chart.
RSI Length
RSI Source: Open, High, Low, Close, HL2, HLC3, OHLC4
Show MA — allows you to enable or disable MA displaying.
MA Length
MA Offset
Style:
RSI — RSI indicator line color and style settings.
MA — MA indicator line color and style configuration.
Upper Band — allows customizing line style, color, and RSI upper bound value.
Lower Band — allows you to customize line style, color, and RSI lower bound value.
Background — background color setting within the RSI upper and lower borders.
Precision — number of decimals for RSI values.
Note! Try RSI+MA on your demo account first before going live.
SEMA-XSEMA-X (sema cross)
It's a simple EMA cross strategy
Rules of strategy
1. 2 EMA crossing
2. Long (Golden Cross), Short (Dead Cross)
3. Target profit, stop loss setting
You can also get big trend gains if you set a long target price.
* * *
SEMA-X (세마크로스)
간단한 EMA 교차 전략 입니다.
전략의 규칙
1. 2개의 EMA 교차
2. 매수(골든 크로스), 매도(데드 크로스)
3. 목표가, 손절가 설정
목표가를 길게 설정하면 큰 추세 이익도 얻을 수 있습니다.
SSL-Extendido-Estrategia por Neil--
DESCRIPTION
SSL Strategy with ATR, Volume, ADX, TakeProfit, Profit Cycle Indicator and Extended Trend Control.
The component is based on moving averages, its effectiveness is greater in long periods: 4H, 1D, 1S
HOW DOES IT WORK
The component works with a fluctuation band in which the price moves, it consists of an upper moving average of 10 periods and a lower moving average of 8 periods, both configurable according to the volatility of the asset. Since the band has little width, prices trigger buy and sell alerts frequently, but the component has a trend control based on SMA, EMA, VWAP, HMA that allows to take advantage of the intermediate trend of the asset and cancel the early buy alerts and sale, maximizing the development of the parabola, additionally the component allows to confirm the entries with indicators such as: ATR (valatility), Volume and ADX (direction strength), this to achieve entries with a greater probability of success.
WHY USE IT
Its configuration is simple, it requires adjusting few parameters and although it is ideal for long-term operations, it allows periodic take profit, under the philosophy of profit evaluation at present point and not profit evaluation at future point, ensuring income in less time. additionally it has a visual profit indicator, which allows you to graphically see if a money generation cycle (buy or sell) is a winner or a loser, it also allows you to operate according to the general trend of the asset, that is, you can adjust the behavior of the resource to carry out purchase and sale operations or only purchase or only sale. This component not only graphically indicates when to take profit (takeProfit), but it is responsible for closing the current operation and opening a new operation in the same direction. This is the ideal resource for automated alert-based trading against platforms such as 3Commas.
HOW TO USE IT
Press the "Indicators" option, go to the "Public Library" segment, write the name "SSL-Extendido-Estrategia por Neil", double-click on the record and it will be added to your work panel, now, all that remains is to configure its parameters and use it. By pressing the Reset Values Option, you will have a basic configuration that respects the fundamental concepts of trading and the use of multiple indicators in a single study.
--
DESCRIPCIÓN
Estrategia SSL con ATR, Volume, ADX, TakeProfit, indicador de ciclo de ganancia y control de tendencia extendida.
El componente se basa en medias moviles, su efectividad es mayor en temporalidades largas: 4H,1D,1S
COMO FUNCIONA
El componente trabaja con una banda de fluctuación en la que se mueve el precio, consta de una media movil superior de 10 periodos y una media movil inferior de 8 periodos, ambas configurables segun la volatilidad del activo. Dado que la banda tiene poca amplitud, los precios gatillan alertas de compra y venta frecuentemente, pero el componente posee un control de tendencia basado en SMA, EMA, VWAP, HMA que permite aprovechar la tendencia intermedia del activo y anular las alertas tempranas de compra y venta, maximizando el dearrollo de la parabola, adicionalmente el componente permite confirmar las entradas con indicadores como: ATR (valatilidad), Volumen y ADX (fuerza de la dirección), esto para lograr entradas con mayor probabilidad de exito.
POR QUÉ USARLO
Su configuración es simple, requiere ajustar pocos parametros y aunque es ideal para operaciones de temporalidad larga, permite efectuar take profit periodicos, bajo la filosofía de evaluación de ganancia a punto presente y no evaluación de ganancia a punto futuro, asegurando ingresos en menor tiempo, adicionalmente posee un idicador de ganancia visual, que permite ver graficamente si un ciclo de generación de dinero (compra o venta) es ganador o perdedor, tambien permite operar segun la tendencia general del activo, es decir que usted puede ajustar el comportamiento del recurso para efectuar operaciones de compra y venta o solo compra o solo venta. Este componente no solo indica gráficamente cuando tomar ganancias (takeProfit), sino que se encarga de cerrar la operación en curso y abrir una nueva operación en la misma dirección. Este es el recurso ideal para efectuar trading automatizado basado en alertas, contra plataformas como 3Commas.
COMO USARLO
Presione la opción "Indicadores", ubíquese en el segmento "Libreria Publica", escriba el nombre "SSL-Extendido-Estrategia por Neil", haga doble clic sobre el registro y lo tendrá agregado en su panel de trabajo, ahora, solo resta configurar sus parámetros y usarlo. Presionando la opción Reestablecer Valores, ya tendrá una configuración básica que respeta los conceptos fundamentales del trading y el uso de múltiple de indicadores un un solo estudio.
Simple EMA Crossing Strategy TradeMathSimple EMA Crossing strategy, based on crossover Fast exponential moving average = EMA21 and Slow exponential moving average = EMA55.
Default stop loss is 3%, but you can change it.
Default take profit is 9%, it based on stop loss.
Risk to Reward ratio is 1 to 3.
Strategy was tested on BTCUSDT 1H timeframe and works fine with these parameters.
Strategy For Ranging ConditionsThis is a Trading strategy that uses a stochastic indicator in order to place buy and sell positions while using an exponential moving average as a filter. This is great for assets that normally move within a range and helps to keep one out of reversals or out of the grasps of crashes downwards and its loss of appreciation gained due to price takers. A lot of trades are taken but they are normally exited quickly due to this strategy's nature. Again diligence will be needed to know if one should apply this to their current asset being looked at or add it to a set of different trading strategies in your arsenal. Take a deep look at the condition your asset is in whether it be ranging or trending and use this strategy as one deems fit.
RSI StrategySimple way how to use RSI and MA indicators for trading.
What we use:
• RSI
• SMA calculated by RSI (title: SMA_RSI)
• Delta of RSI and SMA_RSI (title: delta)
• SMA calculated by delta of RSI and SMA & RSI (title: SMA_RSI2)
Logic:
Upon the fact that we use the difference between two indicators that have similar values ( RSI and SMA_RSI), we get number around zero. Next, result is smoothed by calculated the SMA . This is the blue/purple line that appears on the chart - SMA_RSI2.
The trade open when SMA_RSI2 cross over the threshold. The trade close when SMA_RSI2 cross under the threshold below.
Also, the usual EMA 200 is used as a filter, which you can switch on or switch off.
5min MACD scalp by JoelThis strategy is inspired by a youtuber called Joel on Crypto. He trades this using Ema, MACD indicators and his own experience. For more information, check out his Best Crypto Scalping Strategy for the 5 Min Time Frame video. I have tried to automate this a little.
Long or Short trades are determined with a crossing of the fast Ema over the slow Ema for Long and the opposite for Short. Trades should only happen close to the crossovers. Then for Long we use the MACD indicator with a 1min TF (I had better results using the 5min) where we look for high peaks in negative values for Long and vice versa for Shorts. These should be significantly higher than other peaks (or if you will lower peaks for a Long).
Hence, the key is to detect high peaks on the histogram, which I try to achieve by checking if the last 2 values were higher than X bars back. If you want to make it even more specific, then you can turn on the additional checkbox which compares the current value to the average value of X bars back, and if it is greater than, say, 50% the value of the average (= 1.5x the average), then it's ok for the trade.
I also noticed that the strategy often bought at the top or bottom, so I added a check that compares whether the last evaluated bar is the first rising bar (for Long) or falling bar (for Short). This can be turned on or off.
Target profit 0,5% and stop loss 0,4% are based on his recommendation. The strategy is set to take only 1 trade at a time , and you can have a back tester table on.
I'm still a pine script beginner, so the strategy is certainly not perfect and could be improved. If you have any tips on how to improve it further, please let me know. I will try to update it when I have time.
I would also like to thank Joel on Crypto for sharing the strategy and @ZenAndTheArtOfTrading for his great library and code (thanks to him we have a back tester table in here), but especially his educational videos on youtube, which taught me a lot about pine script.
Monthly Returns in Strategies with Market BenchmarkThis is a modified version of this excellent script Monthly Returns in PineScript Strategues by QuantNomad
I liked and used the script but wanted to see how strategy performed vs market on each month/year. So I am sharing back.
The modification consists in adding Market or Buy & Hold performance between parenthesis inside each cell to better see how strategy performed vs market.
Also, 3 red levels and 3 green levels have been used :
For green :
1/ Light when strategy pnl > 0 but < market
2/ medium when strategy pnl > 0 and > market
3/ Dark when strategy pnl > 0 and market < 0 or pnl > market x 2
Same logic in the opposite direction for red.
The strategy provided here is just a showcase of how to use the table in pine script.
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting.
This post and the script don’t provide any financial advice.
DC Breakout Strategy | This is simplicity at its finest.As the title already describes: this is a Donchian breakout strategy. This strategy, as of now, only goes long. It goes long when the price close makes a new high and the 8 day moving average is above the 32 day moving average. The strategy exits the trade if the price breaks the atr trailing stop of * 3 or the 8 day moving average crosses below the 32 day moving average.
This is simplicity at its finest.
Swing Multi Moving Averages Crypto and Stocks StrategySimple and efficient multi moving average strategy combined with risk management and time condition.
Indicators/ Tools used
Multi selection moving average type like SMA , EMA , SMMA , VWMA , VIDYA , FRAMA , T3 and much more
Limit 1 entry max per week, entry on monday exit on sunday or risk management tp/sl.
Rules for entry:
LONG:Close of the candle cross above the moving average while the previous close was below. All of this is happening during monday session.
SHORT:Close of the candle cross below the moving average while the previous close was above. All of this is happening during monday session.
Rules for exit:
We exit either on sunday or if we reach tp/sl levels.
Observations:
I recommend use the strategy 2 types, one for long and another for short, using different parameters since long and short movements behave differently.
For example for long we can use a shorter moving average longth and a higher tp/sl while for short we can use a bigger moving average length and a smaller tp/sl
If you have any questions let me know !
Swing VWAP Crypto and Stocks StrategyThis is a strategy designed for swing trading on markets such as crypto and stocks.
Its components are:
VWAP
Time Management
Risk management
Rules for entry:
We entry only on Monday, if our close of the candle crossed above VWAP
Rules for exit
We exit always on Sunday or if we either hit the TP/SL levels.
If you have any questions let me know
Adaptive Hull MA Trend tracerBINANCE:ETHUSDT
This is the first attempt to create a "PEFECT" trend tracer.
All the Moving Averages have a lag but I personally like the Hull Moving Average for the fast response and noise reduction.
However, due to the market behavior it is hard to choose the correct length of the Moving Average that will be suitable for current situation.
This Indicator uses the Bolinger Bands Width to adapt the length of the Hull Moving Average according to the following rule:
1) if the BBW (Bolinger Bands Width) is small => length of the MA is bigger in order to filter the noise of small price changes.
2) if the BBW is bigger => MA length is smaller to track the trend more accurately.
This script also has a strategy logic with RSI for a better entry and exit as well as the minimum allowed MA length.
Further work:
1) Full adaptation of the Moving average
2) Filter bad entries
Please let me know of any suggestions for improving this indicator.
Simple EMA20 Strategy + StochasticThis is a Trend Following Strategy.
The intent of this strategy is to catchthe price as it trends higher than the 20-period EMA and sell immediately after the price closes below it.
I have implemented calculations from Stochastic to make sure the price is coming from an oversold area.
There is also a check to see if the 20-period EMA is trending higher than before.
Low-High-Trend StrategyWhen asked what the key to successful investing was, Warren Buffet famously said “buy low, sell high.” Was he onto something? Today I am sharing with the community a simple “buy low, sell high” strategy with an optional trend filter and take-profit target. I’ve found that this strategy works well in a variety of markets but has a higher tendency to out-perform buy & hold in markets that are ranging sideways.
How it works:
The strategy tracks the highest and lowest price over the last X number of bars (you select the look-back period). The highest price line is plotted in green and the lowest price line is potted in red. If the price crosses over the lowest price in the last X number of bars, then a buy signal is generated. Exit options include a take-profit % or selling when the price crosses over the highest price in the last X amount of bars. I.e. “Buy low, sell high.” An EMA is also plotted as a blue trend line, and there is an option to only trade if the price is above the EMA trend line.
Disclaimer: Open source scripts I publish in the community are largely meant to spark ideas that can be used as building blocks for part of a more robust trade management strategy. Even though this example script beats buy and hold over the back-test time-frame, I wouldn't advise using it as a stand-alone strategy without significant additions/modifications to the strategy and risk management functions. In this example the script is being used as a medium-term strategy with just 10% leverage over account equity, a $25k start balance, and back-testing 10+ years. Modifiable slippage and commissions are included in the model.
Green line = Highest price in the look-back period
Red line = Lowest price in the look-back period
Blue line = EMA Trend
RSI & SMA Strategy By DenizIntroduction
It has always been a major challenge to detect the current market price in technical analysis . There are some basic but strong indicators that help us to estimate the next market action. Relative Strength Index and Simple Moving Average indicators were used in this strategy.
This strategy aims to detect the next market action with different calculations & usages of RSI and SMA indicators.
Strategy Features
As per the result of the calculation from RSI and SMA outputs the strategy will decide to go "Long" or "Short" if the directions are changed from long to short the trade will be closed and it's opening new trade as per to the new direction.
Apart from basic "take profit" and "stop" options there is an additional closing trade option named "Long/Short Bar Count". If the trade could not reach the target in a certain period, it will look for a quit with a 0 loss.
Advantages
Informative alarm messages.
High ratio of Profitable trade numbers.
Disadvantages
Less trade count.
UT Bot v5This is an update by request, on someone elses strategy! well more of an edit, but also update from pine v4 to pine v5.
//CREDITS to HPotter for the orginal code. The guy trying to sell this as his own is a scammer lol.
//Edited and converted to @version=5 by SeaSide420 for Paperina
The UT Bot v5 is Movinging average (the MA) vs ATR (the ATR is in the form intended for use as trailing stop loss (ATR_TSL))
Entry logic:
buy = the MA > ATR_TSL and Price > ATR_TSL
sell = the MA < ATR_TSL and Price < ATR_TSL
The Moving average type can be changed in the settings:
options = "SMA", "EMA", "WMA", "HMA"]
the edits i made were:
convert to v5
Add TP and SL
Add Buy only or Sell only option
Add MA type option
Add price source option
Draw MA and ATR_TSL on-chart
RSI multitimeframe SMA crossoverStrategy based on the multi timeframe equally weighted RSI moving averages turned into single average and then cross of the 2 combined outputs, seems to be promising, default settings work good on 5m chart(better entry) but very filtered trade amount. If you want to use it on different timeframes be my guest and mess with adjustments, pretty much every aspect of strategy is adjustable, idea is same. If somebody liked the idea and able to improve it - share with me :)
(Short) EMA200+Parabolic SAR+MACD+TP&SL By Nussara (strategy)This indicator is backtest of “ (Short) EMA 200 + Parabolic SAR + MACD + Take Profit and Stop Loss”
You can simulate trading by setting your own funds and trading fees. And you can adjust various parameter settings to get the results you want.
Exponential Moving Average
Moving averages smooth the price data to form a trend following indicator. They do not predict price direction, but rather define the current direction, though they lag due to being based on past prices. Despite this, moving averages help smooth price action and filter out the noise.
EMA=Price(t)×k+EMA(y)×(1−k)
where:
t=today
y=yesterday
N=number of days in EMA
k=2÷(N+1)
Parabolic SAR
The Parabolic SAR is a technical indicator developed by J. Welles Wilder to determine the direction that an asset is moving. The indicator is also referred to as a stop and reverse system, which is abbreviated as SAR . It aims to identify potential reversals in the price movement of traded assets.
MACD
Moving average convergence divergence ( MACD ) is a trend-following momentum indicator that shows the relationship between two moving averages of a security’s 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 security when the MACD crosses above its signal line and sell—or short—the security when the MACD crosses below the signal line.
EMA 200 + Parabolic SAR + MACD (Short) formula
1. The price closes below the ema200 line.
2. MACD Line cross down Signal Line"
3. Parabolic SAR above the bar means that it is a downtrend.
If all three are true, the indicator will have a Short signal.
Risk to Reward Ratio = 1:1
Stop loss = Parabolic SAR point.
This indicator is just a tool for technical analysis . It shouldn't be used as the only indication of trade because it causes you to lose your money. You should use other indicators to analyze together.
Larry Williams 3 Period EMAs strategyLarry R. Williams explains this strategy in his book "Long-Term secrets to Short-Term trading", it consists of using two 3-period EMAs, one representing the Highs and the other the Lows.
When the price falls below the 3-period Lows EMA we have a long signal.
The trade is closed when the price closes above the 3-period Highs EMA . BINANCE:BTCUSDT
Dynamic Fib StrategyAfter publishing many complex scripts with a myriad of inputs that were confusing for the average user, and after being told my previous publications were overfitted and not easily applied across the board...I spent the past three months working on this masterpiece.
The script is very simple to use, and it MUST be used for timeframes of 10 minutes or more. Please do not use this strategy for lower timeframes thinking that more trades is a desireable trait in a strategy. Patience is a virtue, and it doesn't matter if there are 1000 bars between trades (I am exaggerating here) all crypto is cyclical in a short timeframe of days.
The script is based on moving averages, what is different about this script is that it is the result of months of analysis of the crosses that are key indicators of the best times to trade. It also identifies crosses that indicate when a massive dump is coming and when the dump turns back into a pump. It is designed to be a long strategy with the careful identification of the dump indicators so it preserves your capital and results in a better trade approach.
At the heart of this script is the Sutte MA and the SMA, and only a subset of the settings for these are exposed for user input to keep things simple.
The second key piece of how this script works is the Fibonnaci levels. For the purposes of using this script, the first two levels (Fib 1 and Fib 2) are only for display purposes of the bands and does not affect the triggers for trading. It is only the third and fourth levels which impact the trade triggerers for buying and selling. The idea here is that the best times to execute a trade is when the price moves into the outer bands as these are typical triggers for selloffs from those suffering from FOMO.
Since I have done quite a bit of work here, I do not wish for this script to be copied and pasted into other scripts. It is my coup de grace and there is not a script like this anywhere on TradingView that delves deep into the crosses that matter.