Tangram Bot 2 - SmartbotPrimeira Versão do Script Tangram Bot 2 da Smartbot para tradingview.
A intenção é agilizar e fazer um teste prévio e rápido do setup.
O resultado indicado aqui jamais corresponderá a um resultado real. É apenas uma ferramenta de estudo.
Ainda falta fazer e melhorar a parte de gestão de risco.
Caso queria fazer alguma sugestão ao cógido para melhorar a gestão de risco ou caso tenha encontrado algum erro, favor comunicar.
O tangram bot 2 combina o uso de até dez Indicadores de Análise Técnica com Gerenciamento de Risco (stop gain, stop loss, stop móvel, realização parcial, bloqueio de reversões, lucro máximo por dia e prejuízo máximo por dia) e Filtros Diversos (sentido das operações, uso do after-market, bloqueio de nova entrada após saída, hora inicial e hora final para negociação). São utilizados os indicadores Médias Móveis, HiLo Activator, MACD, ADX, Estocástico, VWAP, IFR, Bandas de Bollinger, Stop ATR e SAR Parabólico
Cari dalam skrip untuk "bot"
Cryptocurrency trend following EMA Ribbon LONG only studyThis strategy is based on EMA Ribbon and uses multiple indicators to find optimal time to enter/exit the trade and filter out false signals. The script with default setting is developed mainly for trading altcoins/stable coin pair such as ADA(USDT etc on 4h timeframe but it can be applied to any pair/any timeframe with some settings adjustments.
For plot on chart features make sure that you have both study and strategy scripts on chart with same settings.
Strategy settings description:
1. Signal EMA Length - Value for exponencial moving average (slowest from EMA Ribbon)
1a. Buy price toleration (%) - Price deviation for filtering bounces of EMA - price must close defined percents above EMA to open long trade
1b. Sell price toleration (%) - Price deviation for filtering bounces of EMA - price must close defined percents bellow EMA to close long trade
1c. EMA deelay - EMA id delayed by defined bars for smoothening
2. Filter by Fast EMA - Strategy filters signals to prevent buy while coin is dropping
2a. Fast EMA Length - Value for fast exponencial moving average
3. Filter by SMA - Strategy filters signals to confirm trend change
3a. SMA Length - Value for simple moving average
4. Filter by RSI - Strategy filters signals to prevent buing/selling overbought/oversold coins
4a. RSI Length - Length of RSI identificator
4b. RSI Source candle - What price of candle is used for RSI calculation (open, close, high, low)
4c. RSI Long condition - When buy, RSI indicator must be below this value to prevent of buying already overbought coin
4d. RSI Short condition - When sell, RSI indicator must be above this value to prevent of selling already oversold coin
5. RSI Close Trade Condition - Strategy sell coin once RSI reach defined value
5a. RSI close trade condition - Sell once RSI indicator acquires defined value
6. Close trade by Take Profit or Stop Loss Condition (STRATEGY ONLY) - Strategy sell coin once defined take profit / stoploss level is reached
6a. Take Profit (%) - Take profit value in percent
6b. Stop Loss (%) - Stop loss value in percent
6c. Plot targets on chart - defined targets will be plotted as lines on chart
7. Date range from
7a From Year - To run strategy in interval
7b From Month - To run strategy in interval
7c From Day - To run strategy in interval
8. Date range to
8a To Year - To run strategy in interval
8b To Month - To run strategy in interval
8c To Day - To run strategy in interval
9. Wait to confirm the signal
9a Wait candless to buy - strategy will wait defined candless to confirm the signal before buy
9b Wait candless to sell - strategy will wait defined candless to confirm the signal before sell
10. Plotting on chart (STUDY ONLY)
10a Plot signal line channel with bows on chart
10b Plot simple moving average on chart
10c Plot EMA Ribbon on chart
10d Plot recent support and resistance levels on chart
11. Show Every signal (STUDY ONLY) - Unchecked shows only first signal based on strategy. But if you use take profit/stoploss settings within your bot, you might want to rebuy on next signal. Checked shows signal on each candle.
Throw on chart also buld-in RSI indicator and set the same as strategy
Notice that there might be false signals, especially when the coin is not trending or is strongly manipulated. Overall strategy is profitable though. You just take some minor loses and wont miss the big move.
You may also consider to compare buy&hold return vs profit from trading this strategy. In downtrend as we have seen recently, profit may not be as high as you expect but it is still much better than just hold and hope.
You can use the strategy script for fine tunning settings and find best settings for yourself.
Study script helps you to automate trading with use of alerts perharps with 3commas bot or even trade manually based on email/sms notification setted by tradingview
Notice that study script does not handle takeprofit/stoploss order. That is why sell arrows could be plotted by study script later than strategy script. To rebuy after takeprofit/stop-loss use "11. Show Every signal (STUDY ONLY)" setting
Make sure that you keep same settings for strategy and study scripts.
If you need any help with settings do not hesitate to ask. I would also appriciate any feedback and ideas how to improve this script.
Here is backtest result from 1. Nov 2018 using constant 100USD Buy ammount:
Cryptocurrency trend following EMA Ribbon LONG only strategyThis strategy is based on EMA Ribbon and uses multiple indicators to find optimal time to enter/exit the trade and filter out false signals. The script with default setting is developed mainly for trading altcoins/stable coin pair such as ADA/USDT etc on 4h timeframe but it can be applied to any pair/any timeframe with some settings adjustments.
For plot on chart features make sure that you have both study and strategy scripts on chart with same settings.
Strategy settings description:
1. Signal EMA Length - Value for exponencial moving average (slowest from EMA Ribbon)
1a. Buy price toleration (%) - Price deviation for filtering bounces of EMA - price must close defined percents above EMA to open long trade
1b. Sell price toleration (%) - Price deviation for filtering bounces of EMA - price must close defined percents bellow EMA to close long trade
1c. EMA deelay - EMA id delayed by defined bars for smoothening
2. Filter by Fast EMA - Strategy filters signals to prevent buy while coin is dropping
2a. Fast EMA Length - Value for fast exponencial moving average
3. Filter by SMA - Strategy filters signals to confirm trend change
3a. SMA Length - Value for simple moving average
4. Filter by RSI - Strategy filters signals to prevent buing/selling overbought/oversold coins
4a. RSI Length - Length of RSI identificator
4b. RSI Source candle - What price of candle is used for RSI calculation (open, close, high, low)
4c. RSI Long condition - When buy, RSI indicator must be below this value to prevent of buying already overbought coin
4d. RSI Short condition - When sell, RSI indicator must be above this value to prevent of selling already oversold coin
5. RSI Close Trade Condition - Strategy sell coin once RSI reach defined value
5a. RSI close trade condition - Sell once RSI indicator acquires defined value
6. Close trade by Take Profit or Stop Loss Condition (STRATEGY ONLY) - Strategy sell coin once defined take profit / stoploss level is reached
6a. Take Profit (%) - Take profit value in percent
6b. Stop Loss (%) - Stop loss value in percent
6c. Plot targets on chart - defined targets will be plotted as lines on chart
7. Date range from
7a From Year - To run strategy in interval
7b From Month - To run strategy in interval
7c From Day - To run strategy in interval
8. Date range to
8a To Year - To run strategy in interval
8b To Month - To run strategy in interval
8c To Day - To run strategy in interval
9. Wait to confirm the signal
9a Wait candless to buy - strategy will wait defined candless to confirm the signal before buy
9b Wait candless to sell - strategy will wait defined candless to confirm the signal before sell
10. Plotting on chart (STUDY ONLY)
10a Plot signal line channel with bows on chart
10b Plot simple moving average on chart
10c Plot EMA Ribbon on chart
10d Plot recent support and resistance levels on chart
11. Show Every signal (STUDY ONLY) - Unchecked shows only first signal based on strategy. But if you use take profit/stoploss settings within your bot, you might want to rebuy on next signal. Checked shows signal on each candle.
Throw on chart also buld-in RSI indicator and set the same as strategy
Notice that there might be false signals, especially when the coin is not trending or is strongly manipulated. Overall strategy is profitable though. You just take some minor loses and wont miss the big move.
You may also consider to compare buy&hold return vs profit from trading this strategy. In downtrend as we have seen recently, profit may not be as high as you expect but it is still much better than just hold and hope.
You can use the strategy script for fine tunning settings and find best settings for yourself.
Study script helps you to automate trading with use of alerts perharps with 3commas bot or even trade manually based on email/sms notification setted by tradingview
Notice that study script does not handle takeprofit/stoploss order. That is why sell arrows could be plotted by study script later than strategy script. To rebuy after takeprofit/stop-loss use "11. Show Every signal (STUDY ONLY)" setting
Make sure that you keep same settings for strategy and study scripts.
If you need any help with settings do not hesitate to ask. I would also appriciate any feedback and ideas how to improve this script.
Here is backtest result from 1. Nov 2018 using constant 100USD Buy ammount:
Cryptocurrency trend following LONG only strategyThis strategy uses multiple indicators to find optimal time to enter/exit the trade. The default setting is mainly for trading bitcoin/stable coin pair such as USDT etc on 1h timeframe but it can be applied to any pair/any timeframe with some settings adjustments.
Strategy settings description:
ID Name Descrption
1 FastMA - Value for fast exponencial moving average
2 SlowEMA - Value for slow exponencial moving average
3 SMA - Value for simple moving average
4 RSI Length - Length of RSI identificator
5 RSI Source candle - What price of candle is used for RSI calculation (open, close, high, low)
6 RSI Long condition - When buy, RSI indicator must be below this value to prevent of buying already overbought coin
7 RSI Short condition - When sell, RSI indicator must be above this value to prevent of selling already oversold coin
8 RSI close trade condition - Sell once RSI indicator acquires defined value
9 Take Profit (%) - Take profit value in percent
10 Stop Loss (%) - Stop loss value in percent
11 Long price toleration (%) - Price deviation for filtering bounces of simple moving average - price must close defined percents above SMA to open long trade
12 Short price toleration (%) - Price deviation for filtering bounces of simple moving average - price must close defined percents bellow SMA to close long trade
13 From Year - To run strategy in interval
14 From Month - To run strategy in interval
15 From Day - To run strategy in interval
16 To Year - To run strategy in interval
17 To Month - To run strategy in interval
18 To Day - To run strategy in interval
19 Show every signal? - (Study only) Unchecked shows only first signal based on strategy. But if you use take profit/stoploss settings within your bot, you might want to rebuy on next signal. Checked shows signal on each candle.
Notice that there are also false signals, especially when the coin is not trending or is strongly manipulated. Overall strategy is profitable though. You just take some minor loses and wont miss the big move.
You may also consider to compare buy&hold return vs profit from trading this strategy. In downtrend as we have seen recently, profit may not be as high as you expect but it is still much better than just hold and hope.
You can use the strategy script for fine tunning settings and find best settings for yourself
Study script helps you to automate trading with use of alerts perharps with 3commas bot or even trade manually based on email/sms notification setted by tradingview
Make sure that you keep same settings for strategy and study scripts.
If you need any help with settings do not hesitate to ask. I would also appriciate any feedback and ideas how to improve this script.
Here is backtest result from 23.08.2017:
Cryptocurrency trend following LONG only studyThis strategy uses multiple indicators to find optimal time to enter/exit the trade. The default setting is mainly for trading bitcoin/stable coin pair such as USDT etc on 1h timeframe but it can be applied to any pair/any timeframe with some settings adjustments.
Strategy settings description:
ID Name Descrption
1 FastMA - Value for fast exponencial moving average
2 SlowEMA - Value for slow exponencial moving average
3 SMA - Value for simple moving average
4 RSI Length - Length of RSI identificator
5 RSI Source candle - What price of candle is used for RSI calculation (open, close, high, low)
6 RSI Long condition - When buy, RSI indicator must be below this value to prevent of buying already overbought coin
7 RSI Short condition - When sell, RSI indicator must be above this value to prevent of selling already oversold coin
8 RSI close trade condition - Sell once RSI indicator acquires defined value
9 Take Profit (%) - Take profit value in percent
10 Stop Loss (%) - Stop loss value in percent
11 Long price toleration (%) - Price deviation for filtering bounces of simple moving average - price must close defined percents above SMA to open long trade
12 Short price toleration (%) - Price deviation for filtering bounces of simple moving average - price must close defined percents bellow SMA to close long trade
13 From Year - To run strategy in interval
14 From Month - To run strategy in interval
15 From Day - To run strategy in interval
16 To Year - To run strategy in interval
17 To Month - To run strategy in interval
18 To Day - To run strategy in interval
19 Show every signal? - (Study only) Unchecked shows only first signal based on strategy. But if you use take profit/stoploss settings within your bot, you might want to rebuy on next signal. Checked shows signal on each candle.
Notice that there are also false signals, especially when the coin is not trending or is strongly manipulated. Overall strategy is profitable though. You just take some minor loses and wont miss the big move.
You may also consider to compare buy&hold return vs profit from trading this strategy. In downtrend as we have seen recently, profit may not be as high as you expect but it is still much better than just hold and hope.
You can use the strategy script for fine tunning settings and find best settings for yourself
Study script helps you to automate trading with use of alerts perharps with 3commas bot or even trade manually based on email/sms notification setted by tradingview
Make sure that you keep same settings for strategy and study scripts.
If you need any help with settings do not hesitate to ask. I would also appriciate any feedback and ideas how to improve this script.
Here is backtest result from 23.08.2017:
5 EMAs plus Crossing AlertsHi all,
This is a simple indicator that plots 5 EMA lines of your choice to the screen.
Can be used to trigger scalping Bots (stoploss around 0.5% recommended, take profit 1% or higher, please backtest!)
Also can be used for manual scalping, 1 or 2 candles at a time.
Features:
1) Alerts are triggered when EMAs 1 (Signal line) and 2 (Baseline) cross - a Long signal is called if the cross is above EMA 3 (Trendline), a short if the cross is below EMA3
2) Signals are represented visually as a triangle on the chart, below the candles is a long, above is a short
3) TradingView Alerts can be easily set as I have labelled the signals clearly as many other Indicators like this aren’t easy to work out if trying to create alerts to trigger a 3commas bot, for example!
Each EMA is fully customisable and if you wish to take advantage of the alerts, only a few simple rules need to be followed:
EMA1 needs to be less than EMA2.
EMA2 needs to be the same or greater than EMA3
That’s it, happy trading!
Big shout out to B and the gang over at Crypto Trading Group!
EMA Bot Trigger - 14,26,55Work In Progress - Currently will send Long/Short triggers when EMA 14 Crosses EMA 26 - whether the cross is above the EMA 55 determines whether to Long or Short.
inwCoin SUPER HMA StrategyImproved version of inwCoin HMA Aggressive Strategy.
Filter out random trade from sideway period and wait for trend only.
Work very well on BTCUSD3M at OKEX with leverage 20x ( with the help of trailing start/stop bot, of course )
If you have OKex bot/ Or plan to write one. This strategy is the best bet.
If you want sourcecode, I can give you for 0.1 BTC :) Send BTC to address below and IM me for acknowledgement.
BTC : 3BmqVW8eqE3qAGdtCdYGFYKbMwEALAhSEp
Check some backtest result here : imgur.com
Backtest result for various trade% : imgur.com
Swing trade - Libertus - STRATEGYHello all.
Month of hard work, testing and fine tunning went into making of this strategy.
I wanted to be able to leave trading to bot and spend more time away from charts and this strategy finally enabled me to do just that!
It's a swing trade strategy which will always keep you in trade (if used on exchange which allows you to short).
If you use 4H time frame you'll get about 2-3 trades a week.
As you should be able to see bellow, strategy has very good profitability of 60+% in last 6 months with small drag-down and nice profits.
It's optimized for ETH on 4H time, but settings can be adapted for different assets and time frames.
Best settings for ETH 4H time frame are default 0/0 with both Filter 1 and Filter 2 enabled.
Settings can be changed in positive +1, +2, +3 etc., and negative -1, -2, -3...
Strategy profitability is based on buying and selling 10 ETH (not more, not less) in every trade. You can see +20 or -20 on every trade which means 10 ETH for closing current position and 10 ETH for opening new position. If you are trading more or less then this, you can easily calculate your profitability via this.
Indicator which could be used manually or via bot is in production, will be finished soon!
Good luck trading!
MACs EasyMoney - BOT Trade with AlertSytemsNew Version: MACs EasyMoney - BOT Trade with AlertSytems
Introducing the BOT version with proper alerts systems to enter and exit trades.
Also furnished with latest noise filtering architecture to this tool.
Strategy Test report for this tool - holds the Profit Factor of 134 - based on '1 contract' size with '0.25% commission' rate as well.
(Means it is very solid and healthy Profit Factor . happy to say that, you wont get any like this in today's Market)
Refer the Strategy Publication for details.
Thanks,
Mac.
PREMIUM CRYPTO TRADING BOT Trading signals confirmed by 6 sources.
Multiple timeframes. 1min - 4hours
Any Alt coin including BTC.
3 separate signals for scalping, intraday and swing trading.
Perfect entries when combining all the confirmations. (Candle color change, triangle signal, traffic lights at the top and bottom, scalp line color change, intraday line color change and trend indicator (Swing) line position.
We are actively improving on this bot and new updates will be saves on your bot too.
Contact me if you would like to use our bot.
14/28 Day SMA Divergence and RSI - No RepaintIf you are interested in purchasing my algorithmic trading bot that receives Tradingview indicator alerts via email and then executes them in Bittrex, please visit my product page here: ilikestocks.com Additionally, I would love to create video/blog guides on creating Tradingview scripts or strategies. If you are a knowledgeable in finance or other related fields and would like to be featured on my page, please contact me at tanner@ilikestocks.com.
No crossovers were used in this script, and this is likely the reason for the no repaint(Correct me if wrong).
This strategy script uses a 14-day SMA signal line, a 28-day SMA and RSI. The strategy works by determining whether the (14-day SMA is above the 28-day SMA and the RSI levels are overbought(below 30)) or RSI is very overbought(below 13 or so). Once either of these conditions have been met, a long position is opened.
The initial long position must be partially closed by the take profit first and then the final close is executed if the 14-day signal SMA is below the 28-day SMA; you may also exclusively use take profit to close positions.
The green plotted spikes are the initial long position conditions. The orange plotted spikes are take profit signals once a long position is opened. The red plotted spikes are plotted when the SMA 14-day is below the 28-day SMA.
Please do leave constructive criticism or comments below because it helps me better create scripts!
Bottoms Up w/ Buy and Sell AlertsBITMEX:XBTUSD
This indicator is best used on 4hr candles. It produces a buy/long and sell/short alert with pre-coded syntax for Autoview. There are four alerts total, 2 for BitMEX testnet and 2 for BitMEX (each has a buy/sell alert). The alerts are pre-coded for BitMEX
****be sure to edit the message script to your desired contract amount and leverage****
This script will also work on Profit Trailer, but you will need to change the alert message syntax to match your exchange. You will also want to adjust your bot's selling strategy to hold the coin longer. This is not a quick scalp of a coin, this is intended to buy a coin and ride its trend longer. This is more of an automated swing trader rather than a scalping opportunity like most bots use.
Deep Pockets BOTThis script repaints.. don't use without using it with my bot!!! ONLY my bot knows how to use this script and get the results stated.
CMYK RMI TRIPLE Automated study for Autoview▼ This is the study version of the script, For usage with Autoview
◊ Introduction
This script makes use of three RMI 's, that indicate Overbought/Oversold on different timescales that correspond with Frequency’s that move the market.
◊ Origin
The Relative Momentum Index was developed by Roger Altman and was introduced in his article in the February, 1993 issue of Technical Analysis of Stocks & Commodities magazine.
While RSI counts up and down ticks from close to close, the Relative Momentum Index counts up and down ticks from the close relative to a close x number of days ago.
This results in an RSI that is smoother, and has another setting for fine tuning results.
This bot originated out of Project XIAM , an investigative script that outlined my approach towards Automated Trading Strategies.
Are you interested in writing bots yourself ? check out the beta version of this script.
It has many bugs, but also most of the Skeleton.
◊ Usage
This script is intended for Automated Trading with AUTOVIEW or TVAUTOTRADER , on the 1 minute chart.
◊ Features Summary
Overlay Mode
Indicator Mode
Three RMI's
Trend adjustment
Pyramiding
Ignore first entries
Take Profit
Stop Loss
Interval between Entries
Multiring Fix
Alert signal Seperation
◊ Community
Wanna try this script out ? need help resolving a problem ?
CMYK :: discord.gg
AUTOVIEW :: discordapp.com
TRADINGVIEW UNOFFICIAL :: discord.gg
◊ Setting up Autoview Alerts
Use the study version of this script, To set up The Alerts Autoview Picks up on.
The Signals to work with are :
Open 1 Long
Use this to open one Long Position.
With quantity being : /
Once per bar
Being larger than 0
Comment example : e=exchange b=long q=amount t=market
Open 1 Short
Use this to open one Short Position.
With quantity being : /
Once per bar
Being larger than 0
Comment example : e=exchange b=short q=amount t=market
Close1 Position
Use this to Close The amount of one Open Position.
With quantity* being : /
Once per bar
Being larger than 0
Comment example : e=exchange c=position q=amount t=market
*Beware when using a percental % quantity, instead of an absolute quantity.
Percental Quantities are based on the , Not
And will change in absolute value relative to the amount of open trades.
Close All positions
Use this to Close All Open Positions.
With quantity being :
Once per bar
Being larger than 0
Comment example : e=exchange c=position t=market
For the specific Syntax used in the comment of the alert, visit Autoview .
◊ Setting up TVAutotrader
Use the strategy version of this script, And load it into TVAT .
◊ Backtesting
Use the strategy version of this script for backtesting.
◊ Contact
Wanna try this script out ? need help resolving a problem ?
CMYK :: discord.gg
CMYK XIAM OPEN◊ Introduction
This is project XIAM, a work in progress.
Recently i came across the repainting problem.
Since then i haven't seen any bot-code that makes > 5% profit in two weeks with 0.25% fees/trade.
People who make good bots either bluff or don't share the code.
they let you rent it.
I aim to understand, learn it, write it myself. And share my findings with whoever shares with me.
◊ Origin
Based on RMI (RSI with momentum) and SMA, and values derived from those.
◊ Usage
Currently an investigative script.
◊ Theoretical Approaches
Philosophy α :: Cleansignal
:: Cleaning up the signal, from irregularities that cause unpredictable results.
Merging available tickers of a pair into one.
Merging available tickers of different coins into one in the correct proportion. (eg. Crypto market cap)
Removing Jitter, and smoothing signal without delay.
Philosophy β :: Rythmic
:: Syncing into the rythm's, to never miss the que, and trade on every theoretical low/high
Searching Amplitude, Period, Phase Shift, Frequency's of the carrier waves.
Marking Acrivity/inactivity of the carrier waves.
Partial Fractal repetition asses-able with above data?
Philosophy γ :: consequential
:: Seeking for Indicatory events and causal relations
Probability / reward.
Confirmation and culmination.
...
◊ Community
Wanna share your findings ? or need help resolving a problem ?
CMYK :: discord.gg
AUTOTVIEW :: discordapp.com
TA Trading Signal Bot//@version=5
indicator(title="TA Trading Signal Bot", overlay=true)
// Input settings
lengthEMA = input(20, title="EMA Length")
lengthRSI = input(14, title="RSI Length")
overbought = input(70, title="RSI Overbought Level")
oversold = input(30, title="RSI Oversold Level")
// Indicators
ema = ta.ema(close, lengthEMA)
rsi = ta.rsi(close, lengthRSI)
macdline = ta.ema(close, 12) - ta.ema(close, 26)
signalline = ta.ema(macdline, 9)
// Buy/Sell Conditions
crossoverRSI = ta.crossover(rsi, oversold)
crossoverMACD = ta.crossover(macdline, signalline)
buySignal = crossoverRSI and close > ema and crossoverMACD
// Plot Buy Signal
plotshape(series=buySignal, location=location.belowbar, color=color.green, style=shape.labelup, title="BUY Signal")
John Bob-Trading-BotDeveloped by Ayebale John Bob with the help of his bestie, this innovative strategy combines advanced Smart Money Concepts with practical risk management tools to help traders identify and capitalize on key market moves.
Key Features:
Smart Money Concepts & Fair Value Gaps (FVG):
The strategy monitors price action for fair value gaps, which are visualized as extremely faint horizontal lines on the chart. These FVGs signal potential areas where institutional traders might have entered or exited positions.
Dynamic Entry Signals:
Buy signals are triggered when the price crosses above the 50-bar lowest low or when a bullish FVG is detected. Conversely, sell signals are generated when the price falls below the 50-bar highest high or a bearish FVG is identified. Each signal is visually marked on the chart with clear buy (green) and sell (red) labels.
Multi-Level Order Execution:
Once an entry signal occurs, the strategy places five separate orders, each with its own take-profit (TP) level. The TP levels are calculated dynamically using the Average True Range (ATR) and a set of predefined multipliers. This allows traders to scale out of positions as the market moves favorably.
Dynamic Risk Management:
A stop-loss is automatically set at a distance determined by the ATR, ensuring that risk is managed in accordance with current market volatility.
Real-Time Trade Information Table:
In the bottom-right corner of the chart, a trade information table displays essential details about the current trade:
Side: Displays "BUY NOW" (with a dark green background) for long entries or "SELL NOW" (with a dark red background) for short entries.
Entry Price & Stop-Loss: Shows the entry price (highlighted in green) and the corresponding stop-loss level (highlighted in red).
Take-Profit Levels: Lists the five TP levels, each of which turns green once the market price reaches that target.
Timer: A live timer in minutes counts from the moment the current trade trigger started, helping traders track the duration of their active trades.
Visual Progress Bar:
A histogram-style progress bar is plotted on the chart, visually representing the percentage gain (or loss) relative to the entry price.
This strategy was meticulously designed to incorporate both technical analysis and smart risk management, offering a robust trading solution that adapts to changing market conditions. Whether you're a seasoned trader or just starting out, the AyebaleJohnBob Trading Bot equips you with the tools and visual cues needed to make well-informed trading decisions. Enjoy a seamless blend of strategy and style—crafted with passion by Ayebale John Bob and his bestie!
Ping Pong Bot StrategyOverview:
The Ping Pong Bot Strategy is designed for traders who focus on scalping and short-term opportunities using support and resistance levels. This strategy identifies potential buy entries when the price reaches a key support area and shows bullish momentum (a green bar). It aims to capitalize on small price movements with predefined risk management and take profit levels, making it suitable for active traders looking to maximize quick trades in trending or ranging markets.
How It Works:
Support & Resistance Calculation:
The strategy dynamically identifies support and resistance levels using the lowest and highest price points over a user-defined period. These levels help pinpoint potential price reversal areas, guiding traders on where to enter or exit trades.
Buy Entry Criteria:
A buy signal is triggered when the closing price is at or below the support level, and the bar is green (i.e., the closing price is higher than the opening price). This ensures that entries are made when prices show signs of upward momentum after hitting support.
Risk Management:
For each trade, a stop loss is calculated based on a user-defined risk percentage, helping to protect against significant drawdowns. Additionally, a take profit level is set at a ratio relative to the risk, ensuring a disciplined approach to exit points.
0.5% Take Profit Target:
The strategy also includes a 0.5% quick take profit target, indicated by an orange arrow when reached. This feature helps traders lock in small gains rapidly, making it ideal for volatile market conditions.
Customizable Inputs:
Length: Adjusts the period for calculating support and resistance levels.
Risk-Reward Ratio: Allows traders to set the desired risk-to-reward ratio for each trade.
Risk Percentage: Defines the risk tolerance for stop loss calculations.
Take Profit Target: Enables the customization of the quick take profit target.
Ideal For:
Traders who prefer an active trading style and want to leverage support and resistance levels for precise entries and exits. This strategy is particularly useful in markets that experience frequent price bounces between support and resistance, allowing traders to "ping pong" between these levels for profitable trades.
Note:
This strategy is developed mainly for the 5-minute chart and has not been tested on longer time frames. Users should perform their own testing and adjustments if using it on different time frames.
hamster-bot MRS 2 (simplified version) MRS - Mean Reversion Strategy (Countertrend) (Envelope strategy)
This script does not claim to be unique and does not mislead anyone. Even the unattractive backtest result is attached. The source code is open. The idea has been described many times in various sources. But at the same time, their collection in one place provides unique opportunities.
Published by popular demand and for ease of use. so that users can track the development of the script and can offer their ideas in the comments. Otherwise, you have to communicate in several telegram chats.
Representative of the family of counter-trend strategies. The basis of the strategy is Mean reversion . You can also read about the Envelope strategy .
Mean reversion , or reversion to the mean, is a theory used in finance that suggests that asset price volatility and historical returns eventually will revert to the long-run mean or average level of the entire dataset.
The strategy is very simple. Has very few settings. Good for beginners to get acquainted with algorithmic trading. A simple adjustment will help avoid overfitting. There are many variations of this strategy, but for understanding it is better to start with this implementation.
Principle of operation.
1)
A conventional MA is being built. (fuchsia line). A limit order is placed on this line to close the position.
2)
(green line) A limit order is placed on this line to open a long position
3)
(red line) A limit order is placed on this line to open a short position
Attention!
Please note that a limit order is used. Conclude that the strategy has a limited capacity. And the results obtained on low-liquid instruments will be too high in the tester. On real auctions there will be a different result.
Note for testing the strategy in the spot market:
When testing in the spot market, do not include both long and short at the same time. It is recommended to test only the long mode on the spot. Short mode for more advanced users.
Settings:
Available types of moving averages:
SMA
EMA
TEMA - triple exponential moving average
DEMA - Double Exponential Moving Average
ZLEMA - Zero lag exponential moving average
WMA - weighted moving average
Hma - Hull Moving Average
Thma - Triple Exponential Hull Moving Average
Ehma - Exponential Hull Moving Average
H - MA built based on highs for n candles | ta.highest(len)
L - MA built based on lows for n candles | ta.lowest(len)
DMA - Donchian Moving Average
A Kalman filter can be applied to all MA
The peculiarity of the strategy is a large selection of MA and the possibility of shifting lines. You can set up a reverse trending strategy on the Donchian channel for example.
Use Long - enable/disable opening a Long position
Use Short - enable/disable opening a Short position
Lot Long, % - % allocated from the deposit for opening a Long position. In the spot market, do not use % greater than 100%
Lot Short, % - allocated % of the deposit for opening a Short position
Start date - the beginning of the testing period
End date - the end of the testing period (Example: only August 2020 can be tested)
Mul - multiplier. Used to offset lines. Example:
Mul = 0.99 is shift -1%
Mul = 1.01 is shift +1%
Non-strict recommendations:
1) Test the SPOT market on crypto exchanges. (The countertrend strategy has liquidation risk on futures)
2) Symbols altcoin/bitcoin or altcoin/altcoin. Example: ETH/BTC or DOGE/ETH
3) Timeframe is usually 1 hour
If the script passes moderation, I will supplement it by adding separate settings for closing long and short positions according to their MA
DCA EMA Simple Bot [Starbots]
This is a simple idea of DCA trading on EMA crosses. Strategy is not repainting.
The difference between this and any other strategy is, that this script allows you to preset DCA buy triggers at desired levels and customize each DCA order size independently. Alerts are working, this strategy is easily used for automatic trading.
I mainly trade on Cryptohopper, Pionex, 3commas. This was created for community, alerts are working and non-repainting. Should work on any other as well.
Trading Condition:
It's buying when Fast EMA crosses up Slow EMA. Set your paramters.
It's selling if EMA's crosses back, signaling a sell. Optional.
DCA:
You can enter DCA on 20 custom levels or layers. It buys DCA when price hits the plotted blue line on the chart that's set by input % triggers. (buy 1st DCA at 2% drop, buy 2nd DCA at 5% drop,...)
Set your Inital Capital and Pyramiding in Properties tab, Initial Order Size and DCA Order Size (lot1,lot2,lot3,..), Order Type are changed in strategy inputs.
-By default you can see that we buy when EMA's cross up and signal a buy for 10% of equity, if market is dropping you will then place a first DCA order ( 20% equity) at 2% drop (lower) from initial order. If market keeps dropping you have more DCA levels where you can buy and average down your holding position. For selling you can use Take profit and Stop Loss targets that averages down multiple open positions, it will sell it once it reaches your desirable Take Profit and close a deal. You can also close your trade if EMA signals a sell.
Pyramiding - number of orders you can open at a time
Your first buy order is pyramiding 1. To allow it to buy 1 DCA or merge one time, set pyramding to 2.
Want to DCA 10 times? Set pyramiding at 11. (+1 always)
More features:
- Profit Calendar
- Show Balance label before every new trade
- DCA table - visualize how much of your investment is used in trades. If a background of the table is green you are okay, if the background color is red - you are using more money for orders than you actually have.
Buy Orders << Strategy Equity/Capital
- Show / Hide DCA lines - if your chart processing is getting slow you should hide some DCA levels to speed it up
- Backtesting Range - for testing the strategy in different time windows
- Alerts
When all trades are closed on your chart, winning rate of the strategy is 100% actually.
Win rate is shown differently as it's actually closing and opening every trade individually by default in TradingView system. We merge positions together and average it down into one big position to later sell for a profit (DCA).
You use this Trading Algorithm at your own risk. Do not trade before testing or invest something you cannot afford to lose on markets.
Jesse Livermore Strategy [Buy & Sell]Jesse Livermore was a famous trader who made a fortune in the early 20th century through his unique approach to trading.
While he did not leave behind a single, specific trading strategy that is attributed to him, I have tried to reproduce one.
His trading strategy was based on understanding market trends and sentiment, and he used several technical indicators to identify potential entry and exit points.
Some of the indicators he used include:
Price Action:
Jesse Livermore relied heavily on price action to make trading decisions.
He believed that the price itself was the best indicator of market sentiment, and that by analyzing the price movement, he could identify trends and market behavior.
Volume:
Livermore also used volume to confirm price movements.
He believed that a rise in volume along with a price increase indicated a strong bullish trend, while a decrease in volume with a price increase indicated a weak trend.
Pivot Points:
Another key component of Jesse Livermore's trading strategy was pivot points.
He used pivot points to identify potential support and resistance levels in the market, which he then used to identify potential entry and exit points.
Jesse Livermore outlined a simple trading system: wait for pivotal points before entering a trade.
When the points come into play, trade them using a buffer, trading in the direction of the overall market.
Let the price dictate your actions and stay with profitable trades until there is good reason to exit the trade.
The one I have tried to reproduce it's based on Pivot High and Low looking back 5 Days, and the average price oscillator.
When the price is bellow the support defined line it's time to Buy ( Long Position ), when the Price line is over the Resistance Line it's time to Sell ( Short Position )
This indicator has to be checked, and tried into a Real-Time context, so using the Replay functionality of TradingView is the best way to see and understand how Signals comes
(NB: look back into the chart without Replay should give you wrong Buy/Sell information)
The Indicator can be used on every TimeFrames, but the better ones are 5min - 15min.
I will add the possibility to choose the TimeFrames value for Pivot High and Low.
I will create a version with Alerts for Buy and Sell and the possibility to integrate it with "3commas Bot" where the best deal can be to set a TP to 1% for each Long or Short Entry.
Let's try it and comment for doubts or questions.
Entry Alert BotThis bot is SIMPLY to trigger an external webhook. You simply enter you take profit, entry, and stop loss %, and it will auto-populate the variables listed to the calculated values. That is all this script does. It does draw the trade on the chart for you. If you want a long, and price crosses up over you entry it will trigger the webhook. If you want a short and price crosses below your entry, it will trigger the webhook.