Wunder Trend Reversal botWunder Trend Reversal bot
1. Wunder Trend Reversal Bot - this has only one goal to find a reversal of the trend.
2. The strategy determines, based on the specified value for the filter, a market reversal based on the price actions of the previous bars.
3. A short EMA is used to filter false signals after the reversal signal was received. Crossing the EMA and changing its direction confirms the trend change.
4. There are 2 ways to calculate stop loss and take profit. You can choose one of them:
- Classic stop loss and take profit in a fixed percentage
- ATR stop loss and take pro
5. ATR uses risk reward (R:R) to calculate take profit. The script calculates the risk-reward based on a certain stop loss level and uses it to calculate the take profit
6. A function for calculating risk on the portfolio (your deposit) has been added to the script. When this option is enabled, you get a calculation of the entry amount in dollars relative to your Stop Loss. In the settings, you can select the risk percentage on your portfolio. The loss will be calculated from the amount that will be displayed on the chart.
For example. Deposit - $1000, you set the risk to 1%. SL 5%. Entry volume will be $200. The loss at SL will be $10.10$ this is your 1% risk or 1% of the deposit.
Important! The risk per trade must be less than the Stop Loss value. If the risk is greater than SL, then you should use leverage.
The amount of funds entering the trade is calculated in dollars. This option was created if you want to send the dollar amount from Tradingview to the exchange. However, putting your volume in dollars you get the incorrect net profit and drawdown indication in the backtest results, as TradingView calculates the backtest volume in contracts.
To display the correct net profit and drawdown values in Tradingview Backtest results, use the ”Volume in contracts” option.
Search in scripts for "bot"
Wunder Keltner botWunder Keltner bot
1. Wunder Keltner bot is based on the breakout of the Keltner channel. For calculation, 2 channels are used, one for long trades, and the other for short trades. The division into 2 channels is used for more accurate entry calculations depending on trend directions.
2. The ADX indicator is used to filter signals and determine the trend strength. ADX determines the strength of the trend and confirms the entry into the strategy if the value is greater than the level indicated in the settings.
3. There are 3 ways to calculate Stop Loss and Take Profit. You can choose one of them:
Classic Stop Loss and Take Profit in a fixed percentage
ATR Stop Loss
Keltner. Stop Loss, which is set on the opposite Keltner’s Channel Band from Keltner breakout.
4. ATR and Keltner use Risk Reward (R:R) to calculate Take Profit. The script calculates Risk Reward based on the determined Stop loss level and uses the ration to calculate Take Profit.
5. A function for calculating risk on the portfolio (your deposit) has been added to the script. When this option is enabled, you get a calculation of the entry amount in dollars relative to your Stop Loss. In the settings, you can select the risk percentage on your portfolio. The loss will be calculated from the amount that will be displayed on the chart.
For example. Deposit - $1000, you set the risk to 1%. SL 5%. Entry volume will be $200. The loss at SL will be $10.10$ this is your 1% risk or 1% of the deposit.
Important! The risk per trade must be less than the Stop Loss value. If the risk is greater than SL, then you should use leverage.
The amount of funds entering the trade is calculated in dollars. This option was created if you want to send the dollar amount from Tradingview to the exchange. However, putting your volume in dollars you get the incorrect net profit and drawdown indication in the backtest results, as TradingView calculates the backtest volume in contracts.
To display the correct net profit and drawdown values in Tradingview Backtest results, use the ”Volume in contract” option.
MZ HTF HFT ROCit Bot - Non Repainting Scalper v1.2 ADX RSI MOM This is a new iteration based on my Momentum trading bot.
This is an original script meant to be a high frequency trader that works on higher time frame calculations.
I came up with the idea that using calculus I can figure out the actual rate of change and momentum with different calculations than the momentum indicator that is provided by trading view. Once momentum is shifted on a small time frame, it will provide an entry signal. The script is meant to be used on an algorithmic trading system for scalping purposes. It should be run on a one minute time frame. Unfortunately due to various plotting constraints in Pinescript, you cannot plot the rate of change and momentum and price in the same pane. To counter this, I have a showdata toggle to give you values of the indicators at each entry.
This version has two main entry settings toggled with a checkbox. There is the ROC (rate of change) version and the MOM (momentum) entry signals.
The rate of change version is meant to take a look at your moving average and try to trigger when it hits a certain rate of change point. This can be helpful if you rather play it safer. I have noticed that you can get slightly better entry points but also does not give you as many entries. The momentum algorithm will give you faster entry points and might work best with a slight offset (use your back test to help you figure it out).
I have started to add tooltips to help you along. If you have suggestions please let me know.
How does it work?
Let's just assume that you are looking at a one minute chart. I recommend using the one minute for bots because it will give you the fastest execution for entries. Pinescript has an issue where the signal is not usually sent until the end of the bar/beginning of next bar. If the signal was triggered at the beginning of a 15 minute bar, it might not actually send the signal until the following 15 minute bar. If you are trading on small time frames, this can make all the difference. If you are using an algo platform that trailing stops, stop losse, take profits, etc. I would recommend you use that platform to close your trade. The close trade message will work, but pinescript does not know the exact entry price you received, so if you are trying to collect small profits, it is best that intermediary platform does that calculation for you. If you are dealing with larger moves, instead of small 1-3% scalps, you are probably fine to use the close message setting from pinescript.
Ok, so to take an example. I like to use the 3L and 3S tokens on Kucoin. This gives you a lot of volatility to work with compared to other tokens and coins. However, it can also meas that you are likely taking a higher risk. However, there are some things that can help with that (more on that later).
So we have a token we want to run, and have it on the 1m chart.
First, be sure that all of your filters are OFF when you start playing with the back test. This allows you to see how to best optimize the bot.
Use the show data to show you additional data when you are backtesting. This can allow you to try to filter out results or market conditions that do not work. I typically work with the RSI and use the 30 minute and 15 minute RSIs. I make sure that it is trading within a certain band - about 40-75. You can try the inverse and only buy during really low RSI's as well.
www.dropbox.com
Find the source of your data with the variant drop down. You can use any time frame, open, close. high, low, olc4. Open is pretty much guaranteed to not have any repainting issues - although all the other calcs use a custom isbarconfirmed security repaint calculation. I have been finding that Open and SMA work well, but feel free to explore. If you use a source like open, close, high, low, etc - the interval will not change anything further. If you use a variant such as an sma, you should try to find an interval that works well for that token. For instance, try an sma of 8-11 minutes and see which gives you the best backtest result without changing anything else. Offset ALMA/LSMA parameters are only used for those specific variants. These specific parameters will also affect the ALMA and LSMA if you use that variant in the trend filter. In other words, you can skip these if you are not using those types of moving averages.
www.dropbox.com
Configure the ROC and MOM intervals. If you are using a source such as open, close, etc- this is where you set the interval for your change. So consider using OHLC4 or a interval of 5 thru 15 and see what works best. The Momentum inverval usually works best in the 2-5 bars. There is a custom calculation I added in to try to filter out false entries as momentum is waning. This calculation works best in 2-5 bar interval.
Configure the trigger point and offset. If you are using rate of change, the best settings will likely be between -1 to 0.5. If you are using momentum, you will likely want -20 to 10. This is where you will notice the entries will shift a bit. Try to find a balance between your backtest settings and actually finding what you thin will be the best entries based on a slight delay from trading view, to algo, to your trading platform. This can likely be a minute (maybe even) or so- so be sure to not get too caught up between the backtest results and be sure to finesse the entries to actually fit nicely - maybe a bar earlier than you would likely think. If your entries are coming in too early, you can use the offset to delay your entry by a few bars. This is both science and an art form- don't get too caught up on the back test results as that is based on having all the data tha already transpired, it's not based on how it will actually perform during deployment.
Take profit and stop loss. This should be self explanatory. This script can toggle between static take profit and a trailing profit. For scalping, you will likely want to limit it below 2% to get a good win ratio. Stop loss should be at least 5-6% for these types of 3L/3S tokens to give the strategy some room to move (if the token goes down 2% before it shoots back up, the price will go down 6%). This does not yield the best R/R ratio from a traditional trader perspective, but the statistical probabilities are in your favor for these events will happen. If you have better ideas for how to set this all up, feel free to contribute your ideas in the comments as we can all learn from each other. You can definitely set a much tighter stop loss with a larger take profit to get a lower win rate but in turn might get much better returns. It's all up to you.
FILTERS www.dropbox.com
These filters require you to know a bit about each indicator and how you want to use them. I will only go over the general idea.
Variant Filter - this is especially useful if you want to trade above a moving average. Say for instance you only want to take trades when we are over the 100 Day moving average. Or above a 30 minute, 30 bar EMA, etc. Although originally ported over from my other scripts, this is not a filter that I use often in conjunction with this script.
RSI - perhaps you want to buy when we are below the 30 line on the 30 minute RSI, or we want only want to have the strategy work when we are above the 50 RSI, this can all be configured here. I typically like to try a few different rationales here.
Now with brand NEW ADX filter - this is a brand new idea that seems to work rather well. Based on your ADX settings you can also turn on the "only uptrend" which will try to calculate if you are in an uptrend based on your ADX config. Please keep in mind that uptrend is based relatively on the ADX settings.
- There is a sprinkle of RSI magic in the entry signal to make sure that rsi is not declining in the calculation, so this can affect how many entries you get.
Some other tips:
Forward test.
Set up your algo bot on a one minute interval.
Set up take profit and stop loss on your algo trading platform.
Don't use the exact settings as your backtest, maybe try a slightly more conservative approach from the algo trading platform to make sure you are within range of triggering your events with a slight delay from signal to execution. If you have a 1.6% take profit, perhaps try 1.5% on your platform first.
By using these scripts you agree that you are trading at your own risk. I make no guarantees of returns or results. I just provide tools to help you trade better. However, I hope this ROCit will take you to the moon. And if it does, be sure to give me a shout as well as some tips of your own.
Send me a message with any questions or suggestions.
Customizable Non-Repainting HTF MACD MFI Scalper Bot StrategyThis script was originally shared by Wunderbit as a free open source script for the community to work with.
WHAT THIS SCRIPT DOES:
It is intended for use on an algorithmic bot trading platform but can be used for scalping and manual trading.
This strategy is based on the trend-following momentum indicator . It includes the Money Flow index as an additional point for entry.
HOW IT DOES IT:
It uses a combination of MACD and MFI indicators to create entry signals. Parameters for each indicator have been surfaced for user configurability.
Take profits are fixed, but stop loss uses ATR configuration to minimize losses and close profitably.
HOW IS MY VERSION ORIGINAL:
I started trying to deploy this script myself in my algorithmic trading but ran into some issues which I have tried to address in this version.
Delayed Signals : The script has been refactored to use a time frame drop down. The higher time frame can be run on a faster chart (recommended on one minute chart for fastest signal confirmation and relay to algotrading platform.)
Repainting Issues : All indicators have been recoded to use the security function that checks to see if the current calculation is in realtime, if it is, then it uses the previous bar for calculation. If you are still experiencing repainting issues based on intended (or non intended use), please provide a report with screenshot and explanation so I can try to address.
Filtering : I have added to additional filters an ABOVE EMA Filter and a BELOW RSI Filter (both can be turned on and off)
Customizable Long and Close Messages : This allows someone to use the script for algorithmic trading without having to alter code. It also means you can use one indicator for all of your different alterts required for your bots.
HOW TO USE IT:
It is intended to be used in the 5-30 minute time frames, but you might be able to get a good configuration for higher time frames. I welcome feedback from other users on what they have found.
Find a pair with high volatility (example KUCOIN:ETH3LUSDT ) - I have found it works particularly well with 3L and 3S tokens for crypto. although it the limitation is that confrigurations I have found to work typically have low R/R ratio, but very high win rate and profit factor.
Ideally set one minute chart for bots, but you can use other charts for manual trading. The signal will be delayed by one bar but I have found configurations that still test well.
Select a time frame in configuration for your indicator calculations.
Select the strategy config for time frame. I like to use 5 and 15 minutes for scalping scenarios, but I am interested in hearing back from other community memebers.
Optimize your indicator without filters (trendFilter and RSI Filter)
Use the TrendFilter and RSI Filter to further refine your signals for entry. You will get less entries but you can increase your win ratio.
I will add screenshots and possibly a video provided that it passes community standards.
Limitations: this works rather well for short term, and does some good forward testing but back testing large data sets is a problem when switching from very small time frame to large time frame. For instance, finding a configuration that works on a one minute chart but then changing to a 1 hour chart means you lose some of your intra bar calclulations. There are some new features in pine script which might be able to address, this, but I have not had a chance to work on that issue.
TradingGroundhog - Fundamental Bot Automation - Fractal/Wave -V1PLEASE READ THE DESCRIPTION - AS THE SCRIPT IS USED FOR AUTOMATION AND TRADING PAIR SWITCH THE MECHANISM CAN BE COMPLICATED TO UNDERSTAND
#-- Pairs Switching - No Repaint - Fractals - Wavetrend --
This strategy uses my fractal/wavetrend previous methods in order to buy/sell.
However, it has been designed in order to switch automatically the pairs on which it trades to reduce the loss and risk.
#-- Synopsis --
To do so, the script uses a Daily wavetrend oscillator. The oscillator is used to find uptrend periods.
From it, the number of uptrend days are counted.
#-- Wavetrend --
For exemple, if BTC/EUR goes from downtrend to uptrend, the script will start to count since how many days the market is uptrend.
Then, if BTC/EUR goes from uptrend to downtrend, the counter will be reset to 0.
The script only trades during uptrend periods.
#-- Pairs --
Up to 35 pairs can be used at the same time. The user can enable of disable to trade on certain pairs.
Uptrend days are counted for each one of those pairs. The user can define on how many pairs the script can trade at the same time.
The select which pairs will be trade, the script sort all the enabled pairs based on their uptrend days counters.
#-- Trade organization --
For exemple if we set 5, as the number of maximum pairs to trade on.
Trades will be conducted on the 5 pairs being in uptrend for the longest time.
Therefore, to organize the money placement on each pair, the equity is used.
For 100% of equity, 10% are kept if losing trades occur.
The remaining 90% are divided by the number of maximum pairs to trade on.
If we chose 5, we will have (90/5) 18% of our capital placed in each bot.
#-- Setting it --
As explained before, this script is used for automation.
For exemple, lets say you are interested by 15 pairs with promising evolution and you set the number of maximum pairs to trade on to 5.
You will have to set alerts for the script on each of the 15 pairs.
You will receive alerts for when to buy and sell.
Note that the script has to be set for each of the selected pairs, it is not able to trade on 15 pairs (thus, webpages) if only set on one Tradingview webpage.
#-- Plot--
Once launch, you can see a plot.
The plot represent the Uptrend days counter for 20 pairs. It also project the organization of the ENABLED pairs.
If a pair is part of the one with the highest number of uprend days. It's name will be displayed under the plot in a yellow comment box.
Four other box are projected to the right of the plot:
White comment : All the pairs sorted from highest number of uptrend days to the lowest.
Red comment : Pairs with the lowest number of uptrend days.
Blue comment : Interesting pairs which will may be uptrend for a long time.
Green comment : Actual pairs with active trading (thus, the pairs with the maximum number of uptrend days)
#-- Bot automation --
If you use 3commas or other trading bot platforms, you will have to set as comments the BUY/SELL alerts. <= Which is what I am doing with it.
Doing so make you trade on multiple pairs, automatically.
However, you will need to set as input the 3commas signal.
For the moment, the script will be needed for it.
However, I will soon release a V2 taking as input the 3commas strategy comments.
For the moment, you can set the script in different webpages and follow BUY/SELL orders by eyes of alerts. ;)
#-- Parameters --
*** Parameters have been intensively optimized using 35 cryptocurrency pairsin order to have potent efficiency for each of them. I would recommend to only change the METHOD SETTINGS. For the others, I don't recommend any modifications. If you need precision on the other parameters of if you want to modify them, more informations can be found in my previous scripts and ***
Filtering method :
Used to reduce or not the risks. If you set Wavetrend, less trades will be conducted as the wavetrend filter from will be used. If you choose Fractal, no Wavetrend signals will be used.
(I prefer to use Fractal as I am using 1 or 3 minutes timeframes for the moment.)
Market Pairs : You can select on which markets the script will trade by enabling it's checkbox.
*** Also, for the moment, due to Pinescript limitation, I cannot set as input the number of active pairs. So I set 5, after optimization, as the default number of maximum pairs to trade on. Thus, you should open webpage for each ENABLED pairs and load the script in each on them. 5 Tradingview webpage will always be active. ***
#-- Timeframe --
You can use the script for Short or Long term trading:
For Short term, you will have to use 1 or 3 minutes timeframes, depending on the volatility of the market. (What I am using)
For Long term, you will have to use 5 or 15 minutes timeframes, depending on the volatility of the market.
#-- Strategy abilities and results for more than a month of activity -- *** !!! IMPORTANT SECTION !!! ***
I have simulated the profit for the 21 ACTIVE pairs I selected has been potent with my Fractal strategy. Different maximum number of trading pairs were used in order to find the best one. The script was run for the last 46 or 30 days.
Different timeframe have been used as pairs have different volatility.
*** If you use the script, SET IT UP with the following pairs and the following timeframes. ***
-------------------------------------------------------------------------------------------------------
Parameters | Maximum number of trading pairs
-------------------------------------------------------------------------------------------------------
Timeframe | Pairs | 1 2 3 5 6 10
-------------------------------------------------------------------------------------------------------
3M | SHIB | 0 0.98 3.63 2.17 2.56 2.56
1M | SOL | 0 1.5 1.08 1.26 0 0
3M | XRP | 10.5 4.56 3.29 2.19 1.52 1.52
3M | ETH | 9.94 6.97 4.55 3.45 2.19 2.19
3M | BTC | 1.7 2.32 1.74 1.88 1.33 1.33
3M | DOT | 0 3.5 2.32 2.27 1.99 1.99
1M | DOGE | 0 0 0 3.14 1.93 1.93
1M | LUNA | 0 0 0 0.23 2.35 2.35
3M | AVAX | 8.92 0 0.53 3.63 1.17 1.17
1M | HOT | 0 0 2.12 7.96 4.69 4.69
3M | GRT | 0 -1.09 -0.82 0.25 -0.191 0
1M | LINK | 0 0 0 0 0 0
1M | CHZ | 0 0 0.4 0.85 1.89 1.91
3M | WIN | 0 0 0.52 5.89 2.8 2..8
3M | ENJ | 32.63 15.65 12.55 10.31 5.62 5.62
3M | RUNE | 0 4.68 3.42 -1.18 2.3 2.3
3M | LTC | 0 -0.06 1.1 1.29 3.49 3.49
3M | BTT | 0 0 0 0.85 1.63 1.63
3M | BCH | 0 0 0 1.36 2.36 2.36
3M | WRX | 0.26 4.66 5.36 4.29 3.01 3.01
3M | ETC | -0.92 0 0 3.6 3.31 3.56
-------------------------------------------------------------------------------------------------------
Net profit % | 63.03 43.67 37.24 55.69 45.949 43.61
Number of days | 46 30 30 46 46 46
Net profit % per day | 1.38 1.46 1.25 1.22 1.00 0.95
-------------------------------------------------------------------------------------------------------
*** Therefore, we are around more than 1% per day in each case. ***
#-- Choosing pairs --
I selected the 35 cryptocurrencies which can be exchange with EUR and evaluated the ability of my Fractal script on them. The on which have been ENABLED (true) are the best.
BINANCE:SHIBEUR | true
BINANCE:SOLEUR | true
BINANCE:XRPEUR | true
BINANCE:ETHEUR | true
BINANCE:BTCEUR | true
BINANCE:DOTEUR | true
BINANCE:ENJEUR | true
BINANCE:DOGEEUR | true
BINANCE:LUNAEUR | true
BINANCE:VETEUR | false
BINANCE:BNBEUR | false
BINANCE:AVAXEUR | true
BINANCE:HOTEUR | true
BINANCE:EGLDEUR | false
BINANCE:GRTEUR | true
BINANCE:MATICEUR | false
BINANCE:LINKEUR | true
BINANCE:CHZEUR | true
BINANCE:ICPEUR | false
BINANCE:UNIEUR | false
BINANCE:WINEUR | true
BINANCE:ADAEUR | false
BINANCE:RUNEEUR | true
BINANCE:TRXEUR | false
BINANCE:THETAEUR | false
BINANCE:EOSEUR | false
BINANCE:LTCEUR | true
BINANCE:XLMEUR | false
BINANCE:BTTEUR | true
BINANCE:SXPEUR | false
BINANCE:LAZIOEUR | false
BINANCE:YFIEUR | false
BINANCE:BCHEUR | true
BINANCE:WRXEUR | true
BINANCE:ETCEUR | true
DCA Bot Long/Short Thanks to @TheTradingParrot for the inspiration and knowledge shared.
Thanks to @ericlin0122 for the original DCA Bot Emulator which is the backbone of this strategy.
The script simulates DCA strategy with parameters used in 3commas DCA bots for futures trading. Experiment with parameters
to find your trading setup.
Beware how large your total leveraged position is and how far can market go before you get liquidated!
Do that with the help of futures liquidation calculators you can find online!
I`ve added:
1) an internal average price and profit calculating, instead of TV`s native one, which is subject to severe slippage.
2) I`ve built a graphic interface, so levels are clearly visible and back-test analyzing made easier.
3) now both Long & Short direction of the strategy exist.
4) trailing TP which was featured in the initial script has been removed because TV`s execution model makes
it impossible to know how the real world trailing would have unfolded.
5) the table is self explanatory, and it is there to help you discover what happened and where.
6) vertical colored lines appear when the new maximum deviation from the original price has
been reached
All the trading happens with total account capital, and all order sizes inputs are expressed in percent.
Known issues:
When deviation is small, and the same candle triggers safety AND the close order, the initial orders are closed, but a
new one opens on the next candle. This is "resolved" by closing the unwanted trade forcefully on the next candle, affecting
profit calculating minimally and guaranteeing that what should be closed has been closed.
The code could be improved through use of arrays, making the table flexible so the number of rows should be dynamic depending
on the number of SOs.
!!!!! IMPORTANT!!!!!
This strategy script is made to receive a signal from an exterior study script, which should plot +100 for long or -100 for short
entry (that is by default - values can be changed in the strategy settings menu). That plot should be found in "Enter Trigger" input
dropdown menu at the bottom of strategy settings menu. Removing the "and trigger == long/short_trigger" condition from strategy entry
conditions makes the strategy open trades ASAP.
Cheers!
Grid Bot RSIGrid Bot Simulator. Based on RSI levels.
How it works:
Prices are divided into grids, or trade zones, that are based on RSI levels. Buys will trigger when the RSI crosses into a higher zone, after descending. Sells will trigger when the RSI crosses into a lower zone, after ascending. After triggering, a new signal will not be produced until the RSI progresses into better zone.
Standard Settings :
RSI Length
Number of Grids
RSI Type : Standard RSI or Jurik RSX (based on Everget’s formula)
Show All Grids
Experimental Features (Adjust in settings menu) :
No Trade Zone : RSI Levels where no trades will be signaled. Adjust to prevent over-buying/selling in narrow markets. Default: 35-65:
No Trade Zone (40-60)
Aggression Level : Increase aggressiveness to stack buys/sells at extreme RSI levels:
Aggression = high
Aggression = low
Market Direction : If market is trending up, the bot will skip every other sell ( = more buys than sells). If down, will skip every other buy (more sells than buys). Default: neutral.
Market Direction: down
Market Direction: neutral
ck - 3commas GRID bot VisualisationHi,
This is a very quick script indicator to show the “grid” for an active (or one you are planning to manually configure) 3commas Grid bot.
To use, you’ll need to go to your Grid bot page in 3commas and enter the Upper and Lower Limit Values, either from the “manual” section if you are planning a new Grid bot, or from an open Grid trade by clicking the monthly button and using the Upper value (in green) and the Lower value (in red).
Have fun!
Manual Entry & Bot Trailing Stop AlertsHello all,
Another useful script & indicator with alerts enabled for trailing stoploss in your toolbox!
If you manually start a deal on a bot or even manual trade, you can set your chart time frame, enter the price and the time and date of your entry, then configure an Alert to fire using the “Close Long”/“Close Short” alert trigger.
This indicator features:
Definable Hard Stoploss by % - if price drops to hit this value, immediately trigger a close
Definable “Trail” value using Ticks (one Tick = lowest tradeable unit for your chart)
Supports Longs and Shorts!
Ideal for connecting to your 3commas BitMEX bots for EthUSD or XbtUSD
The indicator plots onto the chart various signals, Red is the Hard Stoploss value, Yellow is your Entry price, Green is the Trailing Stop and White is the live Price Tracker.
Please Note: When you add this indicator to your chart you need to click the Cog/Settings icon to configure it!
Let me know what you think!
Thanks,
Chris
Crypto Money Bot - Trading Bot for Bitcoin (BTCUSD)This takes my previous script, adds even more logic conditions, and sets up long and short entries in a strategy that can trade.
Default settings with a $5,000 starting balance have shown this bot to get the following results:
Net Profit: $ 10302.70 / 206.05 %
EXAMPLES
LOGIC
This indicator looks for accumulation of buying and selling along with trend flows for oversold and overbought opportunities to align the trade entries. It does not trade all the time, but when it does pull a trade the success rates are higher.
You could choose to pair this with another indicator to do a manual entry, or to manage your stop losses and money management strategy.
PROOF
Check out the reviews on the original indicator that this is built upon (and more logic) is here:
NOTES
You can try this strategy on other charts if you want, it is only tested and supported on BTCUSD. To try it on ETHUSD, change the settings from BTC to ETH. If you get a "resolve_error" it means that specific coin is not supported.
ACCESS
If you'd like to use my custom indicator - send 0.05 BTC to 32Hagdtq7PCR4inF4ZPkCReEjyecm2eNaP then email me at samurai_crypto@protonmail.com with your TradingView username and your transaction ID and I will add you.
Costs are lifetime with full support via email on how to use it.
BTC 4h bot 2.0 AlertsThis is Alert version of BTC 4h bot 2.0.
Optimized for pairs BTC vs stablecoins, 4h timeframe.
HOW IT WORKS:
Script is based on the fact that there are certain phases of the market when there is a greater probability that BTC will go to one side or the other. To evaluate which phase we are in, the script uses "Main trend" and "Confirmation signals".
Main trend
- Is composed of a combination of several supertrends and moving averages. A Supertrend is a trend following indicator that helps in identifying whether we are in an uptrend or a downtrend. A higher factor is used to capture the main trend and not just small movements. In case the market goes sideways, the Supertrend does not work well, so it is a combination of multiple supertrends along with moving averages to differentiate a real strong trend from a range.
- It can be seen on the graph as a thick solid line.
- In an uptrend is green, in a downtrend red, gray represents the neutral zone.
Confirmation signals
- Are several script-evaluated indicators such as RSI , MACD , ADX and others, which serve to confirm the trend. In this case, it is the opposite way to the Main trend. Confirmation signals are used here to detect small movements. They are trying to capture bullish and bearish price momentum.
- On the graph they are seen as dashed lines above or below the Main trend (in the gray zone they are in the middle).
- It indicates only two signals, green for buy and red for sell.
HOW TO USE IT:
if the Main trend and Confirmation signals are of the same color, it will send a buy or sell signal, depending on which phase of the trend it is in. If the Main trend is e.g. in an uptrend and the market is going up, Confirmation signals should generate a lot of signals. But if the market starts to go in the opposite direction, Confirmation signals should generate fewer signals or none at all, thus reducing the number of wrong trades. In the gray zone of the Main trend it does not open positions.
To close position is possible to use stop loss and take profit or alternative could be to set very high TP value, thereby letting the script close the positions by itself by Stop Long or Stop Short.
The recommended setting is:
TP: 3.9%
SL: 4.7%.
In this case, it is a Alert version, where can be seen all the signals, which the script generates.
Green triangels indicate open Long.
Red triangels indicate open Short.
Small blue triangels indicate Stop Long position.
Small orange triangels indicate Stop Short position.
Signal is valid after bar is closed, so do not open a position before.
Script works well on Bitstamp, but also other exchanges with pair BTC/USD or BTC/stablecoins.
The script works consistently well over a long period of time, using past probabilities, but this does not guarantee future results.
BTC 4h bot 2.0 StrategyThis is Strategy version of BTC 4h bot 2.0.
Optimized for pairs BTC vs stablecoins, 4h timeframe.
HOW IT WORKS:
Script is based on the fact that there are certain phases of the market when there is a greater probability that BTC will go to one side or the other. To evaluate which phase we are in, the script uses "Main trend" and "Confirmation signals".
Main trend
- Is composed of a combination of several supertrends and moving averages. A Supertrend is a trend following indicator that helps in identifying whether we are in an uptrend or a downtrend. A higher factor is used to capture the main trend and not just small movements. In case the market goes sideways, the Supertrend does not work well, so it is a combination of multiple supertrends along with moving averages to differentiate a real strong trend from a range.
- It can be seen on the graph as a thick solid line.
- In an uptrend is green, in a downtrend red, gray represents the neutral zone.
Confirmation signals
- Are several script-evaluated indicators such as RSI , MACD , ADX and others, which serve to confirm the trend. In this case, it is the opposite way to the Main trend. Confirmation signals are used here to detect small movements. They are trying to capture bullish and bearish price momentum.
- On the graph they are seen as dashed lines above or below the Main trend (in the gray zone they are in the middle).
- It indicates only two signals, green for buy and red for sell.
HOW TO USE IT:
if the Main trend and Confirmation signals are of the same color, it will send a buy or sell signal, depending on which phase of the trend it is in. If the Main trend is e.g. in an uptrend and the market is going up, Confirmation signals should generate a lot of signals. But if the market starts to go in the opposite direction, Confirmation signals should generate fewer signals or none at all, thus reducing the number of wrong trades. In the gray zone of the Main trend it does not open positions.
To close position is possible to use stop loss and take profit or alternative could be to set very high TP value, thereby letting the script close the positions by itself.
The default setting is:
TP: 3.9%
SL: 4.7%.
In this case, it is a strategy to find out how the script worked in the past period. The longest period in which it is possible to test BTCUSD is on the Bitstamp exchange. The script works consistently well over a long period of time, using past probabilities, but this does not guarantee future results.
Combined Strategy Trading Bot (RSI ADX 20SMA)Trading Bot V1, This code implements a combined trading strategy that uses several indicators and strategies to make buy and sell decisions in the market. The code is written in Pine Script™, which is a programming language used in the TradingView platform. By BraelonWhitfield.Eth
The strategy uses the Average Directional Movement Index (ADX) and the Pine SuperTrend indicator to identify trends and price movements in the market. The SuperTrend indicator is a popular technical analysis tool that helps to identify the direction of the current trend and provides entry and exit points for trades.
The strategy also uses the Relative Strength Index (RSI) to identify overbought and oversold conditions in the market. The RSI is a momentum indicator that measures the speed and change of price movements in the market.
The first part of the code defines the inputs for the ADX and DI Length, which are used to calculate the ADX and DI values. The dirmov() function is used to calculate the positive and negative directional indicators (plusDM and minusDM) based on the high and low prices. The truerange variable is then calculated using the True Range (TR) formula. Finally, the plus and minus variables are calculated using the smoothed moving average of the plusDM and minusDM values.
The adx() function is then used to calculate the ADX values based on the plus and minus variables. The Pine SuperTrend indicator is defined using the pine_supertrend() function. This function uses the high-low average (hl2) and the Average True Range (ATR) to calculate the upper and lower bands for the indicator. The direction of the current trend is then determined based on whether the current price is above or below the upper or lower bands.
The RSI values are then calculated using the ta.rsi() function, with the inputs for the close price and the RSI period. The overbought and oversold conditions are defined using the OB and OS inputs, which specify the threshold values for the RSI. The upTrend and downTrend variables are defined based on the direction of the Pine SuperTrend indicator.
The next part of the code defines the 20-period Simple Moving Average (SMA) using the ta.sma() function. The os and ob variables are then calculated based on the RSI values and the OB and OS inputs. The strategy.entry() function is used to define the buy and sell orders based on the upTrend and downTrend variables, as well as the Pine SuperTrend indicator, the 20-period SMA, and the os variable.
The final part of the code defines the Channel Breakout Strategy using the ta.highest() and ta.lowest() functions to calculate the upper and lower bounds of the channel. The strategy.entry() function is then used to define the buy and sell orders based on whether the current price is above or below the upper or lower bounds.
In summary, this code implements a combined trading strategy that uses several indicators and strategies to make buy and sell decisions in the market. The strategy is designed to identify trends and price movements in the market, as well as overbought and oversold conditions, to provide entry and exit points for trades. The strategy uses the Pine SuperTrend indicator, the ADX and DI indicators, the RSI, and the 20-period SMA, as well as the Channel Breakout Strategy to make informed trading decisions.
MZ Momentum Non Repainting HTF HFT Scalper BotThis is an original script meant to be a high frequency trader that works on higher time frame calculations. I came up with the idea that using calculus I can figure out the actual rate of change and momentum with different calculations than the momentum indicator that is provided by trading view. Once momentum is shifted on a small time frame, it will provide an entry signal. The script is meant to be used on an algorithmic trading system for scalping purposes. It should be run on a one minute time frame.
Set it up on a one minute chart - setup your bot on a one minute interval.
Find the source of your data. You can use any time frame, open, close. high, low, olc4. Open is pretty much guaranteed to not have any repainting issues - although all the other calcs use a custom isbarconfirmed security repaint calculation.
Set your rate of change period - typically I use a one minute time frame for this as well - but set my length fairly long (30-40).
Then set your period for momentum calculation. This will sample the rate of change data to figure out your momentum. I typically try a setting of 6-8. If that doesn't work, try setting it about the same as the rate of change period and add or subtract a few from there.
Unfortunately due to various plotting constraints in Pinescript, you cannot plot the rate of change and momentum and price in the same.
Set your trigger point. I try values -30, -20, -10, 0, 1. Then finesse to get an earlier entry signal. You should account for a slight delay from the signal to the actual entry. Your backtest should test well, but please note that does not gaurantee results. In my findings, I have seen that there is a slight minimal delay between signal to entry and that can make the difference whether your trade is profitable or not.
Use the show data to show you additional data when you are backtesting. This can allow you to try to filter out results or market conditions that do not work. I typically work with the RSI and use the 30 minute and 15 minute RSIs. I make sure that it is trading within a certain band - about 40-75. You can try the inverse and only buy during really low RSI's as well.
Use the enter and close messages to setup your webhook messages. But I recommend to allow the algo trading platform to close the trade for you based on their calcs since that platform knows the actual price level and when it has become profitable.
Filters have been setup for
Moving Average Variants - any time frame, any length.
RSI - Any time frame, any length,
Future Plans: ATR Filter so you can filter out low volatility periods.
Send me a message with any suggestions.
DCA Bot for ProfitViewThe base for this strategy is the "Backtesting 3commas DCA Bot v2" script by rouxam. I have made some additions, edits, and fixes, as well as tailored it for usage with ProfitView.
The strategy works in such a way that you select one or multiple rules together, in order to determine when a trade should be initiated.
The selectable rules are:
RSI-7: Initiate trading when the 7 period RSI goes below a specified threshold.
Technicals: This is essentially the TradingView screener strength. A multitude of technical indicators combined that range from Strong Sell - Sell - Buy - Strong Buy.
QFL: Find a support/resistance line on a specified timeframe, and initiate trading only when the price is below a certain point from this line.
Once the deal start rule is met, trading will initiate, and a series of additional orders will be placed and spaced out according to the order settings set in the indicator. These orders includes Take Profit, Stoploss, Trailing Take Profit, and specified additional entry orders to DCA your way into a position.
The indicator is set up so that by hooking this up to ProfitView, all of the signals should automatically be replicated to your assigned exchange, along with discord/telegram notifications for when the deals start and end, and the resulting pnl.
If you want to use it for spot markets, while technically possible, you will need to significantly edit the PV Alert syntax that i have supplied below.
Run this on your testnet of choice, it is likely that there are undiscovered issues at this point.
The strategy currently only works with 'Longs' at the time of publishing, but may be subject to change.
==ProfitView Setup==
!!Important!!
The assigned PV Alert name must contain the keyword 'Long', fex "DCA Long"
Uncheck the Once per Bar advanced filter option on the PV Alert you use for this.
Copy/Paste the text into the PV Alert: pastebin.com
DCA Bot IndicatorName: DCA Bot Indicator
Category: Dollar Cost Average.
Operating mode: Alerts at a specific time, day of the week and day of the month.
Trades duration: N/A.
Timeframe: 1H
Suggested usage: long-term investing DCA strategies.
Entry: Only indicates the time and then the day of the week or the day of the month to buy.
Exit: As per long-term Investor’s strategy.
Usage: If you want to perform a Dollar Cost Averaging approach with:
- Daily purchases (at a specific time)
- Weekly purchases (at a specific time and day of the week)
- Monthly purchases (at a specific time and day of the month)
It is then possible to set the alert text with a preferred message or for use with trade automation systems. The green background identify the specific time chosen.
It is possible to identify through the Bias Analyzer the best time for the daily purchase.
Configuration:
- Buy Time: hour you would like to buy, please consider that the script is executed at the end of the defined time, so if you would like to buy at 2, have to put 1.
- Buy only Days of the Week: you can select the day you want.
- Buy only on Day of Month, you can specify a specific day.
Credits:
- dsteaves for inspiration
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 !
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!
CRYPTO TRADING BOT - 1min SCALPING LONG/SHORTHOW IT WORKS
The core concept behind the script is the determination of the current market mood in sense of creating a trendline indicator using EMA / SMA .
By using this trend indication alongside RSI / MACD value range, we are able to enter/exit the market in both directions: LONG and SHORT .
In case of confirmed false signals, we try to catch up the next good opportunity to minimise loss and to close the current trade.
If the chance for a good countertrade is given at this point, the market is going to be entered reversely.
Should the market move incredibly fast against our trade direction, we use proven Stop-loss targets, to bring our children into safety.
As many others, we could tell you now, that we used state-of-the-art machine learning algorithms
as well as highly sophisticated methods to gain our results.
As a fact, we started with an idea, using simple and common trading tools/indicators,
as a solid ground. We did not want to reinvent the wheel and it paid off.
GET A WORKING SCRIPT
The algorithm we are using has initially been created with a self-developed backtesting software.
To be able to deliver gas to our engine, we have bought a huge amount of OHLCV data for the 1min chart.
After many exhausting and frustrating weeks of our workflow-rotation (develop, fail, fix, test, repeat)
we finally got confirmation for all of our conditions/expectations, so we translated our algorithm into pine-code.
THE RESULTS
Since we have been using our Pine-Strategy alongside our backtesting software , we checked all the results provided by TradingView
and our tool to be 100% sure every outcome, every entry and every exit is exactly the same.
We did this for several months and since 2021 June we have been using it with real Alerts, coped to our binance account.
Below, you will find how the performance for the previous months looked like (every trade was made with 100% of the capital, of course using proper stop loss and take profit):
September 2020: 15.18%
October 2020: 36.17%
November 2020: 15.12%
December 2020: 48.58%
January 2021: 150.10%
February 2021: 45.96%
March 2021: 46.48%
April 2021: 4.96%
May 2021: 43.48%
June 2021: -28.99%
Juli 2021: 15.63%
August 2021 (so far): 11.57%
Accumulated Profit: 1,979.01%
To prove our results, we will link an excel sheet for every trade that was made within this timerange.
Link: docs.google.com
ABOUT US
We are two good friends, both incredibly interested in mathematics, software engineering, AI and algorithmics. After getting introduced into the crypto space
by a common friend, we started figuring out that there is a pattern behind every big or small move which happens in an asset.
This is where the passion for creating a CRYPTO TRADING BOT began. It was our goal, to create this script for the 1min Timeframe, so the software can react quickly when a
big or small move is happening - this is why it is called a SCALPING SCRIPT .
We are incredibly proud of this script and would like to share it with this amazing community - just hit us up on TradingView!
Bollinger Bands + RSI Alerts for 3commas/DCA botHey Folks !
This is in indicator that generates buy alerts combining Bollinger Bands and RSI.
RSI validates the BB signal by confirming we are not in an oversold area.
Interval: 3m to 15m
Recommended settings for 3commas DCA bot
- TP/TTP: 0.3%/0.1%,
- Base Order: Your choice ,
- Safety Order: 1.2 * Your choice of base order
- Safety Order Volume Scale: 1.2,
- Safety Order Step Scale: 1.5,
- Price Deviation to Open Safety Order (% from initial order): 0.25%,
- Max Safety Trades Count: 7
- DO NOT USE STOP LOSS
> Create Alert with Buy Alert and link it to "Message for deal start signal"
Moon Bot Study w/ AlertsThis is an experimental strategy that trades based on the Moon Cycles
Works best on 4hr, tested mostly on BTC but maybe you can find other assets that also return profitably
Important: With much power comes much responsibility, use it wisely
*Study version of Moonbot Strategy with built-in alerts
Strategy Version:
Moon Bot StrategyThis is an experimental strategy that trades based on the Moon Cycles
Works best on 4hr, tested mostly on BTC but maybe you can find other assets that also return profitably
Important: With much power comes much responsibility, use it wisely
0.1% Commission Included in results
Study Version:
BLACKLISTED BOT V3 STRATEGYStudy used for the Blacklisted Trading Bot
This script uses a variation of ATR and Moving averages giving an alert for a fully automated trading solution.
Fine tuned parameters vary per coin which will be provided for the user after permission is granted.
To gain access to this strategy feel free to contact me directly using a private message.