RSI-based strategy for MATIC on 3commas - uses a 15m chartI looked all over TradingView and could not find a script that specifically does this so I wrote one. It's not complicated but it works pretty well. Essentially the concept is that you specify two RSI values: a buying threshold and selling threshold. The indicator will make buys based on RSI crossing your buy threshold and sells based on it crossing your sell threshold.
You can change the actual RSI parameters though I have found it works best with the default settings I have listed. It is set for a 15m MATIC chart but you can use it with anything on any time period but you will need to modify the thresholds and check the backtester if you use it on anything other than a 15m MATIC chart.
There is also a date range selector so you can test it over a specific time period. I typically use the past 1-2 months to get a good feel for if the settings I have picked work well in current market conditions.
It also functions as a regular RSI indicator so if you use this you probably don't need to apply any other RSI indicators to your chart.
I have made the indicator usable so that you can test it out manually to verify that it works as expected and if you want access to the script itself (to enable automated trading on 3commas) please message me and we can work something out.
In the future I might add some extra settings to this like a smoothed EMA so you can make more discerning buys, it depends on how many people contact me for the full script.
Осцилляторы
EMA Cross + Divergence strategy (Div. signals by The Divergent)A sample strategy demonstrating the usage of The Divergent divergence indicator and The Divergent Library .
The Divergent is an advanced divergence indicator which you can easily incorporate into your own strategies.
In order to use this strategy (and to use the signals in your own strategy), you need to have the Pro version of The Divergent applied to your chart.
For more information, please see the comments inlined in the code.
Up & Down Trend Trading Strategy - BNB/USDT 15minThis strategy will focus on up trend trading and down trend trading based on several indicators such as;
for up trend
1. SAR indicator
2. Super trend indicator
3. Simple moving average for the period of 100
down trend
1. RSI Indicator
2. Money flow index
3. Relative volatility index
4. Balance of powder
3RSI 3CCI BB 5orders DCA strategy+This strategy is just an attempt to find the indicator values for the trading bot service that I use (link in profile). Due to the use of the “request.security” function in the code, the indicators can be redrawn, but this is not important in history. The strategy used only 5 orders for the "DCA" - bot, located at the same distance in the price overlap range. I only use this strategy when trading in pairs against bitcoin.
Эта стратегия – просто попытка подобрать значения индикаторов для сервиса торговых ботов, который я использую (ссылка в профиле). Из-за использования в коде функции «request.security» возможна перерисовка индикаторов, но на истории это не важно. В стратегии использовано всего 5 ордеров для «DCA» - бота, находящихся на одинаковом расстоянии в диапазоне перекрытия цены. Я использую данную стратегию только при торговле в парах к биткоину.
Zendog V3 backtest DCA bot 3commasMAJOR UPDATE:
- Update to Pinescript v5
- MAJOR refactor for the logic of how orders are placed. BO order is placed when the condition is first encountered and we are not in a deal.
The extra SO orders (if based on price movement) are all placed on the next candle after BO order, instead of each being placed one after another.
Take profit (if percentage) and Stop loss are placed on the first candle after BO order because if BO and TP are on the same candle TV does not execute properly.
These changes should improve strategy accuracy when multiple prices are hit by the same candle.
- NEW FEATURE: Support to Stop deal using an external indicator (i.e. stop long deal when RSI > 80)
- NEW FEATURE: Support to trigger Safety orders using an external indicator (i.e. trigger each additional SO when RSI < 10, regardless of price movement)
The price movement logic may be implemented in the indicator that plots start / end signals. The SO size is calculated using the configuration of steps.
- NEW FEATURE: Safety order command for 3commas bot. This is implemented using Add funds in the quote currency (for pair BTCUSDT the quote currency is USDT)
The SO size is calculated using the configuration of steps, for exact order size (and price) use the built-in Steps table.
- NEW FEATURE: Addition of extra columns to the steps table: Required price for TP, Required % change for TP, Required % change for BEP (Breakeven point)
- Update to steps table to remove prices when Safety orders are not based on % price change
- The code is opensource. I will not be able to sustain merges for the script, but feel free to use and develop your own version and ping me on discord to review them
and maybe include in the original script
Supertrend Oscillators w/ MAs Backtest [loxx]Backtest for the following indicator:
Features
-3 selectable TPs with ATR
-Adjustable ATR and TPs levels
-Show shorts shorts or longs
-date ranges
Instructions:
-When you select the % per TP you must make sure they add up to 100% between the ones selected or no data will show
-Used to backtest corresponding indicator linked above
Future updates:
-Add lines for TPs and SL
Contrarian Scalping Counter Trend Bb Envelope Adx and StochasticContrarian Scalping is an trading strategy designed to take advanted of a counter-trend.
The advantage of these strrategies types is that they have a good profitability but with do not great gain (in relation at the time frame).
Indicators used:
Bollinger
Envelope
ADX
Stochastic
Rules for entry
For short: close of the price is above upper band from bb and envelope, adx is below 30 and stochastic is above 50
For long: close of the price is below lower band from bb and envelope, adx is below 30 and stochastic is below 50
Rules for exit
For short: either close of the candle is below lower band of bb or enveloper or stochastic is below 50
For long: either close o the candle is above upper band of bb or envelope or stochastic is above 50
If there are any questions let me know !
RSI Average Swing BotThis is a modified RSI version using as a source a big length(50 candles) and an average of all types of sources for candle calculations such as ohlc4, close, high, open, hlc3 and hl2.
In this case we are going to use a 0-1 scale for an easier calculation, where 0.5 is going to be our middle point.
Above 0.5 we consider a bullish possibility.
Below 0.5 we consider a bearish possibility.
I made a small example bot using that initial logic, together with 2 exit points for long or short positions.
If there are any questions, let me know !
TEWY - Magic Strength Indicator (SI) ScreenerDetail about this indicator
This is screener to identify outperforming Stocks/Ticker based on the indicator "TEWY - Magic Strength Indicator (SI)" I deployed earlier. So please checkout that indicator description to understand more about this screener logic.
Below are the parameters that you may need to use to get outperforming indices/tickers.
1. Screener Set Name :
• Here you can see few of the predefined Index/Ticker sets i created, which you can use to screen Index/Ticker.
• If you select Set for 'Indices' you will get the list of Indices which are out performing NSE:NIFTY. Once you know which index is outperforming, then select the Set for that Index which I already given in the dropdown. That you will get the list of outperforming stock under that index.
• If you want to see all scripts of selected Sector Index that are outperforming NIFTY and may or may not be be outperforming Sector index, then please uncheck the box for "Outperforming Child Index Also". This will get you all the list of Stocks/Tickers which are outperforming Main Index NIFTY.
• If you want to see out-performers for specific period of time then change "How Many Outperforming Candles/Bars" as per your choice
• If you want to see under performers for Short trades then select "Find Short Trades" checkbox
• If you want to see the scripts which are just changed there signal then select "Latest Only" checkbox
Always respect RISKS and follow stop loss. In market stop loss is the only friend of yours.
I have given a sample illustrational image below, which should help you understand this indicator.
Best of luck
Conservative scalping incomeThis fully automated scalping strategy aims for an 10-12% annual return using LONG positions only (i.e. no SHORTs), with 2 to 1 number of winning trades and 1.5 to 1 avg win amount vs avg loss amount. It should generally make from zero to four trades per day depending on market conditions. It should remain in a position for roughly an hour. It leverages numerous indicators, including multiple moving averages, ADX, and MACD.
Note that this strategy does not try to time tops and bottoms. Rather it waits to clearly identify a trend, and then rides that trend for a short while making a defined profit. Thus it may enter and exit a trade under profitable conditions, but not at the most profitable conditions possible. It gets in when it's sure of the trend, and then generally leaves that trend as soon as a defined profit is made or before a meaningful loss is incurred.
This strategy will work well with any index (e.g. SPY) and most stocks. It works best on a five minute time interval and when the index or stock is either generally increasing over time or bouncing back and forth between a medium to wide range.
RSI %b Signal [H1 Backtesting]-----------------------------------------------------------------
This simple strategy base on RSI, EMA, Bollinger Bands to get Buy and Sell Signal with detail as below:
-----------------------------------------------------------------
1.Define Oscillator Line
+ Oscillator Line is smoothed by ema(28) of RSI(14) on H1 Timeframe
2.Define Overbought and Oversold
+ Apply Bollinger Bands BB(80,3) on Oscillator Line and calculate %b
+ Overbought Zone marked above level 0.8
+ Oversold Zone marked below level 0.2
3.Buy Signal
+ Entry Long Position when %b crossover Point of Entry Long
+ Deafault Point of Entry Long is 0.2
+ Buy signal marked by Green dot
4.Sell Signal
+ Entry Short Position when %b crossunder Point of Entry Short
+ Deafault Point of Entry Short is 0.8
+ Sell signal marked by Red dot
5.Exit Signal
+ Exit Position (both Long and Short) when %b go into Overbought Zone or Oversold Zone
+ Exit signal marked by Yellow dot
-----------------------------------------------------------------
Joint Conditions Strategy Suite + TradingConnector alerts bot"Please give us combined alerts with the possibility of having several conditions in place to trigger the alert." - was the top voted request from users under one of the recent blogposts by TradingView.
Ask and you shall receive ;)
TradingView is a great platform, with unmatched set of functionalities, yet this particular combo of features indeed seems not to be in place. Fortunately, TradingView is also very open platform, thanks to PineScript coding language, which enables developing combos like the requried one and plenty of other magic.
I have already published numerous "educational" scripts, showing how to code indicators and alerts with PineScript, but... this is not one of them. This one is for real. READY FOR USE on real markets, also by the non-coding traders. Just take my script, set parameters with dropdowns, backtest the strategy, fire the alerts and execute them.
HOW TO USE IT
In "Settings" popup I tried to mimic the CreateAlert popup dropdowns for selecting logic. Let's say you want to enter Long position at Stochastic KxD crossover. In first line of Long Entry conditions set "StochK" + "Crossing Up" + "StochD". Last field doesn't matter because in 3rd dropdown something else than "value" was selected. In second line you could set "maB" + "Greater Than" + "maC" to filter out those entries which are in direction of the uptrend. And yeah, add ADX>25 to make sure the market is actually moving: "ADX" + "Greater Than" + "value" + "25". All condition lines must be TRUE (or skipped) for the entry to be triggered. Toghether with an alert.
The same for Short entries. Combinations are limitless.
INDICATORS AND MTF (MULTI-TIMEFRAME)
In those dropdowns you can select candle values like open/close/high/low/ohlc4, but also some most popular indicators, which I have pre-built into this script: RSI, various Moving Averages, ADX-DMI, Stochastic and Bollinger Bands for start. You can configure parameters of those indicators also in "Settings" popup, in "Indicator Definitions" section. What's important, you can use any of these indicators from higher timeframe, setting MTF multiplier. So if you applied this indicator to 1h chart, but want to use rsi(close,14) from 4h chart, set MTF to 4. If you want to use current timeframe indicators, keep MTF at 1, which is a default setting here.
Note for coders: to keep focus of this script on joining conditions, entire logic for those indicators has been moved to external library, also open source. I encourage you to dig into the code and see how it's done. I love the addition of libraries concept in PineScript.
CUSTOM INDICATOR
Following the "openness" spirit of my master - which is TradingView itself - my work is also open, in 2 ways:
1. This script is open source. So you can grab it, modify or add any functionalities you want. I cannot and don't want to stop you from doing that. I'm asking for only one favor - please mention this source script in your credits.
2. You can import the plot (series) from any other indicator on TradingView. In Settings popup of my script, scroll down to "Indicator Definitions" section, and select the series of your choice in the first dropdown. Now it is ready to use in conditions dropdowns on top of the Settings popup.
Let me give you an example of that last scenario. Take another script of mine, "Pivot Points on SR lines DEMO". You can find it in "Indicators & Strategies" library or here: (). Attach it to your chart. Now come back to THIS script, open Settings popup and in "Custom Indicator aka Imported Source" select "Pivot Points on SR lines: ...". The way it works - it detects if a pivot point happened on Support/Resistance line from the past and returns 1 for PivotLow and -1 for Pivot High. Now in first Long Entry condition set: "custom indicator" + "Greater Than" + "value" + "0" and long entries will be marked on every pivot low noticed on Support/Resistance line.
ALERTS
Last but not least - the alerts. This script produces alerts on the entries calculated by strategy logic, as marked on the chart by the backtester. Moreover, syntax of those alerts is already prepared and fully compatible with TradingConnector - alerts executing tool (bot), if you want to auto-execute those trades. Apart from installing the tool, you need to set
up the alerts in TradingView, here is how:
open CreateAlert popup
in first dropdown select "Joint Conditions Strategy Template"
in second dropdown select "alert() function calls only"
And that's all. You only need to set one alert for the whole script, not one for Longs and one for Shorts as it was in the past. Also, you don't need to setup closing alerts, because stop-loss/take-profit/trailing-stop information is embedded in the entry alert so your broker receives it as early as possible. Alerts sent will look like this: "long sl=40 tp=80", which is exactly what TradingConnector expects.
Phew, that's all folks. If you think I should add something to this template (maybe other indicators?) please let me know in comments or via DM. Happy trading!
P.S. Pyramiding is not supported in this script.
Disclaimer : I'm not saying above combination of conditions will make you money. Actually none of this can be considered financial advice. It is only a software tool. Use it wisely, be aware of the risk and do your own research!
Premium ScalperThe strategy works with a combination of a number of different factors, including:
- Volume
- Moving averages
- Volatility
- RSI
This strategy generates long and short signals based on volume movements, moving averages and RSI. By combining other algorithms, low volatility periods can be filtered out.
The best results can be achieved by pairing the indicator with a bot through 3Commas and using a diversification strategy. This way you spread your risk over different pairs and you therefore also have a great chance of taking big moves.
The strategy results we display are results WITHOUT leverage. It is therefore also possible to only long on spot with this strategy, but for optimal results a trading bot link is required.
The settings we have used for these results are an order size of 100% with a 0.08% commission size.
Side note: This indicator does NOT use repainting!
We offer the possibility to try the indicator for free for 7 days.
V0.0_StochRSI_ANGTEST 2, en busca de algo nuevo que pueda encontrar puntos de entrada de compra y venta al 1%
robotrading ZeroCCIIt was not me who authored the strategy. I do not know who the real author of this strategy is. I read about it on wikipedia :) And decided to test the strategy on the cryptocurrency market. It turned out that this strategy really works. The strategy is very simple.
Indicator
CCI indicator with default settings is used. The settings can be changed. Nothing else is used.
Strategy
If CCI is more than 0, then open a long position (and close a short position).
If CCI is less than 0, then open a short position (and close a long position).
Reverse trading.
MZ SRSI Strategy V1.0Strategy Introduction
This strategy starts from selection of 1st Moving Average from one of following:
SMA
EMA
DEMA
TEMA
LRC
WMA
MF
VAMA
TMA
HMA
JMA
Kijun v2
EDSMA
McGinley
Then it calculates the RSI of selected 1st Moving Average
In the end it calculates Moving Average of previously calculated RSI and for this purpose 2nd Moving Average is also selected from above list.
Cross of RSI and its Moving Average generates Strategy Alerts
Only long trades are enabled currently
Default Settings
I've set the default selection to the perfect options for 1D and 4h timeframes. You can modify both MAs selection and their length according to your selected timeframe.
Following default settings are used:
Heiken Ashi Candles are selected by default as source
1st Moving Average selection is set to LRC (Linear Regression Curve)
Length of 1st Moving Average is set to 50
RSI length is set to 2 because it is supposed to be fast
2nd Moving Average of RSI is set to TMA (Triangular Moving Average)
Length of 1st Moving Average is set to 5
Start date is set to 2011
Backtesting can also be done selecting %age of equity
Suggestions for Usage
Mostly winning trades have no prominent drawdown so losing trades can be abolished with Stoploss. Would soon add Stoploss, MTF and Takeprofit options in next version. Also if you want an alerts version of it then just comment below and would publish it later. I’ve found this strategy useful on 1D and 4h timeframes with described default settings.
[Fedra Algotrading Strategy Trailing Stop Version]Simpler version of my popular strategy.Optimized for cryptocurrencies. Originally conceived to trade automatically through bots (that's how I use it), it also works to get signals and trade manually in any exchange.
It works in spot.
Buy the dip:
Attempts to buy on the dip, finding entries when the price makes abrupt dips that break deviation of the linear regression of the last periods.
Trend Detection:
Determines whether the market is in an uptrend or downtrend by crossing 2 SMAs + super trend in different temporalities. This affects the performance of the strategy. It works as a filter to avoid making entries in a downtrend.
% Trailing Stop Loss. The Stop Loss is placed a % below the price and accompanies it in the rises to make the most of an uptrend.
Optionally, you can set up a percentage Take Profit
It allows you to easily configure the backtest period to optimize the parameters for consistent results.
The strategy calculates by default a commission of 0.1% on each trade to make the backtest more "pessimistic".
Includes advanced features for compatibility with different bots platforms in the market.
Risk management by % of equity or by maximum series of losses.
////////////////////////////
Versión más simple de mi popular estrategia, optimizada para criptomonedas. Originalmente concebida para operar automáticamente a través de bots (así es como la uso yo), también funciona para obtener señales y operar manualmente en cualquier exchange.
Funciona en spot.
Compra en la caída:
Intenta comprar en la caída, encontrando entradas cuando el precio hace caídas abruptas que rompen la desviación de la regresión lineal de los últimos períodos.
Detección de tendencia:
Determina si el mercado está en tendencia alcista o bajista mediante el cruce de 2 SMAs + super trend en diferentes temporalidades. Esto afecta al rendimiento de la estrategia. Funciona como un filtro para evitar hacer entradas en contra de la tendencia del mercado.
% Trailing Stop Loss. El Stop Loss se coloca un % por debajo del precio y lo acompaña en las subidas para aprovechar una tendencia alcista.
Opcionalmente, se puede establecer un porcentaje de Take Profit
Permite configurar fácilmente el periodo de backtest para optimizar los parámetros y obtener resultados consistentes.
La estrategia calcula por defecto una comisión del 0,1% en cada operación para que el backtest sea más "pesimista".
Incluye características avanzadas para la compatibilidad con diferentes plataformas de bots en el mercado.
Gestión del riesgo por % del capital o por serie máxima de pérdidas.
The MACDMI T/SLThis is a combined MACD and DMI strategy script with multiple options for targets and stoploss.
Stoploss and targets sizes are ATR based calculations.
Each of these contains a sets an initial ATR based that will close the entire position if hit. From there, differences between them are as follows:
Trailing stop - immediately begins trailing stoploss from your entry. Entire position is closed when hit.
Single Target - closes entire position once target is hit
T1 + Trail - closes half of the position when first target is hit and then begins trailing stop on the remaining position.
T1 + Trail/T2 + Trail - closes a third of the position at T1 and begins trailing a stop on the rest. Will close another third at T2, continue the trailing stop, and close the final third when the stop is hit.
Linear trendSimple way how to use Linear Regression for trading.
What we use:
• Linear Regression
• EMA 200 as a trend filter
Logic:
Firstly we make two different linear regression movings as oscillator. For this we need to subtract slow moving from fast moving, so we get the single moving around zero. This is the green/red line which appears on the chart.
The trade open when LR cross over the threshold. The trade close when LR cross under the threshold below. Crossing over the threshold is the same as faster moving cross over slower moving.
Also we use EMA as a filter. The trades would be only when the price is over than EMA 200.
AlphaPrime - Backtest AlphaPrime - Backtest AlphaPrime - BacktestAlphaPrime - BacktestAlphaPrime - BacktestAlphaPrime - Backtest
P-Signal Strategy & AlertThanks to your advices I removed in this version something that was not necessary for the strategy but added alert and the chart of the current state of the strategy (white 1 - in trade, 0 - out of trade).
DMI (Multi timeframe) DI Strategy [KL]Directional Movement Index Strategy
Entry conditions:
- (a) when DI+ > DI- on timeframe #1, and
- (b) Confirmation: when DI+ > DI- on timeframe #2
In the shown example, timeframe1 was same as the chart (1H) and timeframe2 was 1D.
Stop Loss: ATR based trailing stop
About DMI
Can refer to Investopedia for general understanding.
Applications of DMI in this strategy:
- Assumes uptrend when DI+ is above DI- (when green DI+ lines above red DI-), vice versa for downtrend. This is checked in two different timeframes that can be set by user in settings.
- DX is ignored, it doesn't give a direction of the trend. But if DX was applied, it would be a good indicator for quantifying the strength of uptrend/downtrend. This measurement would typically be read along a threshold (i.e. if below 20, then market is likely consolidating). All of these have been commented out (ignored by pinescript's interpreter via //) in the codes, as said; we are not using DX for sake of simplicity.
Visualizations
To make the chart look cleaner, DMI plots have been simplified to just down/up arrows placed at bottom of the chart.
Referring to the example chart:
- Green arrows : when DI+ > DI- for both timeframes, implies uptrend
- Red arrows: other way around (DI+ < DI-), implies downtrend