[astropark] 4h Crypto/USDT Strategy [alarms]Dear Followers,
today a new Swing and Scalper Tool , which works great for Cryptocurrencies on the USDT market on 4h timeframe .
This tool has some cool features:
it works on many timeframes, but best one is 4H timeframe : so you can enjoy both manual and bot trading by using a 24/7 running bot;
it comes in three working mode : default, alternative and high frequency ;
auto-stoploss: you can enable an stoploss in trade, bot will follow
It's always suggested to use a proper money and risk management in trades. This is not the "Holy Grail", it does not exist.
Strategy results are calculated from the beginning of 2018 till now, so more than 2 years, using 10000$ as initial capital and working at 1x leverage (no leverage at all!) and 0.1% trading fee already applied.
You can always DM me if you need any help to configure it on your preferred chart or if you want a customization of this bot for a specific pair.
This script will let you set all notification alerts you may need in order to be alerted on each triggered signals.
The one for backtesting purpose can be found by searching for the astropark's "4h Crypto/USDT Strategy" and then choosing the indicator with "strategy" suffix in the name, or you can find here below
This is a premium indicator , so send me a private message in order to get access to this script.
חפש סקריפטים עבור "bot"
Theft Indicator - BOOM Buy/Sell SignalsWhat is our indicator?
Theft Indicator - BOOM is a script that shows entry levels on a condition that is met with our special algo. The algo consists of crossovers, which are not visible but we take pride in the effort we have put to make this indicator have a high success rate as long as you have a scalping target price set.
Does it Repaint?
Our indicator does NOT re-paint. Although while setting an alert it may pop up the repaint alert, please take into consideration that once a signal is fired on a "CLOSED BAR", our signal will never disappear, they do not repaint.
What Markets is it usable with?
You can use it in any market, Forex, Stocks, Crypto, Indices. All time frames work, not all trades will be profitable (this is how trading is, you can take a loss sometimes). But the Majority is profitable if you use a stop loss and target price.
How to use:
Simple plug and play it to your chart, in addition to a few other indicators we will recommend to you (we still have not published them yet), and this will confirm your trades. You can also connect TV alerts with a bot and let it run. Please be aware that SLIPPAGE time is important, If you run a bot on this indicator you HAVE to know that the buy/sell price will be on the bar AFTER the Candle close (For example: the BUY/SELL alert is on a candle, the buy/sell your bot or you will execute WILL be in the following candle depending on your trading system. We advise you to not leave the bot to trade on its own, you have to monitor and have a specific syntax that we will help you with creating according to your trading style.
P.S: This is not financial advice, we are just sharing our indicator that we know has good results, and it will take time for people in -ve profiles to recover losses and for the profiting to be more profitable. We use a specific trading method that only works with it
You can contact me for more information about the indicator, Goodluck :)
Theft Indicator - Pip GainerWhat is our indicator?
Theft Indicator - Pip Gainer is one of our recent published scripts that shows price action on a certain period of time (We Use a modified version of ATR). We take pride in enabling trading to become easier for the experienced and the non-experienced traders around the globe. Buy & Sell alerts will be fired once a condition in our algo is met.
Does it Repaint?
Our indicator does NOT re-paint. Although while setting an alert it may pop up the repaint alert, please take into consideration that once a signal is fired on a "CLOSED BAR", our signal will never disappear, they do not repaint.
What Markets is it usable with?
This version is dedicated to FOREX markets, we encourage using it for low timeframes starting the 3 minute to the 15 minute timeframe. WE RECOMMEND USING THIS IN THE FOREX MARKET, ESPECIALLY WITH CURRENCY PAIRS.
How to use:
Simple plug and play it to your chart, in addition to a few other indicators we will recommend to you (we still have not published them yet), and this will confirm your trades. You can also connect TV alerts with a bot and let it run. Please be aware that SLIPPAGE time is important, If you run a bot on this indicator you HAVE to know that the buy/sell price will be on the bar AFTER the Candle close (For example: the BUY/SELL alert is on a candle, the buy/sell your bot or you will execute WILL be in the following candle depending on your trading system. We advise you to not leave the bot to trade on its own, you have to monitor and have a specific syntax that we will help you with creating according to your trading style.
How are the Buy/Sell Alerts fired?
We use the simple ATR (Average True Range) indicator. However we have modified the indicator to serve our trading system. Check below for a definition of what ATR is:
What is Average True Range - ATR?
The average true range (ATR) is a technical analysis indicator that measures market volatility by decomposing the entire range of an asset price for that period. Specifically, ATR is a measure of volatility introduced by market technician J. Welles Wilder Jr. The true range indicator is taken as the greatest of the following: current high less the current low; the absolute value of the current high less the previous close; and the absolute value of the current low less the previous close. The average true range is then a moving average, generally using 14 days, of the true ranges.
Why is our indicator special and different from the normal ATR indicators?
We have modified the mathematical equation and changed it slightly to give more accurate signals, we do not promise all trades are profitable, the use of this indicator is up to your own judgement and liability. We believe that we have an indicator like no other ATR.
P.S: This is not financial advice, we are just sharing our indicator that we know has good results, and it will take time for people in -ve profiles to recover losses and for the profiting to be more profitable. We use a specific trading method that only works with it
You can contact me for more information about the indicator, Goodluck :)
Theft Indicator - Buy/Sell Options Trading 1-3Mins ScalpingWhat is our indicator?
Theft Indicator - Buy/Sell Options Trading Signals is our third published script that shows price action on a certain period of time (We Use ATR indicator). We take pride in enabling trading to become easier for the experienced and the non-experienced traders around the globe. Buy & Sell alerts will be fired once a condition in our algo is met.
Does it Repaint?
Our indicator does NOT re-paint. Although while setting an alert it may pop up the repaint alert, please take into consideration that once a signal is fired on a "CLOSED BAR", our signal will never disappear, they do not repaint.
What Markets is it usable with?
You can use it in any market, Forex, Stocks, Crypto, Indices. All time frames are profitable, not all trades. But the Majority is profitable if you use a stop loss and target price. Although this one is for STOCK OPTIONS, it can work for other markets as well, but it will best perform with STOCKS & OPTIONS TRADING
How to use:
Simple plug and play it to your chart, in addition to a few other indicators we will recommend to you (we still have not published them yet), and this will confirm your trades. You can also connect TV alerts with a bot and let it run. Please be aware that SLIPPAGE time is important, If you run a bot on this indicator you HAVE to know that the buy/sell price will be on the bar AFTER the Candle close (For example: the BUY/SELL alert is on a candle, the buy/sell your bot or you will execute WILL be on the following candle depending on your trading system) THIS IS WITH EVERY SCRIPT, NOT MINE ONLY. We advise you to not leave the bot to trade on its own, you have to monitor and have a specific syntax that we will help you with creating according to your trading style.
How are the Buy/Sell Alerts fired?
We use the simple ATR (Average True Range) indicator. However we have modified the indicator to serve our trading system. Check below for a definition of what ATR is:
What is Average True Range - ATR?
The average true range (ATR) is a technical analysis indicator that measures market volatility by decomposing the entire range of an asset price for that period. Specifically, ATR is a measure of volatility introduced by market technician J. Welles Wilder Jr. The true range indicator is taken as the greatest of the following: current high less the current low; the absolute value of the current high less the previous close; and the absolute value of the current low less the previous close. The average true range is then a moving average, generally using 14 days, of the true ranges.
Why is our indicator special and different from the normal ATR indicators?
We have modified the uniqueness of ATR and changed it slightly to give more accurate signals, we do not promise all trades are profitable, the use of this indicator is up to your own judgement and liability. We believe that we have an indicator like no other ATR.
P.S: This is not financial advice, we are just sharing our indicator that we know has good results, and it will take time for people in -ve profiles to recover losses and for the profiting to be more profitable. We use a specific trading method that only works with it
You can contact me for more information about the indicator, Goodluck :)
Theft Indicator - 5Min Scalping SystemWhat is our indicator?
Theft Indicator - Buy & Sell Alert System is our first published script that shows price action on a certain period of time (We Use ATR indicator). We take pride in enabling trading to become easier for the experienced and the non-experienced traders around the globe. Buy & Sell alerts will be fired once a condition in our algo is met.
Does it Repaint?
Our indicator does NOT re-paint. Although while setting an alert it may pop up the repaint alert, please take into consideration that once a signal is fired on a "CLOSED BAR", our signal will never disappear, they do not repaint.
What Markets is it usable with?
You can use it in any market, Forex, Stocks, Crypto, Indices. All time frames are profitable, not all trades. But the Majority is profitable if you use a stop loss and target price.
How to use:
Simple plug and play it to your chart, in addition to a few other indicators we will recommend to you (we still have not published them yet), and this will confirm your trades. You can also connect TV alerts with a bot and let it run. Please be aware that SLIPPAGE time is important, If you run a bot on this indicator you HAVE to know that the buy/sell price will be on the bar AFTER the Candle close (For example: the BUY/SELL alert is on a candle, the buy/sell your bot or you will execute WILL be in the following candle depending on your trading system. We advise you to not leave the bot to trade on its own, you have to monitor and have a specific syntax that we will help you with creating according to your trading style.
How are the Buy/Sell Alerts fired?
We use the simple ATR (Average True Range) indicator. However we have modified the indicator to serve our trading system. Check below for a definition of what ATR is:
What is Average True Range - ATR?
The average true range (ATR) is a technical analysis indicator that measures market volatility by decomposing the entire range of an asset price for that period. Specifically, ATR is a measure of volatility introduced by market technician J. Welles Wilder Jr. The true range indicator is taken as the greatest of the following: current high less the current low; the absolute value of the current high less the previous close; and the absolute value of the current low less the previous close. The average true range is then a moving average, generally using 14 days, of the true ranges.
Why is our indicator special and different from the normal ATR indicators?
We have modified the mathematical equation and changed it slightly to give more accurate signals, we do not promise all trades are profitable, the use of this indicator is up to your own judgement and liability. We believe that we have an indicator like no other ATR.
P.S: This is not financial advice, we are just sharing our indicator that we know has good results, and it will take time for people in -ve profiles to recover losses and for the profiting to be more profitable. We use a specific trading method that only works with it
You can contact me for more information about the indicator, Goodluck :)
Backtesting & Trading Engine [PineCoders]The PineCoders Backtesting and Trading Engine is a sophisticated framework with hybrid code that can run as a study to generate alerts for automated or discretionary trading while simultaneously providing backtest results. It can also easily be converted to a TradingView strategy in order to run TV backtesting. The Engine comes with many built-in strats for entries, filters, stops and exits, but you can also add you own.
If, like any self-respecting strategy modeler should, you spend a reasonable amount of time constantly researching new strategies and tinkering, our hope is that the Engine will become your inseparable go-to tool to test the validity of your creations, as once your tests are conclusive, you will be able to run this code as a study to generate the alerts required to put it in real-world use, whether for discretionary trading or to interface with an execution bot/app. You may also find the backtesting results the Engine produces in study mode enough for your needs and spend most of your time there, only occasionally converting to strategy mode in order to backtest using TV backtesting.
As you will quickly grasp when you bring up this script’s Settings, this is a complex tool. While you will be able to see results very quickly by just putting it on a chart and using its built-in strategies, in order to reap the full benefits of the PineCoders Engine, you will need to invest the time required to understand the subtleties involved in putting all its potential into play.
Disclaimer: use the Engine at your own risk.
Before we delve in more detail, here’s a bird’s eye view of the Engine’s features:
More than 40 built-in strategies,
Customizable components,
Coupling with your own external indicator,
Simple conversion from Study to Strategy modes,
Post-Exit analysis to search for alternate trade outcomes,
Use of the Data Window to show detailed bar by bar trade information and global statistics, including some not provided by TV backtesting,
Plotting of reminders and generation of alerts on in-trade events.
By combining your own strats to the built-in strats supplied with the Engine, and then tuning the numerous options and parameters in the Inputs dialog box, you will be able to play what-if scenarios from an infinite number of permutations.
USE CASES
You have written an indicator that provides an entry strat but it’s missing other components like a filter and a stop strategy. You add a plot in your indicator that respects the Engine’s External Signal Protocol, connect it to the Engine by simply selecting your indicator’s plot name in the Engine’s Settings/Inputs and then run tests on different combinations of entry stops, in-trade stops and profit taking strats to find out which one produces the best results with your entry strat.
You are building a complex strategy that you will want to run as an indicator generating alerts to be sent to a third-party execution bot. You insert your code in the Engine’s modules and leverage its trade management code to quickly move your strategy into production.
You have many different filters and want to explore results using them separately or in combination. Integrate the filter code in the Engine and run through different permutations or hook up your filtering through the external input and control your filter combos from your indicator.
You are tweaking the parameters of your entry, filter or stop strat. You integrate it in the Engine and evaluate its performance using the Engine’s statistics.
You always wondered what results a random entry strat would yield on your markets. You use the Engine’s built-in random entry strat and test it using different combinations of filters, stop and exit strats.
You want to evaluate the impact of fees and slippage on your strategy. You use the Engine’s inputs to play with different values and get immediate feedback in the detailed numbers provided in the Data Window.
You just want to inspect the individual trades your strategy generates. You include it in the Engine and then inspect trades visually on your charts, looking at the numbers in the Data Window as you move your cursor around.
You have never written a production-grade strategy and you want to learn how. Inspect the code in the Engine; you will find essential components typical of what is being used in actual trading systems.
You have run your system for a while and have compiled actual slippage information and your broker/exchange has updated his fees schedule. You enter the information in the Engine and run it on your markets to see the impact this has on your results.
FEATURES
Before going into the detail of the Inputs and the Data Window numbers, here’s a more detailed overview of the Engine’s features.
Built-in strats
The engine comes with more than 40 pre-coded strategies for the following standard system components:
Entries,
Filters,
Entry stops,
2 stage in-trade stops with kick-in rules,
Pyramiding rules,
Hard exits.
While some of the filter and stop strats provided may be useful in production-quality systems, you will not devise crazy profit-generating systems using only the entry strats supplied; that part is still up to you, as will be finding the elusive combination of components that makes winning systems. The Engine will, however, provide you with a solid foundation where all the trade management nitty-gritty is handled for you. By binding your custom strats to the Engine, you will be able to build reliable systems of the best quality currently allowed on the TV platform.
On-chart trade information
As you move over the bars in a trade, you will see trade numbers in the Data Window change at each bar. The engine calculates the P&L at every bar, including slippage and fees that would be incurred were the trade exited at that bar’s close. If the trade includes pyramided entries, those will be taken into account as well, although for those, final fees and slippage are only calculated at the trade’s exit.
You can also see on-chart markers for the entry level, stop positions, in-trade special events and entries/exits (you will want to disable these when using the Engine in strategy mode to see TV backtesting results).
Customization
You can couple your own strats to the Engine in two ways:
1. By inserting your own code in the Engine’s different modules. The modular design should enable you to do so with minimal effort by following the instructions in the code.
2. By linking an external indicator to the engine. After making the proper selections in the engine’s Settings and providing values respecting the engine’s protocol, your external indicator can, when the Engine is used in Indicator mode only:
Tell the engine when to enter long or short trades, but let the engine’s in-trade stop and exit strats manage the exits,
Signal both entries and exits,
Provide an entry stop along with your entry signal,
Filter other entry signals generated by any of the engine’s entry strats.
Conversion from strategy to study
TradingView strategies are required to backtest using the TradingView backtesting feature, but if you want to generate alerts with your script, whether for automated trading or just to trigger alerts that you will use in discretionary trading, your code has to run as a study since, for the time being, strategies can’t generate alerts. From hereon we will use indicator as a synonym for study.
Unless you want to maintain two code bases, you will need hybrid code that easily flips between strategy and indicator modes, and your code will need to restrict its use of strategy() calls and their arguments if it’s going to be able to run both as an indicator and a strategy using the same trade logic. That’s one of the benefits of using this Engine. Once you will have entered your own strats in the Engine, it will be a matter of commenting/uncommenting only four lines of code to flip between indicator and strategy modes in a matter of seconds.
Additionally, even when running in Indicator mode, the Engine will still provide you with precious numbers on your individual trades and global results, some of which are not available with normal TradingView backtesting.
Post-Exit Analysis for alternate outcomes (PEA)
While typical backtesting shows results of trade outcomes, PEA focuses on what could have happened after the exit. The intention is to help traders get an idea of the opportunity/risk in the bars following the trade in order to evaluate if their exit strategies are too aggressive or conservative.
After a trade is exited, the Engine’s PEA module continues analyzing outcomes for a user-defined quantity of bars. It identifies the maximum opportunity and risk available in that space, and calculates the drawdown required to reach the highest opportunity level post-exit, while recording the number of bars to that point.
Typically, if you can’t find opportunity greater than 1X past your trade using a few different reasonable lengths of PEA, your strategy is doing pretty good at capturing opportunity. Remember that 100% of opportunity is never capturable. If, however, PEA was finding post-trade maximum opportunity of 3 or 4X with average drawdowns of 0.3 to those areas, this could be a clue revealing your system is exiting trades prematurely. To analyze PEA numbers, you can uncomment complete sets of plots in the Plot module to reveal detailed global and individual PEA numbers.
Statistics
The Engine provides stats on your trades that TV backtesting does not provide, such as:
Average Profitability Per Trade (APPT), aka statistical expectancy, a crucial value.
APPT per bar,
Average stop size,
Traded volume .
It also shows you on a trade-by-trade basis, on-going individual trade results and data.
In-trade events
In-trade events can plot reminders and trigger alerts when they occur. The built-in events are:
Price approaching stop,
Possible tops/bottoms,
Large stop movement (for discretionary trading where stop is moved manually),
Large price movements.
Slippage and Fees
Even when running in indicator mode, the Engine allows for slippage and fees to be included in the logic and test results.
Alerts
The alert creation mechanism allows you to configure alerts on any combination of the normal or pyramided entries, exits and in-trade events.
Backtesting results
A few words on the numbers calculated in the Engine. Priority is given to numbers not shown in TV backtesting, as you can readily convert the script to a strategy if you need them.
We have chosen to focus on numbers expressing results relative to X (the trade’s risk) rather than in absolute currency numbers or in other more conventional but less useful ways. For example, most of the individual trade results are not shown in percentages, as this unit of measure is often less meaningful than those expressed in units of risk (X). A trade that closes with a +25% result, for example, is a poor outcome if it was entered with a -50% stop. Expressed in X, this trade’s P&L becomes 0.5, which provides much better insight into the trade’s outcome. A trade that closes with a P&L of +2X has earned twice the risk incurred upon entry, which would represent a pre-trade risk:reward ratio of 2.
The way to go about it when you think in X’s and that you adopt the sound risk management policy to risk a fixed percentage of your account on each trade is to equate a currency value to a unit of X. E.g. your account is 10K USD and you decide you will risk a maximum of 1% of it on each trade. That means your unit of X for each trade is worth 100 USD. If your APPT is 2X, this means every time you risk 100 USD in a trade, you can expect to make, on average, 200 USD.
By presenting results this way, we hope that the Engine’s statistics will appeal to those cognisant of sound risk management strategies, while gently leading traders who aren’t, towards them.
We trade to turn in tangible profits of course, so at some point currency must come into play. Accordingly, some values such as equity, P&L, slippage and fees are expressed in currency.
Many of the usual numbers shown in TV backtests are nonetheless available, but they have been commented out in the Engine’s Plot module.
Position sizing and risk management
All good system designers understand that optimal risk management is at the very heart of all winning strategies. The risk in a trade is defined by the fraction of current equity represented by the amplitude of the stop, so in order to manage risk optimally on each trade, position size should adjust to the stop’s amplitude. Systems that enter trades with a fixed stop amplitude can get away with calculating position size as a fixed percentage of current equity. In the context of a test run where equity varies, what represents a fixed amount of risk translates into different currency values.
Dynamically adjusting position size throughout a system’s life is optimal in many ways. First, as position sizing will vary with current equity, it reproduces a behavioral pattern common to experienced traders, who will dial down risk when confronted to poor performance and increase it when performance improves. Second, limiting risk confers more predictability to statistical test results. Third, position sizing isn’t just about managing risk, it’s also about maximizing opportunity. By using the maximum leverage (no reference to trading on margin here) into the trade that your risk management strategy allows, a dynamic position size allows you to capture maximal opportunity.
To calculate position sizes using the fixed risk method, we use the following formula: Position = Account * MaxRisk% / Stop% [, which calculates a position size taking into account the trade’s entry stop so that if the trade is stopped out, 100 USD will be lost. For someone who manages risk this way, common instructions to invest a certain percentage of your account in a position are simply worthless, as they do not take into account the risk incurred in the trade.
The Engine lets you select either the fixed risk or fixed percentage of equity position sizing methods. The closest thing to dynamic position sizing that can currently be done with alerts is to use a bot that allows syntax to specify position size as a percentage of equity which, while being dynamic in the sense that it will adapt to current equity when the trade is entered, does not allow us to modulate position size using the stop’s amplitude. Changes to alerts are on the way which should solve this problem.
In order for you to simulate performance with the constraint of fixed position sizing, the Engine also offers a third, less preferable option, where position size is defined as a fixed percentage of initial capital so that it is constant throughout the test and will thus represent a varying proportion of current equity.
Let’s recap. The three position sizing methods the Engine offers are:
1. By specifying the maximum percentage of risk to incur on your remaining equity, so the Engine will dynamically adjust position size for each trade so that, combining the stop’s amplitude with position size will yield a fixed percentage of risk incurred on current equity,
2. By specifying a fixed percentage of remaining equity. Note that unless your system has a fixed stop at entry, this method will not provide maximal risk control, as risk will vary with the amplitude of the stop for every trade. This method, as the first, does however have the advantage of automatically adjusting position size to equity. It is the Engine’s default method because it has an equivalent in TV backtesting, so when flipping between indicator and strategy mode, test results will more or less correspond.
3. By specifying a fixed percentage of the Initial Capital. While this is the least preferable method, it nonetheless reflects the reality confronted by most system designers on TradingView today. In this case, risk varies both because the fixed position size in initial capital currency represents a varying percentage of remaining equity, and because the trade’s stop amplitude may vary, adding another variability vector to risk.
Note that the Engine cannot display equity results for strategies entering trades for a fixed amount of shares/contracts at a variable price.
SETTINGS/INPUTS
Because the initial text first published with a script cannot be edited later and because there are just too many options, the Engine’s Inputs will not be covered in minute detail, as they will most certainly evolve. We will go over them with broad strokes; you should be able to figure the rest out. If you have questions, just ask them here or in the PineCoders Telegram group.
Display
The display header’s checkbox does nothing.
For the moment, only one exit strategy uses a take profit level, so only that one will show information when checking “Show Take Profit Level”.
Entries
You can activate two simultaneous entry strats, each selected from the same set of strats contained in the Engine. If you select two and they fire simultaneously, the main strat’s signal will be used.
The random strat in each list uses a different seed, so you will get different results from each.
The “Filter transitions” and “Filter states” strats delegate signal generation to the selected filter(s). “Filter transitions” signals will only fire when the filter transitions into bull/bear state, so after a trade is stopped out, the next entry may take some time to trigger if the filter’s state does not change quickly. When you choose “Filter states”, then a new trade will be entered immediately after an exit in the direction the filter allows.
If you select “External Indicator”, your indicator will need to generate a +2/-2 (or a positive/negative stop value) to enter a long/short position, providing the selected filters allow for it. If you wish to use the Engine’s capacity to also derive the entry stop level from your indicator’s signal, then you must explicitly choose this option in the Entry Stops section.
Filters
You can activate as many filters as you wish; they are additive. The “Maximum stop allowed on entry” is an important component of proper risk management. If your system has an average 3% stop size and you need to trade using fixed position sizes because of alert/execution bot limitations, you must use this filter because if your system was to enter a trade with a 15% stop, that trade would incur 5 times the normal risk, and its result would account for an abnormally high proportion in your system’s performance.
Remember that any filter can also be used as an entry signal, either when it changes states, or whenever no trade is active and the filter is in a bull or bear mode.
Entry Stops
An entry stop must be selected in the Engine, as it requires a stop level before the in-trade stop is calculated. Until the selected in-trade stop strat generates a stop that comes closer to price than the entry stop (or respects another one of the in-trade stops kick in strats), the entry stop level is used.
It is here that you must select “External Indicator” if your indicator supplies a +price/-price value to be used as the entry stop. A +price is expected for a long entry and a -price value will enter a short with a stop at price. Note that the price is the absolute price, not an offset to the current price level.
In-Trade Stops
The Engine comes with many built-in in-trade stop strats. Note that some of them share the “Length” and “Multiple” field, so when you swap between them, be sure that the length and multiple in use correspond to what you want for that stop strat. Suggested defaults appear with the name of each strat in the dropdown.
In addition to the strat you wish to use, you must also determine when it kicks in to replace the initial entry’s stop, which is determined using different strats. For strats where you can define a positive or negative multiple of X, percentage or fixed value for a kick-in strat, a positive value is above the trade’s entry fill and a negative one below. A value of zero represents breakeven.
Pyramiding
What you specify in this section are the rules that allow pyramiding to happen. By themselves, these rules will not generate pyramiding entries. For those to happen, entry signals must be issued by one of the active entry strats, and conform to the pyramiding rules which act as a filter for them. The “Filter must allow entry” selection must be chosen if you want the usual system’s filters to act as additional filtering criteria for your pyramided entries.
Hard Exits
You can choose from a variety of hard exit strats. Hard exits are exit strategies which signal trade exits on specific events, as opposed to price breaching a stop level in In-Trade Stops strategies. They are self-explanatory. The last one labelled When Take Profit Level (multiple of X) is reached is the only one that uses a level, but contrary to stops, it is above price and while it is relative because it is expressed as a multiple of X, it does not move during the trade. This is the level called Take Profit that is show when the “Show Take Profit Level” checkbox is checked in the Display section.
While stops focus on managing risk, hard exit strategies try to put the emphasis on capturing opportunity.
Slippage
You can define it as a percentage or a fixed value, with different settings for entries and exits. The entry and exit markers on the chart show the impact of slippage on the entry price (the fill).
Fees
Fees, whether expressed as a percentage of position size in and out of the trade or as a fixed value per in and out, are in the same units of currency as the capital defined in the Position Sizing section. Fees being deducted from your Capital, they do not have an impact on the chart marker positions.
In-Trade Events
These events will only trigger during trades. They can be helpful to act as reminders for traders using the Engine as assistance to discretionary trading.
Post-Exit Analysis
It is normally on. Some of its results will show in the Global Numbers section of the Data Window. Only a few of the statistics generated are shown; many more are available, but commented out in the Plot module.
Date Range Filtering
Note that you don’t have to change the dates to enable/diable filtering. When you are done with a specific date range, just uncheck “Date Range Filtering” to disable date filtering.
Alert Triggers
Each selection corresponds to one condition. Conditions can be combined into a single alert as you please. Just be sure you have selected the ones you want to trigger the alert before you create the alert. For example, if you trade in both directions and you want a single alert to trigger on both types of exits, you must select both “Long Exit” and “Short Exit” before creating your alert.
Once the alert is triggered, these settings no longer have relevance as they have been saved with the alert.
When viewing charts where an alert has just triggered, if your alert triggers on more than one condition, you will need the appropriate markers active on your chart to figure out which condition triggered the alert, since plotting of markers is independent of alert management.
Position sizing
You have 3 options to determine position size:
1. Proportional to Stop -> Variable, with a cap on size.
2. Percentage of equity -> Variable.
3. Percentage of Initial Capital -> Fixed.
External Indicator
This is where you connect your indicator’s plot that will generate the signals the Engine will act upon. Remember this only works in Indicator mode.
DATA WINDOW INFORMATION
The top part of the window contains global numbers while the individual trade information appears in the bottom part. The different types of units used to express values are:
curr: denotes the currency used in the Position Sizing section of Inputs for the Initial Capital value.
quote: denotes quote currency, i.e. the value the instrument is expressed in, or the right side of the market pair (USD in EURUSD ).
X: the stop’s amplitude, itself expressed in quote currency, which we use to express a trade’s P&L, so that a trade with P&L=2X has made twice the stop’s amplitude in profit. This is sometimes referred to as R, since it represents one unit of risk. It is also the unit of measure used in the APPT, which denotes expected reward per unit of risk.
X%: is also the stop’s amplitude, but expressed as a percentage of the Entry Fill.
The numbers appearing in the Data Window are all prefixed:
“ALL:” the number is the average for all first entries and pyramided entries.
”1ST:” the number is for first entries only.
”PYR:” the number is for pyramided entries only.
”PEA:” the number is for Post-Exit Analyses
Global Numbers
Numbers in this section represent the results of all trades up to the cursor on the chart.
Average Profitability Per Trade (X): This value is the most important gauge of your strat’s worthiness. It represents the returns that can be expected from your strat for each unit of risk incurred. E.g.: your APPT is 2.0, thus for every unit of currency you invest in a trade, you can on average expect to obtain 2 after the trade. APPT is also referred to as “statistical expectancy”. If it is negative, your strategy is losing, even if your win rate is very good (it means your winning trades aren’t winning enough, or your losing trades lose too much, or both). Its counterpart in currency is also shown, as is the APPT/bar, which can be a useful gauge in deciding between rivalling systems.
Profit Factor: Gross of winning trades/Gross of losing trades. Strategy is profitable when >1. Not as useful as the APPT because it doesn’t take into account the win rate and the average win/loss per trade. It is calculated from the total winning/losing results of this particular backtest and has less predictive value than the APPT. A good profit factor together with a poor APPT means you just found a chart where your system outperformed. Relying too much on the profit factor is a bit like a poker player who would think going all in with two’s against aces is optimal because he just won a hand that way.
Win Rate: Percentage of winning trades out of all trades. Taken alone, it doesn’t have much to do with strategy profitability. You can have a win rate of 99% but if that one trade in 100 ruins you because of poor risk management, 99% doesn’t look so good anymore. This number speaks more of the system’s profile than its worthiness. Still, it can be useful to gauge if the system fits your personality. It can also be useful to traders intending to sell their systems, as low win rate systems are more difficult to sell and require more handholding of worried customers.
Equity (curr): This the sum of initial capital and the P&L of your system’s trades, including fees and slippage.
Return on Capital is the equivalent of TV’s Net Profit figure, i.e. the variation on your initial capital.
Maximum drawdown is the maximal drawdown from the highest equity point until the drop . There is also a close to close (meaning it doesn’t take into account in-trade variations) maximum drawdown value commented out in the code.
The next values are self-explanatory, until:
PYR: Avg Profitability Per Entry (X): this is the APPT for all pyramided entries.
PEA: Avg Max Opp . Available (X): the average maximal opportunity found in the Post-Exit Analyses.
PEA: Avg Drawdown to Max Opp . (X): this represents the maximum drawdown (incurred from the close at the beginning of the PEA analysis) required to reach the maximal opportunity point.
Trade Information
Numbers in this section concern only the current trade under the cursor. Most of them are self-explanatory. Use the description’s prefix to determine what the values applies to.
PYR: Avg Profitability Per Entry (X): While this value includes the impact of all current pyramided entries (and only those) and updates when you move your cursor around, P&L only reflects fees at the trade’s last bar.
PEA: Max Opp . Available (X): It’s the most profitable close reached post-trade, measured from the trade’s Exit Fill, expressed in the X value of the trade the PEA follows.
PEA: Drawdown to Max Opp . (X): This is the maximum drawdown from the trade’s Exit Fill that needs to be sustained in order to reach the maximum opportunity point, also expressed in X. Note that PEA numbers do not include slippage and fees.
EXTERNAL SIGNAL PROTOCOL
Only one external indicator can be connected to a script; in order to leverage its use to the fullest, the engine provides options to use it as either an entry signal, an entry/exit signal or a filter. When used as an entry signal, you can also use the signal to provide the entry’s stop. Here’s how this works:
For filter state: supply +1 for bull (long entries allowed), -1 for bear (short entries allowed).
For entry signals: supply +2 for long, -2 for short.
For exit signals: supply +3 for exit from long, -3 for exit from short.
To send an entry stop level with an entry signal: Send positive stop level for long entry (e.g. 103.33 to enter a long with a stop at 103.33), negative stop level for short entry (e.g. -103.33 to enter a short with a stop at 103.33). If you use this feature, your indicator will have to check for exact stop levels of 1.0, 2.0 or 3.0 and their negative counterparts, and fudge them with a tick in order to avoid confusion with other signals in the protocol.
Remember that mere generation of the values by your indicator will have no effect until you explicitly allow their use in the appropriate sections of the Engine’s Settings/Inputs.
An example of a script issuing a signal for the Engine is published by PineCoders.
RECOMMENDATIONS TO ASPIRING SYSTEM DESIGNERS
Stick to higher timeframes. On progressively lower timeframes, margins decrease and fees and slippage take a proportionally larger portion of profits, to the point where they can very easily turn a profitable strategy into a losing one. Additionally, your margin for error shrinks as the equilibrium of your system’s profitability becomes more fragile with the tight numbers involved in the shorter time frames. Avoid <1H time frames.
Know and calculate fees and slippage. To avoid market shock, backtest using conservative fees and slippage parameters. Systems rarely show unexpectedly good returns when they are confronted to the markets, so put all chances on your side by being outrageously conservative—or a the very least, realistic. Test results that do not include fees and slippage are worthless. Slippage is there for a reason, and that’s because our interventions in the market change the market. It is easier to find alpha in illiquid markets such as cryptos because not many large players participate in them. If your backtesting results are based on moving large positions and you don’t also add the inevitable slippage that will occur when you enter/exit thin markets, your backtesting will produce unrealistic results. Even if you do include large slippage in your settings, the Engine can only do so much as it will not let slippage push fills past the high or low of the entry bar, but the gap may be much larger in illiquid markets.
Never test and optimize your system on the same dataset , as that is the perfect recipe for overfitting or data dredging, which is trying to find one precise set of rules/parameters that works only on one dataset. These setups are the most fragile and often get destroyed when they meet the real world.
Try to find datasets yielding more than 100 trades. Less than that and results are not as reliable.
Consider all backtesting results with suspicion. If you never entertained sceptic tendencies, now is the time to begin. If your backtest results look really good, assume they are flawed, either because of your methodology, the data you’re using or the software doing the testing. Always assume the worse and learn proper backtesting techniques such as monte carlo simulations and walk forward analysis to avoid the traps and biases that unchecked greed will set for you. If you are not familiar with concepts such as survivor bias, lookahead bias and confirmation bias, learn about them.
Stick to simple bars or candles when designing systems. Other types of bars often do not yield reliable results, whether by design (Heikin Ashi) or because of the way they are implemented on TV (Renko bars).
Know that you don’t know and use that knowledge to learn more about systems and how to properly test them, about your biases, and about yourself.
Manage risk first , then capture opportunity.
Respect the inherent uncertainty of the future. Cleanse yourself of the sad arrogance and unchecked greed common to newcomers to trading. Strive for rationality. Respect the fact that while backtest results may look promising, there is no guarantee they will repeat in the future (there is actually a high probability they won’t!), because the future is fundamentally unknowable. If you develop a system that looks promising, don’t oversell it to others whose greed may lead them to entertain unreasonable expectations.
Have a plan. Understand what king of trading system you are trying to build. Have a clear picture or where entries, exits and other important levels will be in the sort of trade you are trying to create with your system. This stated direction will help you discard more efficiently many of the inevitably useless ideas that will pop up during system design.
Be wary of complexity. Experienced systems engineers understand how rapidly complexity builds when you assemble components together—however simple each one may be. The more complex your system, the more difficult it will be to manage.
Play! . Allow yourself time to play around when you design your systems. While much comes about from working with a purpose, great ideas sometimes come out of just trying things with no set goal, when you are stuck and don’t know how to move ahead. Have fun!
@LucF
NOTES
While the engine’s code can supply multiple consecutive entries of longs or shorts in order to scale positions (pyramid), all exits currently assume the execution bot will exit the totality of the position. No partial exits are currently possible with the Engine.
Because the Engine is literally crippled by the limitations on the number of plots a script can output on TV; it can only show a fraction of all the information it calculates in the Data Window. You will find in the Plot Module vast amounts of commented out lines that you can activate if you also disable an equivalent number of other plots. This may be useful to explore certain characteristics of your system in more detail.
When backtesting using the TV backtesting feature, you will need to provide the strategy parameters you wish to use through either Settings/Properties or by changing the default values in the code’s header. These values are defined in variables and used not only in the strategy() statement, but also as defaults in the Engine’s relevant Inputs.
If you want to test using pyramiding, then both the strategy’s Setting/Properties and the Engine’s Settings/Inputs need to allow pyramiding.
If you find any bugs in the Engine, please let us know.
THANKS
To @glaz for allowing the use of his unpublished MA Squize in the filters.
To @everget for his Chandelier stop code, which is also used as a filter in the Engine.
To @RicardoSantos for his pseudo-random generator, and because it’s from him that I first read in the Pine chat about the idea of using an external indicator as input into another. In the PineCoders group, @theheirophant then mentioned the idea of using it as a buy/sell signal and @simpelyfe showed a piece of code implementing the idea. That’s the tortuous story behind the use of the external indicator in the Engine.
To @admin for the Volatility stop’s original code and for the donchian function lifted from Ichimoku .
To @BobHoward21 for the v3 version of Volatility Stop .
To @scarf and @midtownsk8rguy for the color tuning.
To many other scripters who provided encouragement and suggestions for improvement during the long process of writing and testing this piece of code.
To J. Welles Wilder Jr. for ATR, used extensively throughout the Engine.
To TradingView for graciously making an account available to PineCoders.
And finally, to all fellow PineCoders for the constant intellectual stimulation; it is a privilege to share ideas with you all. The Engine is for all TradingView PineCoders, of course—but especially for you.
Look first. Then leap.
Easy Profits with TSI protect V-1 (Second publish)This is a simple script, giving open and close position signals.
I've added a trend strength protection which can be tuned to suit your preferences with regards to buys you would rather want to avoid.
There are two companion scripts so you can visually see straight forward entries without the "TSI".
The second companion is simply to visualize where the "TSI" confirms the trend strength according to your settings.
Tsi companion filled green will confirm a buy signal and the bot will receive a buy signal.
Tsi companion filled red will void the buy signal and the bot will not receive the buy signal.
The purpose for the "TSI" protection is to make it possible to filter out more negative trades in a bearish trend . (However note that being more aggressive with the "TSI" can result in blocking good trades).
I found with most scripts that it's inevitable that there will be negative trades when the chart is noisy and doesn't really have a direction.
Ultimately the goal is to minimize these trades and their percentages.
The reason I created the script was, because I found some scripts extremely complicated and not suited for beginners and someone who can't spend a lot of time on setups.
It's important to have protection settings off in your bot settings as this script is designed to get you out of negative positions as quickly as possible, eliminate big bags and rather find new entries when the trend changes bullish .
How effective this strategy will be is completely in your settings and time frames.
Very important to keep the following in mind:
1) The longer the time frame, the more accurate the back testing will be as spread and volume plays a big role in the back testing. Longer time frames finds less impact from these two factors.
2) Don't get nervous if you see lower prices during the trades this will happen as the defaults are more swing trade settings and could take a couple of days to close the trade.
3) When creating alerts make sure to use. "BUY" and "SELL" with "Shapes".
4) Use close off candle as repainting is greatly inevitable.
5) In current market conditions (April 2019) i find it most effective with 30min and Higher time frames. (I will update this statement when we pick up more confidence and movement in the market).
6) EXTREMELY IMPORTANT: ALWAYS CHECK THAT WHEN BACK TESTING THAT THE PERFORMANCE SUMMARY IS SET TO ("Easy Profits with TSI V-1").
Included scripts.
1) Easy profits with TSI protect V-1.
2) Easy profits with TSI ALERTS.
3) Easy profits cross companion.
4) Easy profits TSI companion.
Setup.
You can change your currency properties. Settings: Order size = Trading limit setting in your bot
Commission = Trading fees from your exchange
Currency = (BTC-pairs = Default)
Date range is straight forward with the option to highlight the back test period background.
Date range is adjustable in all four scripts.
Updates in progress.
Adding switches to the main script.
Any requests are welcome.
Fees for access will be 0.005 BTC .
All users with access will have access to all future updates regardless of price increases.
I would love to hand this script out for free but it does take a lot of time creating and testing these scripts.
However I will grant 2 Days access for requests. Once you would like to purchase, I will grant access to the alerts script.
I will be implementing a referral program...
Telegram group= Easy profits script.
Easy Profits with TSI protect V-1This is a simple script, giving open and close position signals.
I've added a trend strength protection which can be tuned to suit your preferences with regards to buys you would rather want to avoid.
There are two companion scripts so you can visually see straight forward entries without the "TSI".
The second companion is simply to visualize where the "TSI" confirms the trend strength according to your settings.
Tsi companion filled green will confirm a buy signal and the bot will receive a buy signal.
Tsi companion filled red will void the buy signal and the bot will not receive the buy signal.
The purpose for the "TSI" protection is to make it possible to filter out more negative trades in a bearish trend . (However note that being more aggressive with the "TSI" can result in blocking good trades).
I found with most scripts that it's inevitable that there will be negative trades when the chart is noisy and doesn't really have a direction.
Ultimately the goal is to minimize these trades and their percentages.
The reason I created the script was, because I found some scripts extremely complicated and not suited for beginners and someone who can't spend a lot of time on setups.
It's important to have protection settings off in your bot settings as this script is designed to get you out of negative positions as quickly as possible, eliminate big bags and rather find new entries when the trend changes bullish .
How effective this strategy will be is completely in your settings and time frames.
Very important to keep the following in mind:
1) The longer the time frame, the more accurate the back testing will be as spread and volume plays a big role in the back testing. Longer time frames finds less impact from these two factors.
2) Don't get nervous if you see lower prices during the trades this will happen as the defaults are more swing trade settings and could take a couple of days to close the trade.
3) When creating alerts make sure to use. "BUY" and "SELL" with "Shapes".
4) Use close off candle as repainting is greatly inevitable.
5) In current market conditions (April 2019) i find it most effective with 30min and Higher time frames. (I will update this statement when we pick up more confidence and movement in the market).
6) EXTREMELY IMPORTANT: ALWAYS CHECK THAT WHEN BACK TESTING THAT THE PERFORMANCE SUMMARY IS SET TO ("Easy Profits with TSI V-1").
Included scripts.
1) Easy profits with TSI protect V-1.
2) Easy profits with TSI ALERTS.
3) Easy profits cross companion.
4) Easy profits TSI companion.
Setup.
You can change your currency properties. Settings: Order size = Trading limit setting in your bot
Commission = Trading fees from your exchange
Currency = (BTC-pairs = Default)
Date range is straight forward with the option to highlight the back test period background.
Date range is adjustable in all four scripts.
Updates in progress.
Adding switches to the main script.
Any requests are welcome.
Fees for access will be 0.005 BTC .
All users with access will have access to all future updates regardless of price increases.
I would love to hand this script out for free but it does take a lot of time creating and testing these scripts.
However I will grant 2 Days access for requests. Once you would like to purchase, I will grant access to the alerts script.
I will be implementing a referral program...
Telegram group= Easy profits script.
Easy Profits with TSI protect V-1This is a simple script, giving open and close position signals.
I've added a trend strength protection which can be tuned to suit your preferences wit regards to buys you would rather want to avoid.
There are two companion scripts so you can visually see straight forward entries without the "TSI".
The second companion is simply to visualize where the "TSI" confirms the trend strength according to your settings.
Tsi companion filled green will confirm a buy signal and the bot will receive a buy signal.
Tsi companion filled red will void the buy signal and the bot will not receive the buy signal.
The purpose for the "TSI" protection is to make it possible to filter out more negative trades in a bearish trend. (However note that being more aggressive with the "TSI" can result in blocking good trades.
I found with most scripts that its inevitable that there will be negative trades when the chart is noisy and doesn't really have a direction.
Ultimately the goal is to minimize these trades and their percentages.
The reason I created the script was, because I found some scripts extremely complicated and not suited for beginners and someone who can't spend a lot of time on setups.
Its important to have protection settings off in your bot settings as this script is designed to get you out of negative positions as quickly as possible, eliminate big bags and rather find new entries when the trend changes bullish.
How effective this strategy will be is completely in your settings and time frames.
Very important to keep the following in mind:
1) The longer the time frame, the more curate the back testing will be as spread and volume plays a big role in the back testing. Longer time frames finds less impact from these two factors.
2) Don't get nervous if you see lower prices during the trades this will happen as the defaults are more swing trade settings and could take a couple of days to close the trade.
3) When creating alerts make sure to use. "BUY" and "SELL" with "Shapes".
4) Use close off candle as repainting is greatly inevitable.
5) In current market conditions (April 2019) i find it most effective with 30min and HigHer time frames. (I will update this statement when we pick up more confidence and movement in the market).
Included scripts.
1) Easy profits with TSI protect V-1.
2) Easy profits with TSI ALERTS.
3) Easy profits cross companion.
4) Easy profits TSI companion.
5) EXTREMELY IMPORTANT: ALWAYS CHECK THAT WHEN BACK TESTING THAT THE PERFORMANCE SUMMARY IS SET TO ("Easy Profits with TSI V-1").
Setup.
You can change your currency properties. Settings: Order size = Trading limit setting in your bot
Commission = Trading fees from your exchange
Currency = (BTC-pairs = Default)
Date range is straight forward with the option to highlight the back test period background.
Date range is adjustable in all four scripts.
Updates in progress.
Adding switches to the main script.
Any requests are welcome.
Fees for access will be 0.05 BTC.
All users with access will have access to all future updates regardless of price increases.
I would love to hand this script out for free but it does take a lot of time creating and testing these scripts.
I will be implementing a referral program...
Telegram group= Easy profits script.
Pharoceus CryptoScalper's RSI+BB Signal+AlertsDescription
This is an indicator with alerts/signals and it's designed for Cryptocurrency leverage trading (scalping). This indicator features, the most popularly used indicators in technical analysis and that is the Bollinger Bands and Relative Strenght Index (RSI). The CryptoScalper's RSI+BB Signal+Alerts was designed for use with ProfitTrailer V2 and can also be used with all other trading bots that allows alerts or on its own as a powerful market leverage trading indicator using alerts because it offers buy alerts as well.
The Pharoceus CryptoScalper's RSI+BB Signal+Alerts can be customized to any trader specific patterns and settings, making it so easy to use. With the Buy and Sell Signal feature, trading on any cryptocurrency exchange can be automated likewise with any crypto trading bot as stated previously; but I'll always recommend using it for buys only if you're using it with a bot. This indicator/script can be used with any base pair; BTC, ETH, and USD or USDT as well. This is also not affiliated with any bot or exchange and it's not advertising either ProfitTrailer or any bot or exchanges.
This is a free indicator for anyone to use, for access and support, also strategy, results and settings discussion, join the discord channel (link below) and come build a real community. If you want to support my work and more free signals, donations are highly encouraged.
I am not a financial adviser and all gains or losses are at the discretion of all users and I would not be held liable for any of the other. This effort is solely of an individual who believes Signals shouldn't have to cost traders an arm or a leg or taken as an opportunity to rip people off.
Also, I know a lot of people are asking for access to the ProfitTrailerV2 RSI+BB+SRSI+Stochastic Oscillator Signal+Alerts and have not gotten it. The reason was because beta-testers brought issues as regarding the buy signals and I'm revisiting that indicator and working on the issue. Should have made this known but TV doesn't allow edits after 15mins or I would make it known via comments soon.
discord.gg
BTC: 199qMzu4gvr3bUXWEpLG5uS6TEKKvw5pbe
ETH: 0xf8339952a224a228f2f8c58a5666a8ffleddebfb
BCH: qqmmds8u3f8m6ek387jtefg07525dvaxzqrshd86gz
BOLLedOverIntroduction
BOLLedOver leverages classic signal strategies typically seen in equity program trading algos. Interestingly, in the crypto world, these statistical methods don’t mean quite as much as crypto is generally random and spastic. (I find some of the online analysis humorous—“setting bottom when we cross the 50 day moving average”—really? Trend following is measured in minutes, hours or days, not weeks or months. BOLLedOver uses the Bollinger Band method with various filters to insure good buying and selling opportunities. These scripts use the same framework with different signaling strategies as I have found this a very useful way to “test and learn”. The framework allows configuration for “interesting” parameters to their underlying statistical functions. Trade execution strategies are equally as important than getting the right signals in place. In the live BOT version, the framework allows for MARKET orders only, and “chasing the book” which insures that you can place LIMIT orders attempting to be a “market maker” not “taker”. In addition, the framework takes a trailing STOP approach which eliminates a lot of risk on the down side.
FOR BOT RENTERS ONLY: With so much trading, fees and slippage can really make a difference. Some exchanges provide free trades (GDAX) if you make markets with your trading. This applies to both the BUY and SELL sides and proves very useful. A big mistake with newbies in this area is not considering cost (and slippage). The framework has yielded approximately 70-80% free trades (mileage varies based on statistical settings) with exchanges that have the market maker policy. Always, be conservative in back-testing the strategies with fee settings—this can quickly destroy profits. I have tested extensively on Binance, Bitfinex and GDAX and leave it to you to backtest your favorite exchange—BOLLedOver trades a lot with some settings, so if your exchange isn’t quite as reliable or has holes in the data the BOT may not perform as advertised.
Key Features
• Designed for market maker trading
• Leverages classic statistical models in a unique crypto way
• Trades when market is sideways or heading up, sleeps when heading down
• Two to three trades daily (depending on settings and market action)
• Tune-able with ample knobs and levers.
Parameters
Stop Loss % (default 97%) STOPs will be placed and ratchet up following stops with each 1% increase in price action.
Stop Loss Trail % (default 96%) Second STOP starts here.
Bollinger Bands Time Period (default 6) indicates 6 candles in calculation. BOLLedOver runs best at 15 minutes periods. Try your own setting with plenty of backtesting.
Average Volume (default 18) filters buy and sell signals
Buy ROC Length (default 75) number of candles averaged for positive rate of change , which gives the go ahead to act on a BUY signal. When markets are heading south the BOT goes to sleep. You might get a STOP LOSS haircut (default 3%, 2 to 1 chance if you are in a position), but no trade chattering in whipsaw downward spirals after that.
Sell ROC Length (default 85) number of candles averaged for a negative rate of change , which gives the go ahead to act on a SELL signal. Note: the tighter the Bollinger Bands (e.g. 5) the less likely a SELL will process before a STOP LOSS is reached making this parameter useless in those cases.
MACD – the moving average convergence/divergence is used to check the validity of BUY and SELL signals
MACD Fast Period (default 13)
MACD Slow Period (default 24)
MACD Signal Smoothing (default 8)
Candles to Wait After Trade (default 4) set to 0 to turn off. Keeps trades from occurring consecutively in pump and dump environment.
This script logic is available on cryptotrader.org as a rentable BOT. You will need API keys for automated trading.
BOLLedOverIntroduction
BOLLedOver leverages classic signal strategies typically seen in equity program trading algos. Interestingly, in the crypto world, these statistical methods don’t mean quite as much as crypto is generally random and spastic. (I find some of the online analysis humorous—“setting bottom when we cross the 50 day moving average”—really? Trend following is measured in minutes, hours or days, not weeks or months. BOLLedOver uses the Bollinger Band method with various filters to insure good buying and selling opportunities. All my scripts use the same framework with different signaling strategies as I have found this a very useful way to “test and learn”. The framework allows configuration for “interesting” parameters to their underlying statistical functions. In addition, I have found that trade execution strategies are far more important than getting the right signals in place. In the live BOT version, my framework allows for MARKET orders only, and “chasing the book” which insures that you can place LIMIT orders attempting to be a “market maker” not “taker”. In addition, the framework takes a trailing STOP approach which eliminates a lot of risk on the down side.
With so much trading, fees and slippage can really make a difference. Some exchanges provide free trades (GDAX) if you make markets with your trading. This applies to both the BUY and SELL sides and proves very useful. A big mistake with newbies in this area is not considering cost (and slippage). My BOTs have yielded approximately 70-80% free trades (mileage varies based on statistical settings) with exchanges that have the market maker policy. Always, be conservative in back-testing the strategies with fee settings—this can quickly destroy profits.
I have tested extensively on Binance, Bitfinex and GDAX and leave it to you to backtest your favorite exchange—BOLLedOver trades a lot with some settings, so if your exchange isn’t quite as reliable or has holes in the data the BOT may not perform as advertised.
Key Features
• Designed for market maker trading
• Leverages classic statistical models in a unique crypto way
• Trades when market is sideways or heading up, sleeps when heading down
• Two to three trades daily (depending on settings and market action)
• Tune-able with ample knobs and levers.
Parameters
Stop Loss % (default 98%) STOPs will be placed and ratchet up following stops with each 1% increase in price action.
Stop Loss Trail % (default 96%) Second STOP starts here.
Bollinger Bands Time Period (default 6) indicates 6 candles in calculation. BOLLedOver runs best at 15 minutes periods. Try your own setting with plenty of backtesting.
Average Volume (default 18) filters buy and sell signals
Buy ROC Length (default 75) number of candles averaged for positive rate of change, which gives the go ahead to act on a BUY signal. When markets are heading south the BOT goes to sleep. You might get a STOP LOSS haircut (default 3%, 2 to 1 chance if you are in a position), but no trade chattering in whipsaw downward spirals after that.
Sell ROC Length (default 85) number of candles averaged for a negative rate of change, which gives the go ahead to act on a SELL signal. Note: the tighter the Bollinger Bands (e.g. 5) the less likely a SELL will process before a STOP LOSS is reached making this parameter useless in those cases.
MACD – the moving average convergence/divergence is used to check the validity of BUY and SELL signals
MACD Fast Period (default 10)
MACD Slow Period (default 24)
MACD Signal Smoothing (default 10)
Candles to Wait After Trade (default 10) set to 0 to turn off. Keeps trades from occurring consecutively in pump and dump environment.
[3Commas] Signal BuilderSignal Builder is a tool designed to help traders create custom buy and sell signals by combining multiple technical indicators. Its flexibility allows traders to set conditions based on their specific strategy, whether they’re into scalping, swing trading, or long-term investing. Additionally, its integration with 3Commas bots makes it a powerful choice for those looking to automate their trades, though it’s also ideal for traders who prefer receiving alerts and making manual decisions.
🔵 How does Signal Builder work?
Signal Builder allows users to define custom conditions using popular technical indicators, which, when met, generate clear buy or sell signals. These signals can be used to trigger TradingView alerts, ensuring that you never miss a market opportunity. Additionally, all conditions are evaluated using "AND" logic, meaning signals are only activated when all user-defined conditions are met. This increases precision and helps avoid false signals.
🔵 Available indicators and recommended settings:
Signal Builder provides access to a wide range of technical indicators, each customizable to popular settings that maximize effectiveness:
RSI (Relative Strength Index): An oscillator that measures the relative strength of price over a specific period. Traders typically configure it with 14 periods, using levels of 30 (oversold) and 70 (overbought) to identify potential reversals.
MACD (Moving Average Convergence Divergence): A key indicator tracking the crossover between two moving averages. Common settings include 12 and 26 periods for the moving averages, with a 9-period signal line to detect trend changes.
Ultimate Oscillator: Combines three different time frames to offer a comprehensive view of buying and selling pressure. Popular settings are 7, 14, and 28 periods.
Bollinger Bands %B: Provides insight into where the price is relative to its upper and lower bands. Standard settings include a 20-period moving average and a standard deviation of 2.
ADX (Average Directional Index): Measures the strength of a trend. Values above 25 typically indicate a strong trend, while values below suggest weak or sideways movement.
Stochastic Oscillator: A momentum indicator comparing the closing price to its range over a defined period. Popular configurations include 14 periods for %K and 3 for %D smoothing.
Parabolic SAR: Ideal for identifying trend reversals and entry/exit points. Commonly configured with a 0.02 step and a 0.2 maximum.
Money Flow Index (MFI): Similar to RSI but incorporates volume into the calculation. Standard settings use 14 periods, with levels of 20 and 80 as oversold and overbought thresholds.
Commodity Channel Index (CCI): Measures the deviation of price from its average. Traders often use a 20-period setting with levels of +100 and -100 to identify extreme overbought or oversold conditions.
Heikin Ashi Candles: These candles smooth out price fluctuations to show clearer trends. Commonly used in trend-following strategies to filter market noise.
🔵 How to use Signal Builder:
Configure indicators: Select the indicators that best fit your strategy and adjust their settings as needed. You can combine multiple indicators to define precise entry and exit conditions.
Define custom signals: Create buy or sell conditions that trigger when your selected indicators meet the criteria you’ve set. For example, configure a buy signal when RSI crosses above 30 and MACD confirms with a bullish crossover.
TradingView alerts: Set up alerts in TradingView to receive real-time notifications when the conditions you’ve defined are met, allowing you to react quickly to market opportunities without constantly monitoring charts.
Monitor with the panel: Signal Builder includes a visual panel that shows active conditions for each indicator in real time, helping you keep track of signals without manually checking each indicator.
🔵 3Commas integration:
In addition to being a valuable tool for any trader, Signal Builder is optimized to work seamlessly with 3Commas bots through Webhooks. This allows you to automate your trades based on the signals you’ve configured, ensuring that no opportunity is missed when your defined conditions are met. If you prefer automation, Signal Builder can send buy or sell signals to your 3Commas bots, enhancing your trading process and helping you manage multiple trades more efficiently.
🔵 Example of use:
Imagine you trade in volatile markets and want to trigger a sell signal when:
Stochastic Oscillator indicates overbought conditions with the %K value crossing below 80.
Bollinger Bands %B shows the price has surpassed the upper band, suggesting a potential reversal.
ADX is below 20, indicating that the trend is weak and could be about to change.
With Signal Builder , you can configure these conditions to trigger a sell signal only when all are met simultaneously. Then, you can set up a TradingView alert to notify you as soon as the signal is activated, giving you the opportunity to react quickly and adjust your strategy accordingly.
👨🏻💻💭 If this tool helps your trading strategy, don’t forget to give it a boost! Feel free to share in the comments how you're using it or if you have any questions.
_________________________________________________________________
The information and publications within the 3Commas TradingView account are not meant to be and do not constitute financial, investment, trading, or other types of advice or recommendations supplied or endorsed by 3Commas and any of the parties acting on behalf of 3Commas, including its employees, contractors, ambassadors, etc.
Overnight Positioning w EMA - Strategy [presentTrading]I've recently started researching Market Timing strategies, and it’s proving to be quite an interesting area of study. The idea of predicting optimal times to enter and exit the market, based on historical data and various indicators, brings a dynamic edge to trading. Additionally, it is integrated with the 3commas bot for automated trade execution.
I'm still working on it. Welcome to share your point of view.
█ Introduction and How it is Different
The "Overnight Positioning with EMA " is designed to capitalize on market inefficiencies during the overnight trading period. This strategy takes a position shortly before the market closes and exits shortly after it opens the following day. What sets this strategy apart is the integration of an optional Exponential Moving Average (EMA) filter, which ensures that trades are aligned with the underlying trend. The strategy provides flexibility by allowing users to select between different global market sessions, such as the US, Asia, and Europe.
It is integrated with the 3commas bot for automated trade execution and has a built-in mechanism to avoid holding positions over the weekend by force-closing positions on Fridays before the market closes.
BTCUSD 20 mins Performance
█ Strategy, How it Works: Detailed Explanation
The core logic of this strategy is simple: enter trades before market close and exit them after market open, taking advantage of potential price movements during the overnight period. Here’s how it works in more detail:
🔶 Market Timing
The strategy determines the local market open and close times based on the selected market (US, Asia, Europe) and adjusts entry and exit points accordingly. The entry is triggered a specific number of minutes before market close, and the exit is triggered a specific number of minutes after market open.
🔶 EMA Filter
The strategy includes an optional EMA filter to help ensure that trades are taken in the direction of the prevailing trend. The EMA is calculated over a user-defined timeframe and length. The entry is only allowed if the closing price is above the EMA (for long positions), which helps to filter out trades that might go against the trend.
The EMA formula:
```
EMA(t) = +
```
Where:
- EMA(t) is the current EMA value
- Close(t) is the current closing price
- n is the length of the EMA
- EMA(t-1) is the previous period's EMA value
🔶 Entry Logic
The strategy monitors the market time in the selected timezone. Once the current time reaches the defined entry period (e.g., 20 minutes before market close), and the EMA condition is satisfied, a long position is entered.
- Entry time calculation:
```
entryTime = marketCloseTime - entryMinutesBeforeClose * 60 * 1000
```
🔶 Exit Logic
Exits are triggered based on a specified time after the market opens. The strategy checks if the current time is within the defined exit period (e.g., 20 minutes after market open) and closes any open long positions.
- Exit time calculation:
exitTime = marketOpenTime + exitMinutesAfterOpen * 60 * 1000
🔶 Force Close on Fridays
To avoid the risk of holding positions over the weekend, the strategy force-closes any open positions 5 minutes before the market close on Fridays.
- Force close logic:
isFriday = (dayofweek(currentTime, marketTimezone) == dayofweek.friday)
█ Trade Direction
This strategy is designed exclusively for long trades. It enters a long position before market close and exits the position after market open. There is no shorting involved in this strategy, and it focuses on capturing upward momentum during the overnight session.
█ Usage
This strategy is suitable for traders who want to take advantage of price movements that occur during the overnight period without holding positions for extended periods. It automates entry and exit times, ensuring that trades are placed at the appropriate times based on the market session selected by the user. The 3commas bot integration also allows for automated execution, making it ideal for traders who wish to set it and forget it. The strategy is flexible enough to work across various global markets, depending on the trader's preference.
█ Default Settings
1. entryMinutesBeforeClose (Default = 20 minutes):
This setting determines how many minutes before the market close the strategy will enter a long position. A shorter duration could mean missing out on potential movements, while a longer duration could expose the position to greater price fluctuations before the market closes.
2. exitMinutesAfterOpen (Default = 20 minutes):
This setting controls how many minutes after the market opens the position will be exited. A shorter exit time minimizes exposure to market volatility at the open, while a longer exit time could capture more of the overnight price movement.
3. emaLength (Default = 100):
The length of the EMA affects how the strategy filters trades. A shorter EMA (e.g., 50) reacts more quickly to price changes, allowing more frequent entries, while a longer EMA (e.g., 200) smooths out price action and only allows entries when there is a stronger underlying trend.
The effect of using a longer EMA (e.g., 200) would be:
```
EMA(t) = +
```
4. emaTimeframe (Default = 240):
This is the timeframe used for calculating the EMA. A higher timeframe (e.g., 360) would base entries on longer-term trends, while a shorter timeframe (e.g., 60) would respond more quickly to price movements, potentially allowing more frequent trades.
5. useEMA (Default = true):
This toggle enables or disables the EMA filter. When enabled, trades are only taken when the price is above the EMA. Disabling the EMA allows the strategy to enter trades without any trend validation, which could increase the number of trades but also increase risk.
6. Market Selection (Default = US):
This setting determines which global market's open and close times the strategy will use. The selection of the market affects the timing of entries and exits and should be chosen based on the user's preference or geographic focus.
TrippleMACDCryptocurrency Scalping Strategy for 1m Timeframe
Introduction:
Welcome to our cutting-edge cryptocurrency scalping strategy tailored specifically for the 1-minute timeframe. By combining three MACD indicators with different parameters and averaging them, along with applying RSI, we've developed a highly effective strategy for maximizing profits in the cryptocurrency market. This strategy is designed for automated trading through our bot, which executes trades using hooks. All trades are calculated for long positions only, ensuring optimal performance in a fast-paced market.
Key Components:
MACD (Moving Average Convergence Divergence):
We've utilized three MACD indicators with varying parameters to capture different aspects of market momentum.
Averaging these MACD indicators helps smooth out noise and provides a more reliable signal for trading decisions.
RSI (Relative Strength Index):
RSI serves as a complementary indicator, providing insights into the strength of bullish trends.
By incorporating RSI, we enhance the accuracy of our entry and exit points, ensuring timely execution of trades.
Strategy Overview:
Long Position Entries:
Initiate long positions when all three MACD indicators signal bullish momentum and the RSI confirms bullish strength.
This combination of indicators increases the probability of successful trades, allowing us to capitalize on uptrends effectively.
Utilizing Linear Regression:
Linear regression is employed to identify consolidation phases in the market.
Recognizing consolidation periods helps us avoid trading during choppy price action, ensuring optimal performance.
Suitability for Grid Trading Bots:
Our strategy is well-suited for grid trading bots due to frequent price fluctuations and opportunities for grid activation.
The strategy's design accounts for price breakthroughs, which are advantageous for grid trading strategies.
Benefits of the Strategy:
Consistent Performance Across Cryptocurrencies:
Through rigorous testing on various cryptocurrency futures contracts, our strategy has demonstrated favorable results across different coins.
Its adaptability makes it a versatile tool for traders seeking consistent profits in the cryptocurrency market.
Integration of Advanced Techniques:
By integrating multiple indicators and employing linear regression, our strategy leverages advanced techniques to enhance trading performance.
This strategic approach ensures a comprehensive analysis of market conditions, leading to well-informed trading decisions.
Conclusion:
Our cryptocurrency scalping strategy offers a sophisticated yet user-friendly approach to trading in the fast-paced environment of the 1-minute timeframe. With its emphasis on automation, accuracy, and adaptability, our strategy empowers traders to navigate the complexities of the cryptocurrency market with confidence. Whether you're a seasoned trader or a novice investor, our strategy provides a reliable framework for achieving consistent profits and maximizing returns on your investment.
MH DCA Trail EmulatorThe Market Hunter DCA Bot emulator is designed to simplify the visual analysis of the algorithm and bot configuration. The algorithm calculates the distance specified in the settings from hai to DCA0 (the first grid order) and trails the grid before entering the position. After exiting the position, the current high is calculated and a new grid is placed at the specified distance.
There are 3 levels available in the settings DCA0 DCA1 DCA2, take profit and liquidation. The average position rate is calculated based on the volume of orders DCA0=X1, DCA1=X1, DCA2=X2.
Эмулятор работы Market Hunter DCA Bot разработан для упрощения визуального анализа работы алгоритма и настройки бота. Алгоритм рассчитывает указанное в настройках расстояние от хая до DCA0 (первого ордера сетки) и трейлит сетку до входа в позицию. После выхода из позиции рассчитывается текущий хай и на указанном расстоянии ставит новую сетку.
В настройках доступно 3 уровня DCA0 DCA1 DCA2, тейк профит и ликвидация. Средний курс позиции рассчитывается исходя из объёмов ордеров DCA0=X1, DCA1=X1, DCA2=X2.х
CryptoGraph Dynamic DCAA system to backtest and automate comprehensive trading strategies
═════════════════════════════════════════════════════════════════════════
🟣 Supporting Your Trades
CryptoGraph Dynamic DCA serves as a comprehensive tool on TradingView, designed to refine your approach to cryptocurrency trading. It utilises dynamic dollar-cost averaging (DCA), based on external indicator sources, to provide structured market entry and exit strategies. Suitable for both short-term trading and long-term portfolio management, CryptoGraph Dynamic DCA can offer a methodical way to support your trading decisions.
The tool offers an intuitive interface with inputs for strategy customisation, visualised preferences, and bot alert configurations. It can assist traders seeking precision, adaptability, and control in their trading activities. In the example on the chart above, we use the CryptoGraph Entry Builder (part of CryptoGraph Dynamic DCA package) as an external source for our initial entry (base order) and our safety orders, as well as an external source for our second take profit, which can be configured to be signal based.
🟣 Features
External Entry/Exit sources: The strategy is designed to assist with accurate market entries and exits by utilising signals from external indicators. It offers the flexibility to tailor your trading approach, providing an opportunity to leverage the analytical capabilities of various indicators available on TradingView.
Strategic Direction Control: Configure your strategy to go long, short, or both, adapting to market trends and your trading style.
Leverage Customisation: Tailor your leverage settings for isolated or cross margin to align with your risk tolerance, a liquidation estimation level is plotted on the chart, based on your input settings.
Diverse Entry Points: Utilise base orders and safety orders to diversify your entry points, reducing risk and enhancing potential returns.
Tailored Order Size: Fine-tune your order sizes using margin percentages or fixed contract sizes to fit your strategy’s requirements.
Profit Taking & Loss Prevention: Set take profit levels and stop losses with percentage or ATR-based parameters to secure profits and minimise losses. Options for moving the stop loss to entry after Take Profit 1, with an adjustable buffer, give you control over your risk management.
Max Safety Orders Count: Determine the maximum number of safety orders to manage risk effectively.
Price Deviation for DCA Orders: Specify the minimum price deviation percentage to trigger DCA orders, ensuring strategic order placement.
DCA Size Method: Choose from scaling or fixed-size DCA orders to align with your capital allocation strategy.
Visualisation & Alerts: Analyse your strategy’s performance with a backtest results table and configure bot alerts for automated trading. Auto configuration methods are integrated for multiple automated trading platforms.
🟣 Features Impression
🟣 Usage Guide
1. Strategy Configuration:
Select the appropriate cryptocurrency pair and exchange that corresponds to your trading preferences.
Choose your desired chart timeframe to align with your trading strategy’s temporal scope.
Ensure that you’re utilising the regular candle type for consistent and reliable data interpretation.
Pick an external entry source to trigger your trades based on predefined indicators or conditions.
Determine your take profit and stop loss levels to manage risks and secure earnings effectively.
Configure your DCA (Dollar-Cost Averaging) settings, including safety orders and the scaling method, to enhance entry points and manage investment distribution.
Always consult the tooltips next to each strategy input, to better understand their functions.
2. Backtest and Analysis:
Run backtests with your configured parameters to assess the strategy’s potential performance.
Review the backtest results and statistics tables to understand the strategy’s effectiveness, risk profile, and profitability.
3. Automated Trading Platform Integration:
Connect the strategy to a compatible automated trading platform to enable real-time execution of trades.
Within the trading platform, ensure the proper API setup of the bot’s configuration to align with the signals from the tool.
4. Alert Configuration in TradingView:
Set up the alert conditions in the TradingView tool to match your strategy triggers for entry, exit, take profit, and stop loss.
Configure the connection parameters within the tool to communicate effectively with your chosen automated trading platform
Activate the alerts, ensuring they are set to trigger actions such as order placement, adjustments, or closures as per your strategy’s logic.
5. Capital Management:
Confirm that your initial capital and order size are logically set, keeping in mind that the sum of all deals, especially when using pyramiding with safety orders, should not exceed your initial capital to avoid overexposure.
🟣 Trade Example
A clear example of a trade. Base order entry, safety order 1 fills, take profit 1 hits at 1%, the remainder of the position runs until the exit signal fires.
🟣 Warning
This tool has been developed to support your trading analysis, yet it’s important to acknowledge the inherent risks associated with trading. It is advisable to perform thorough research, assess your risk tolerance, and utilise this tool as one element of an overall trading strategy. Ensure that you only trade with capital that you are prepared to risk. In addition, due to the complexity of the tool, bugs may be found. Please alert us whenever you think you have found a bug in the system.
Smart DCA StrategyINSPIRATION
While Dollar Cost Averaging (DCA) is a popular and stress-free investment approach, I noticed an opportunity for enhancement. Standard DCA involves buying consistently, regardless of market conditions, which can sometimes mean missing out on optimal investment opportunities. This led me to develop the Smart DCA Strategy – a 'set and forget' method like traditional DCA, but with an intelligent twist to boost its effectiveness.
The goal was to build something more profitable than a standard DCA strategy so it was equally important that this indicator could backtest its own results in an A/B test manner against the regular DCA strategy.
WHY IS IT SMART?
The key to this strategy is its dynamic approach: buying aggressively when the market shows signs of being oversold, and sitting on the sidelines when it's not. This approach aims to optimize entry points, enhancing the potential for better returns while maintaining the simplicity and low stress of DCA.
WHAT THIS STRATEGY IS, AND IS NOT
This is an investment style strategy. It is designed to improve upon the common standard DCA investment strategy. It is therefore NOT a day trading strategy. Feel free to experiment with various timeframes, but it was designed to be used on a daily timeframe and that's how I recommend it to be used.
You may also go months without any buy signals during bull markets, but remember that is exactly the point of the strategy - to keep your buying power on the sidelines until the markets have significantly pulled back. You need to be patient and trust in the historical backtesting you have performed.
HOW IT WORKS
The Smart DCA Strategy leverages a creative approach to using Moving Averages to identify the most opportune moments to buy. A trigger occurs when a daily candle, in its entirety including the high wick, closes below the threshold line or box plotted on the chart. The indicator is designed to facilitate both backtesting and live trading.
HOW TO USE
Settings:
The input parameters for tuning have been intentionally simplified in an effort to prevent users falling into the overfitting trap.
The main control is the Buying strictness scale setting. Setting this to a lower value will provide more buying days (less strict) while higher values mean less buying days (more strict). In my testing I've found level 9 to provide good all round results.
Validation days is a setting to prevent triggering entries until the asset has spent a given number of days (candles) in the overbought state. Increasing this makes entries stricter. I've found 0 to give the best results across most assets.
In the backtest settings you can also configure how much to buy for each day an entry triggers. Blind buy size is the amount you would buy every day in a standard DCA strategy. Smart buy size is the amount you would buy each day a Smart DCA entry is triggered.
You can also experiment with backtesting your strategy over different historical datasets by using the Start date and End date settings. The results table will not calculate for any trades outside what you've set in the date range settings.
Backtesting:
When backtesting you should use the results table on the top right to tune and optimise the results of your strategy. As with all backtests, be careful to avoid overfitting the parameters. It's better to have a setup which works well across many currencies and historical periods than a setup which is excellent on one dataset but bad on most others. This gives a much higher probability that it will be effective when you move to live trading.
The results table provides a clear visual representation as to which strategy, standard or smart, is more profitable for the given dataset. You will notice the columns are dynamically coloured red and green. Their colour changes based on which strategy is more profitable in the A/B style backtest - green wins, red loses. The key metrics to focus on are GOA (Gain on Account) and Avg Cost .
Live Trading:
After you've finished backtesting you can proceed with configuring your alerts for live trading.
But first, you need to estimate the amount you should buy on each Smart DCA entry. We can use the Total invested row in the results table to calculate this. Assuming we're looking to trade on BITSTAMP:BTCUSD
Decide how much USD you would spend each day to buy BTC if you were using a standard DCA strategy. Lets say that is $5 per day
Enter that USD amount in the Blind buy size settings box
Check the Blind Buy column in the results table. If we set the backtest date range to the last 10 years, we would expect the amount spent on blind buys over 10 years to be $18,250 given $5 each day
Next we need to tweak the value of the Smart buy size parameter in setting to get it as close as we can to the Total Invested amount for Blind Buy
By following this approach it means we will invest roughly the same amount into our Smart DCA strategy as we would have into a standard DCA strategy over any given time period.
After you have calculated the Smart buy size , you can go ahead and set up alerts on Smart DCA buy triggers.
BOT AUTOMATION
In an effort to maintain the 'set and forget' stress-free benefits of a standard DCA strategy, I have set my personal Smart DCA Strategy up to be automated. The bot runs on AWS and I have a fully functional project for the bot on my GitHub account. Just reach out if you would like me to point you towards it. You can also hook this into any other 3rd party trade automation system of your choice using the pre-configured alerts within the indicator.
PLANNED FUTURE DEVELOPMENTS
Currently this is purely an accumulation strategy. It does not have any sell signals right now but I have ideas on how I will build upon it to incorporate an algorithm for selling. The strategy should gradually offload profits in bull markets which generates more USD which gives more buying power to rinse and repeat the same process in the next cycle only with a bigger starting capital. Watch this space!
MARKETS
Crypto:
This strategy has been specifically built to work on the crypto markets. It has been developed, backtested and tuned against crypto markets and I personally only run it on crypto markets to accumulate more of the coins I believe in for the long term. In the section below I will provide some backtest results from some of the top crypto assets.
Stocks:
I've found it is generally more profitable than a standard DCA strategy on the majority of stocks, however the results proved to be a lot more impressive on crypto. This is mainly due to the volatility and cycles found in crypto markets. The strategy makes its profits from capitalising on pullbacks in price. Good stocks on the other hand tend to move up and to the right with less significant pullbacks, therefore giving this strategy less opportunity to flourish.
Forex:
As this is an accumulation style investment strategy, I do not recommend that you use it to trade Forex.
STRATEGY IN ACTION
Here you see the indicator running on the BITSTAMP:BTCUSD pair. You can read the indicator as follows:
Vertical green bands on historical candles represents where buy signals triggered in the past
Table on the top right represents the results of the A/B backtest against a standard DCA strategy
Green Smart Buy column shows that Smart DCA was more profitable than standard DCA on this backtest. That is shown by the percentage GOA (Gain on Account) and the Avg Cost
Smart Buy Zone label marks the threshold which the entire candle must be below to trigger a buy signal (line can be changed to a box under plotting settings)
Green color of Smart Buy Zone label represents that the open candle is still valid for a buy signal. A signal will only be generated if the candle closes while this label is still green
Below is the same BITSTAMP:BTCUSD chart a couple of days later. Notice how the threshold has been broken and the Smart Buy Zone label has turned from green to red. No buy signal can be triggered for this day - even if the candle retraced and closed below the threshold before daily candle close.
Notice how the green vertical bands tend to be present after significant pullbacks in price. This is the reason the strategy works! Below is the same BITSTAMP:BTCUSD chart, but this time zoomed out to present a clearer picture of the times it would invest vs times it would sit out of the market. You will notice it invests heavily in bear markets and significant pullbacks, and does not buy anything during bull markets.
Finally, to visually demonstrate the indicator on an asset other than BTC, here is an example on CRYPTO:ETHUSD . In this case the current daily high has not touched the threshold so it is still possible for this to be a valid buy trigger on daily candle close. The vertical green band will not print until the buy trigger is confirmed.
BACKTEST RESULTS
Now for some backtest results to demonstrate the improved performance over a standard DCA strategy using all non-stablecoin assets in the top 30 cryptos by marketcap.
I've used the TradingView ticker (exchange name denoted as CRYPTO in the symbol search) for every symbol tested with the exception of BTCUSD because there was some dodgy data at the beginning of the TradingView BTCUSD chart which overinflated the effectiveness of the Smart DCA strategy on that ticker. For BTCUSD I've used the BITSTAMP exchange data. The symbol links below will take you to the correct chart and exchange used for the test.
I'm using the GOA (Gain on Account) values to present how each strategy performed.
The value on the left side is the standard DCA result and the right is the Smart DCA result.
✅ means Smart DCA strategy outperformed the standard DCA strategy
❌ means standard DCA strategy outperformed the Smart DCA strategy
To avoid overfitting, and to prove that this strategy does not suffer from overfitting, I've used the exact same input parameters for every symbol tested below. The settings used in these backtests are:
Buying strictness scale: 9
Validation days: 0
You can absolutely tweak the values per symbol to further improve the results of each, however I think using identical settings on every pair tested demonstrates a higher likelihood that the results will be similar in the live markets.
I'm presenting results for two time periods:
First price data available for trading pair -> closing candle on Friday 26th Jan 2024 (ALL TIME)
Opening candle on Sunday 1st Jan 2023 -> closing candle on Friday 26th Jan 2024 (JAN 2023 -> JAN 2024)
ALL TIME:
BITSTAMP:BTCUSD 80,884% / 133,582% ✅
CRYPTO:ETHUSD 17,231% / 36,146% ✅
CRYPTO:BNBUSD 5,314% / 2,702% ❌
CRYPTO:SOLUSD 1,745% / 1,171% ❌
CRYPTO:XRPUSD 2,585% / 4,544% ✅
CRYPTO:ADAUSD 338% / 353% ✅
CRYPTO:AVAXUSD 130% / 160% ✅
CRYPTO:DOGEUSD 13,690% / 16,432% ✅
CRYPTO:TRXUSD 414% / 466% ✅
CRYPTO:DOTUSD -16% / -7% ✅
CRYPTO:LINKUSD 1,161% / 2,164% ✅
CRYPTO:TONUSD 25% / 47% ✅
CRYPTO:MATICUSD 1,769% / 1,587% ❌
CRYPTO:ICPUSD 70% / 50% ❌
CRYPTO:SHIBUSD -20% / -19% ✅
CRYPTO:LTCUSD 486% / 718% ✅
CRYPTO:BCHUSD -4% / 3% ✅
CRYPTO:LEOUSD 102% / 151% ✅
CRYPTO:ATOMUSD 46% / 91% ✅
CRYPTO:UNIUSD -16% / 1% ✅
CRYPTO:ETCUSD 283% / 414% ✅
CRYPTO:OKBUSD 1,286% / 1,935% ✅
CRYPTO:XLMUSD 1,471% / 1,592% ✅
CRYPTO:INJUSD 830% / 1,035% ✅
CRYPTO:OPUSD 138% / 195% ✅
CRYPTO:NEARUSD 23% / 44% ✅
Backtest result analysis:
Assuming we have an initial investment amount of $10,000 spread evenly across each asset since the creation of each asset, it would have provided the following results.
Standard DCA Strategy results:
Average percent return: 4,998.65%
Profit: $499,865
Closing balance: $509,865
Smart DCA Strategy results:
Average percent return: 7,906.03%
Profit: $790,603
Closing balance: $800,603
JAN 2023 -> JAN 2024:
BITSTAMP:BTCUSD 47% / 66% ✅
CRYPTO:ETHUSD 26% / 33% ✅
CRYPTO:BNBUSD 15% / 17% ✅
CRYPTO:SOLUSD 272% / 394% ✅
CRYPTO:XRPUSD 7% / 12% ✅
CRYPTO:ADAUSD 43% / 59% ✅
CRYPTO:AVAXUSD 116% / 151% ✅
CRYPTO:DOGEUSD 8% / 14% ✅
CRYPTO:TRXUSD 48% / 65% ✅
CRYPTO:DOTUSD 24% / 35% ✅
CRYPTO:LINKUSD 83% / 124% ✅
CRYPTO:TONUSD 7% / 21% ✅
CRYPTO:MATICUSD -3% / 7% ✅
CRYPTO:ICPUSD 161% / 196% ✅
CRYPTO:SHIBUSD 1% / 8% ✅
CRYPTO:LTCUSD -15% / -7% ✅
CRYPTO:BCHUSD 47% / 68% ✅
CRYPTO:LEOUSD 9% / 11% ✅
CRYPTO:ATOMUSD 1% / 15% ✅
CRYPTO:UNIUSD 9% / 23% ✅
CRYPTO:ETCUSD 27% / 40% ✅
CRYPTO:OKBUSD 21% / 30% ✅
CRYPTO:XLMUSD 11% / 19% ✅
CRYPTO:INJUSD 477% / 446% ❌
CRYPTO:OPUSD 77% / 91% ✅
CRYPTO:NEARUSD 78% / 95% ✅
Backtest result analysis:
Assuming we have an initial investment amount of $10,000 spread evenly across each asset for the duration of 2023, it would have provided the following results.
Standard DCA Strategy results:
Average percent return: 61.42%
Profit: $6,142
Closing balance: $16,142
Smart DCA Strategy results:
Average percent return: 78.19%
Profit: $7,819
Closing balance: $17,819
Heatmap MACD Strategy - Pineconnector (Dynamic Alerts)Hello traders
This script is an upgrade of this template script.
Heatmap MACD Strategy
Pineconnector
Pineconnector is a trading bot software that forwards TradingView alerts to your Metatrader 4/5 for automating trading.
Many traders don't know how to dynamically create Pineconnector-compatible alerts using the data from their TradingView scripts.
Traders using trading bots want their alerts to reflect the stop-loss/take-profit/trailing-stop/stop-loss to breakeven options from your script and then create the orders accordingly.
This script showcases how to create Pineconnector alerts dynamically.
Pineconnector doesn't support alerts with multiple Take Profits.
As a workaround, for 2 TPs, I had to open two trades.
It's not optimal, as we end up paying more spreads for that extra trade - however, depending on your trading strategy, it may not be a big deal.
TradingView Alerts
1) You'll have to create one alert per asset X timeframe = 1 chart.
Example : 1 alert for EUR/USD on the 5 minutes chart, 1 alert for EUR/USD on the 15-minute chart (assuming you want your bot to trade the EUR/USD on the 5 and 15-minute timeframes)
2) For each alert, the alert message is pre-configured with the text below
{{strategy.order.alert_message}}
Please leave it as it is.
It's a TradingView native variable that will fetch the alert text messages built by the script.
3) Don't forget to set the webhook URL in the Notifications tab of the TradingView alerts UI.
EA configuration
The Pyramiding in the EA on Metatrader must be set to 2 if you want to trade with 2 TPs => as it's opening 2 trades.
If you only want 1 TP, set the EA Pyramiding to 1.
Regarding the other EA settings, please refer to the Pineconnector documentation on their website.
Logger
The Pineconnector commands are logged in the TradingView logger.
You'll find more information about it from this TradingView blog post
Important Notes
1) This multiple MACDs strategy doesn't matter much.
I could have selected any other indicator or concept for this script post.
I wanted to share an example of how you can quickly upgrade your strategy, making it compatible with Pineconnector.
2) The backtest results aren't relevant for this educational script publication.
I used realistic backtesting data but didn't look too much into optimizing the results, as this isn't the point of why I'm publishing this script.
3) This template is made to take 1 trade per direction at any given time.
Pyramiding is set to 1 on TradingView.
The strategy default settings are:
Initial Capital: 100000 USD
Position Size: 1 contract
Commission Percent: 0.075%
Slippage: 1 tick
No margin/leverage used
For example, those are realistic settings for trading CFD indices with low timeframes but not the best possible settings for all assets/timeframes.
Concept
The Heatmap MACD Strategy allows selecting one MACD in five different timeframes.
You'll get an exit signal whenever one of the 5 MACDs changes direction.
Then, the strategy re-enters whenever all the MACDs are in the same direction again.
It takes:
long trades when all the 5 MACD histograms are bullish
short trades when all the 5 MACD histograms are bearish
You can select the same timeframe multiple times if you don't need five timeframes.
For example, if you only need the 30min, the 1H, and 2H, you can set your timeframes as follow:
30m
30m
30m
1H
2H
Risk Management Features
All the features below are pips-based.
Stop-Loss
Trailing Stop-Loss
Stop-Loss to Breakeven after a certain amount of pips has been reached
Take Profit 1st level and closing X% of the trade
Take Profit 2nd level and close the remaining of the trade
Custom Exit
I added the option ON/OFF to close the opened trade whenever one of the MACD diverges with the others.
Help me help the community
If you see any issue when adding your strategy logic to that template regarding the orders fills on your Metatrader, please let me know in the comments.
I'll use your feedback to make this template more robust. :)
What's next?
I'll publish a more generic template built as a connector so you can connect any indicator to that Pineconnector template.
Then, I'll publish a template for Capitalise AI, ProfitView, AutoView, and Alertatron.
Thank you
Dave
DCA-Integrated Trend Continuation StrategyIntroducing the DCA-Integrated Trend Continuation Strategy 💼💰
The DCA-Integrated Trend Continuation Strategy represents a robust trading methodology that harnesses the potential of trend continuation opportunities while seamlessly incorporating the principles of Dollar Cost Averaging (DCA) as a risk management and backup mechanism. This strategy harmoniously blends these two concepts to potentially amplify profitability and optimize risk control across diverse market conditions.
This strategy is well-suited for both trending and ranging markets. During trending markets, it aims to capture and ride the momentum of the trend while optimizing entry points. In ranging markets or pullbacks, the DCA feature comes into play, allowing users to accumulate more assets at potentially lower prices and potentially increase profits when the market resumes its upward trend. This cohesive approach not only enhances the overall effectiveness of the strategy but also fosters a more resilient and adaptable trading approach in ever-changing market dynamics.
💎 How it Works:
▶️ The strategy incorporates a customizable entry signal based on candlestick patterns, enabling the identification of potential trend continuation opportunities. By focusing on consecutive bullish candles, it detects the presence of bullish momentum, indicating an optimal time to enter a long position.
To refine the precision of the signals, traders can set a specific percentage threshold for the closing price of the candle, ensuring it is above a certain percentage of its body. This condition verifies strong bullish momentum and confirms significant upward movement within the candle, thereby increasing the reliability of the signal.
In addition, the strategy offers further confirmation by examining the relationship between the closing price of the signal candle and its previous candles. If the closing price of the signal candle is higher than its preceding candles, it provides an additional layer of assurance before entering a position. This approach is particularly effective in detecting sharp movements and capturing significant price shifts, as it focuses on identifying instances where the closing price shows clear strength and outperforms the previous candle's price action. By prioritizing such occurrences, the strategy aims to capture robust trends and capitalize on notable market movements.
▶️ During market downturns, the strategy incorporates intelligent management of price drops, offering flexibility through fixed or customizable price drop percentages. This unique feature allows for additional entries at specified drop percentages, enabling traders to accumulate positions at more favorable prices.
By strategically adjusting the custom price drop percentages, you can optimize your entry points to potentially maximize profitability. Utilizing lower percentages for initial entries takes advantage of price fluctuations, potentially yielding higher returns. On the other hand, employing higher percentages for final entries adopts a more cautious approach during significant market downturns, emphasizing enhanced risk management. This adaptive approach ensures that the strategy effectively navigates challenging market conditions while seeking to optimize overall performance.
▶️ To enhance performance and mitigate risks, the strategy integrates average purchase price management. This feature dynamically adjusts the average buy price percentage decrease after each price drop, expediting the achievement of the target point even in challenging market conditions. By reducing recovery times and ensuring investment safety, this strategy optimizes outcomes for traders.
▶️ Risk management is at the core of this strategy, prioritizing the protection of capital. It incorporates an account balance validation mechanism that conducts automatic checks prior to each entry, ensuring alignment with available funds. This essential feature provides real-time insights into the affordability of price drops and the number of entries, enabling traders to make informed decisions and maintain optimal risk control.
▶️ Furthermore, the strategy offers take profit options, allowing traders to secure gains by setting fixed percentage profits from the average buy price or using a trailing target. Stop loss protection is also available, enabling traders to set a fixed percentage from the average purchase price to limit potential losses and preserve capital.
▶️ This strategy is fully compatible with third-party trading bots, allowing for easy connectivity to popular trading platforms. By leveraging the TradingView webhook functionality, you can effortlessly link the strategy to your preferred bot and receive accurate signals for position entry and exit. The strategy provides all the necessary alert message fields, ensuring a smooth and user-friendly trading experience. With this integration, you can automate the execution of trades, saving time and effort while enjoying the benefits of this powerful strategy.
🚀 How to Use:
To effectively utilize the DCA-Integrated Trend Continuation Strategy, follow these steps:
1. Choose your preferred DCA Mode - whether by quantity or by value - to determine how you want to size your positions.
2. Customize the entry conditions of the strategy to align with your trading preferences. Specify the number of consecutive bullish candles, set a desired percentage threshold for the close of the signal candle relative to its body, and determine the number of previous candles to compare with.
3. Adjust the pyramiding parameter to suit your risk tolerance and desired returns. Whether you prefer a more conservative approach with fewer pyramids or a more aggressive stance with multiple pyramids, this strategy offers flexibility.
4. Personalize the price drop percentages based on your risk appetite and trading strategy. Choose between fixed or custom percentages to optimize your entries in different market scenarios.
5. Configure the average purchase price management settings to control the percentage decrease in the average buy price after each price drop, ensuring it aligns with your risk tolerance and strategy.
6. Utilize the account balance validation feature to ensure the strategy's actions align with your available funds, enhancing risk management and preventing overexposure.
7. Set take profit options to secure your gains and implement stop loss protection to limit potential losses, providing an additional layer of risk management.
8. Use the date and time filtering feature to define the duration during which the strategy operates, allowing for specific backtesting periods or integration with a trading bot.
9. For automated trading, take advantage of the compatibility with third-party trading bots to seamlessly integrate the strategy with popular trading platforms.
By following these steps, traders can harness the power of the DCA-Integrated Trend Continuation Strategy to potentially maximize profitability and optimize their trading outcomes in both trending and ranging markets.
⚙️ User Settings:
To ensure the backtest result is representative of real-world trading conditions, particularly in the highly volatile Crypto market, the default strategy parameters have been carefully selected to produce realistic results with a conservative approach. However, you have the flexibility to customize these settings based on your risk tolerance and strategy preferences, whether you're focusing on short-term or long-term trading, allowing you to potentially achieve higher profits. The backtesting was conducted using the BTCUSDT pair in 15-minute timeframe on the Binance exchange. Users can configure the following options:
General Settings:
- Initial Capital (Default: $10,000)
- Currency (Default: USDT)
- Commission (Default: 0.1%)
- Slippage (Default: 5 ticks)
Order Size Management:
- DCA Mode (Default: Quantity)
- Order Size in Quantity (Default: 0.01)
- Order Size in Value (Default: $300)
Strategy's Entry Conditions:
- Number of Consecutive Bullish Candles (Default: 3)
- Close Over Candle Body % (Default: 50% - Disabled)
- Close Over Previous Candles Lookback (Default: 14 - Disabled)
- Pyramiding Number (Default: 30)
Price Drop Management:
- Enable Price Drop Calculations (Default: Enabled)
- Enable Current Balance Check (Default: Enabled)
- Price Drop Percentage Type (Default: Custom)
- Average Price Move Down Percentage % (Default: 50%)
- Fixed Price Drop Percentage % (Default: 0.5%)
- Custom Price Drop Percentage % (Defaults: 0.5, 0.5, 0.5, 1, 3, 5, 5, 10, 10, 10)
TP/SL:
- Take Profit % (Default: 3%)
- Stop Loss % (Default: 100%)
- Enable Trailing Target (Default: Enabled)
- Trailing Offset % (Default: 0.1%)
Backtest Table (Default: Enabled)
Date & Time:
- Date Range Filtering (Default: Disabled)
- Start Time
- End Time
Alert Message:
- Alert Message for Enter Long
- Alert Message for Exit Long
By providing these customizable settings, the strategy allows you to tailor it to your specific needs, enhancing the adaptability and effectiveness of your trading approach.
🔐 Source Code Protection:
The source code of the DCA-Integrated Trend Continuation Strategy is designed to be robust, reliable, and highly efficient. Its original and innovative implementation merits protecting the source code and limiting access, ensuring the exclusivity of this strategy. By safeguarding the code, the integrity and uniqueness of the strategy are preserved, giving users a competitive edge in their trading activities.
Miyagi BacktesterMiyagi: The attempt at mastering something for the best results.
Miyagi indicators combine multiple trigger conditions and place them in one toolbox for traders to easily use, produce alerts, backtest, reduce risk and increase profitability.
The Miyagi Backtester is a standalone backtester which is to be applied to the chart after the Miyagi indicator to be backtested.
The backtester can only backtest one script at a time, and is meant to backtest ONCE PER BAR CLOSE entries.
It is currently not possible to backtest ONCE PER BAR entries.
The backtester will allow users to all Miyagi Indicators using DCA strategies to show returns over a selectable time period.
The backtester allows leverage, and as such users should be aware of the Maximum Amount for Bot Usage and Leverage Required Calculations.
The DCA Selector switch will allow users to backtest with, or without DCA.
Static DCA is used within the backtester and allows users to see DCA Statistics on closed trades.
How to use the Miyagi Backtester
Step 1: Apply the Miyagi Indicator of Choice to backtest (4in1/10in1/Strend).
DATE AND TIME RANGE:
-Date and time range to backtest.
TRADE:
-Entry source to backtest. Please select the "Outbound Entry Signal Sender"
-Trade Direction to backtest. This can be helpful to backtest according to your strategy (long or short).
-Take Profit % to backtest. This is the percent take profit to backtest. Slippage can be accounted for on the "Properties" tab.
-Stoploss % to backtest. This is the percent stoploss to backtest.
DCA:
DCA Checkbox: Enable the DCA Checkbox to backtest with DCA. Disable it to backtest without DCA.
Leverage: Input the Leverage you will trade with.
Base Order Size (% Equity): This is the Base order (BO) size to backtest in % of equity.
Safety Order Size (% Equity): This is the Safety order (SO) size to backtest in % of equity.
Number of DCA Orders: This is the maximum amount of DCA orders to place, or total DCA orders.
Price Deviation (% from initial order): This is the percent at which the first safety is placed.
Safety Order Step Scale: This is the scale at which is applied to the deviation for the step calculation to determine next SO placement.
Safety Order Volume Scale: This is the scale at which is applied to the safety orders for the volume calculation to determine SO Volume.
Real world DCA Example:
The process is as follows.
Base Order: This is your initial order size, $100 used for Base Order
Safety Order: This is your first safety order size, which is placed at the deviation. $100 Safety Order, it is good to keep the same size as your BO for your scaling to be effective.
Price deviation: This is the deviation at which your first Safety order is placed. 0.3-0.75% used by most of our members.
Safety Order Volume Scale: This is the scale at which is applied to the safety orders for the volume calculation. Scale of 2 used, which means that SO2 = (SO1) * 2, or $200. This scaling is typical for all following orders and as such SO3 = (SO2) *2, or $400.
Safety Order Step Scale: This is the scale at which is applied to the deviation for the step calculation. This is similar to the volume scale however the last order percentage is added.
Scale of 2 used, which means that SO2 % = ((Deviation) * 2) + (SO1%). (0.5% *2) + (0.5) = 1.5%.
This scaling is typical for all following orders except that the prior deviation is used and as such SO3 = ((Prior%) * 2) + (Deviation). (1.5% * 2) +(0.5%) or 3.5%.
Total SO Number: The calculations will continue going until the last SO. It is helpful to understand the amount of SO’s and scaling determines how efficient your DCA is.
Backtester Outputs include:
Net Profit to display net profit
Daily Net Profit to estimate
Percent Profitable which shows ratio of winning trades to losing trades.
Total Trades
Winning Trades
Losing Trades (only applicable if stoploss is used)
Buy & Hold Return (of the backtested asset) to compare if the strategy used beats buy & hold return.
Avg Trade Time is very helpful to see average trade time.
Max Trade Time is very helpful to see the maximum trade time.
Total Backtested Time will return total backtested time.
Initial Capital which is taken from the Properties tab.
Max amount for Bot Usage which can be helpful to see bot usage.
Leverage Required will show you the leverage required to sustain the DCA configuration.
Total SO Deviation will allow users to see the drop coverage their DCA provides.
Max Spent which is a % of total account spent on one trade.
Max Drawdown which displays the maximum drawdown of any trade.
Max % distance from entry shows the maximum distance price went away from entry prior to the trade closing.
Max SO Used which shows the maximum number of SO's used on a single trade
Avg SO Used which shows the average number of SO's used in all closed trades.
Deals closing with BO Only calculation will show how many trades are closed without DCA.
Deals closing with 1-7 SOs calculation will show how many trades are closed with DCA, and allow for fine-tuning.
Happy Trading!
This script will be effective to backtest and produce the best settings for each timeframe and pair across all STP Scripts.
This will take a lot of the manual work out of backtesting for our users while improving profit potential.
Happy Trading!
TTP Kent Strat PROKent Strat PRO trades breakouts using Bollinger Bands together with SuperTrend.
PRO features:
- 3commas bot alerts for long/short bots
- Custom JSON bots alerts
Features:
- Risk/reward ratio parameter
- Longs, shorts and combined positions.
- Breakout settings
- Trailing SL, trailing TP
- Use of latest candles to place the SL using a lookback parameter (how many candles to look back for a low/high price)
- Select your SL between the ATR trendline and the latest candle: the closest or furthest away value
- Show the trendline
- Backtest mode for accurate backtests
- Signal mode for live price accurate signals
- Date range backtesting
Filters:
- EMA 200 filter and timeframe selector. This filter can be used to trade with the trend: open longs on an uptrend and shorts on a downtrend.
- ADX filter using threshold. This filter can be used to filter entries where the trend is not very strong.
- ADX pointing up. ADX values pointing up and above certain threshold can improve entries.
- Relative volume filter based on the volume being X% above the MA of the Volume. Trading with volume can help filtering out bad trades.
Example setup:
1) pick BINANCE:ETHUSDT chart, 15 min chart
2) trade longs + shorts
3) pick ratio 3
4) trailing SL checked
5) trailing TP unchecked
7) stop loss "furthest"
8) candle loopback 30
9) BB period 21, dev 1, ATR filter on, atr period 5
10) EMA filter on, 15 min
11) ADX off
12) Volume filter on set to 60%
MY_TRENDThe MY_TREND strategy is designed to work with cryptocurrencies and stocks.
The optimal working timeframe is 1 - 4 hours.
The search for trading zones and main entry points is based on the Donchian channel using the author's filtering by pinning.
To avoid manipulations in the market, the algorithm monitors the level of the price relative to the global trend and thus filters out a large part of the false signals.
If the price fixes above the trend line, we expect an upward movement, and if it fixes below, we expect a downward movement.
In addition, in the settings it is possible to use additional trend entries, as well as aggressive trading.
To do this, in the area of action of the main trend, built on the basis of the Donchian channel, a local trend is formed at the moving average price of the asset.
--------------------------------------------
📗 Algorithm for selecting optimal parameters:
--------------------------------------------
1. Disable the use of takes and stops, and set up the setup (described below) so that the back test readings are positive and have growing dynamics.
Pay attention to the level of drawdown and the percentage of correct trades.
2. Enable the use of a stop line, and select the most optimal stop parameters so that the drawdown level on the back test is acceptable for you.
3. Enable the use of takes and select the most optimal take for your strategy.
4. Select the type of trade (described below) and make sure that the back test readings are acceptable to you.
5. By default, the strategy uses a trading commission of 0.04% (standard for crypto futures), but for stocks it should be set in accordance with the commissions of your broker.
-------------------------------------
💹 SETUP SETTINGS:
-------------------------------------
Setup_length - distance for calculating and evaluating volatility in the Donchian channel.
For an older timeframe, it is better to lower the value, otherwise we may get a delay in the reaction of the trend to the price movement.
Setup_mult - multiplier to smooth out the reaction of the trend in the Donchian channel.
For an older TF, it is better to increase the value in order to avoid false entry signals.
Selecting the type of trade:
BASED - gives trading signals only when the basic trend changes (trading without additional entry signals).
IN_TREND - gives BASED trading signals and additional signals on the underlying trend, using the ADD SMA as a local trend indicator.
AGRESSIVE - gives BASED trading signals and additional signals on the underlying trend, when the price falls below the ADD SMA local trend line.
ADD SMA length - SMA period to form a local trend within the underlying Donchian trend (values in the range of 3-9 should be used to get a fast response).
This setting is relevant for IN_TREND and AGRESSIVE trading types.
-------------------------------------
🟢 TAKE SETTINGS:
-------------------------------------
The strategy has 3 types of take:
ATR - take based on the instrument's volatility value (adjusted by a multiplier).
FIX - take, set as a percentage (set manually).
STDEV - take, based on the calculation of the standard deviation of the price (adjusted by a multiplier and a period).
-------------------------------------
⛔️ STOP SETTINGS:
-------------------------------------
The strategy has 3 types of stops:
ATR - stop based on the instrument's volatility value (adjustable by a multiplier).
FIX - stop specified in percentage (set manually).
TREND - the stop line is equal to the base trend line.
It is possible to turn on the stop line tightening to the level of the price of entry into a position, when the price passes the value of one standard deviation into profit.
-------------------------------------
💡 OTHER USEFUL FEATURES
-------------------------------------
✅ In the strategy, you can enable / disable the use of takes and stop lines.
✅ In the strategy, you can enable / disable the display of the base and local trend lines, and enable the background highlighting of the current trend.
✅ You can choose the direction of trading: long, short or any.
✅ Leverage can be set (x3 by default).
✅ The screen has a compact display of a table with the current strategy settings and the current state (position, takes, stop).
For the convenience of saving your settings, use the standard PrintScreen function.
✅ You can sign the strategy in the Notes field - this is convenient if you place several versions of the MY_TREND strategy on the chart with different settings (for different pairs or for different timeframes).
✅ You can choose the type of alerts - ALERT or BOT.
ALERT - tradingview pop-up trading alerts (you can configure them to be sent to e-mail or to the application).
BOT - trading commands following the Binance/Finandy syntax, designed to be sent to a trading bot using a webhook.
To use alerts, select "Only when the alert() function is called"
✅ 👉 In the strategy settings, each field has hints, to do this, hover over the ⓘ sign
💰 Be sure to follow the risk management when trading!
-------------------------------------
The MY_TREND strategy is private! You can get test access to it for 24 hours.
👉 In order to gain access or ask questions, write to me in private messages or at the contacts indicated in my signature.
-------------------------------------
========================================================================================================
Стратегия MY_TREND предназначена для работы с криптовалютами и акциями.
Оптимальный рабочий таймфрейм 1 - 4 часа.
Поиск торговых зон и основных точек входа производится на базе канала Donchian используя авторскую фильтрацию по закреплению.
Чтобы избежать манипуляций на рынке, алгоритм отслеживает уровень нахождения цены относительно глобального тренда и тем самым фильтрует немалую часть ложных сигналов.
При закреплении цены выше трендовой, мы ожидаем восходящее движение, а при закреплении ниже - нисходящее.
Кроме этого в настройках есть возможность использовать дополнительные входы по тренду, а также агрессивную торговлю.
Для этого в зоне действия основного тренда, построенного на базе канала Donchian, формируется локальный тренд по средней скользящей цены актива.
-----------------------------------------
📗 Алгоритм подбора оптимальных параметров:
-----------------------------------------
1. Отключите использование тейков и стопов, и настройте сетап (ниже подробно описано) так, чтобы показания бэк-теста были положительными и имели растущую динамику.
Обращайте внимание на уровень просадки и процент верных сделок.
2. Включите использование стоп-линии, и подберите наиболее оптимальные параметры стопа так, чтобы уровень просадки на бэк-тесте был для Вас приемлемым.
3. Включите использование тейков и подберите наиболее оптимальный тейк для Вашей стратегии.
4. Выберите тип торговли (ниже описано) и убедитесь в приемлемых для Вас показаниях бэк-теста.
5. По умолчанию в стратегии используется торговая комиссия 0,04% (стандартно для крипто-фьючерсов), но для акций её следует выставить в соответствии с комиссиями Вашего брокера.
-------------------------------------
💹 НАСТРОЙКА СЕТАПА:
-------------------------------------
Setup_length - дистанция для расчета и оценки волатильности в канале Donchian.
Для более старшего ТФ, значение лучше понижать, иначе мы можем получить запаздывание реакции тренда на движение цены.
Setup_mult - множитель, для сглаживания реакции тренда в канале Donchian.
Для более старшего ТФ, значение лучше повышать, чтобы избежать ложных сигналов на вход.
Выбор типа торговли:
BASED - даёт торговые сигналы только при смене базового тренда (торговля без дополнительных сигналов на вход).
IN_TREND - даёт торговые сигналы BASED и дополнительные сигналы по базовому тренду, используя ADD SMA как индикатор локального тренда.
AGRESSIVE - даёт торговые сигналы BASED и дополнительные сигналы по базовому тренду, при просадке цены ниже линии локального тренда ADD SMA.
ADD SMA length - Период SMA для формирования локального тренда внутри базового тренда Donchian (следует использовать значения в диапазоне 3-9, для получения быстрой реакции).
Данная настройка актуальна для типов торговли IN_TREND и AGRESSIVE.
-------------------------------------
🟢 НАСТРОЙКА ТЕЙКОВ:
-------------------------------------
Стратегия имеет 3 типа тейка:
ATR - тейк на базе значения волатильности инструмента (регулируется множителем).
FIX - тейк, заданный в процентах (задаётся вручную).
STDEV - тейк, на базе расчёта стандартного отклонения цены (регулируется множителем и периодом).
-------------------------------------
⛔️ НАСТРОЙКА СТОПА:
-------------------------------------
Стратегия имеет 3 типа стопа:
ATR - стоп на базе значения волатильности инструмента (регулируется множителем).
FIX - стоп, заданный в процентах (задаётся вручную).
TREND - стоп-линия равна базовой линии тренда.
Есть возможность включить подтяжку стоп-линии на уровень цены входа в позицию, при прохождении цены значения одного стандартного отклонения в профит.
-------------------------------------
💡 ПРОЧИЕ ПОЛЕЗНЫЕ ФУНКЦИИ
-------------------------------------
✅ В стратегии можно включить/отключить использование тейков и стоп-линии.
✅ В стратегии можно включить/отключить отображение линии базового и локального тренда, а включить фоновую подкраску текущего тренда.
✅ Можно выбрать направление торговли: лонг, шорт или любое.
✅ Можно установить кредитное торговое плечо (по умолчанию x3).
✅ На экране есть компактное отображение таблицы с текущими настройками стратегии и текущим состоянием (позиция, тейки, стоп).
Для удобства сохранения своих настроек - воспользуйтесь стандартной функцией PrintScreen.
✅ Вы можете подписать стратегию в поле Notes - это удобно, если Вы размещаете на графике несколько версий стратегии MY_TREND с разными настройками (для разных пар или для разных ТФ).
✅ Вы можете выбрать тип оповещений - ALERT или BOT.
ALERT - всплывающие торговые оповещения tradingview (можно настроить их отправку на e-mail или в приложение).
BOT - торговые команды с соблюдением синтаксиса Binance/Finandy, предназначенные для отправки их торговому боту с помощью webhook.
Для использования оповещений выбирайте "Только при вызове функции alert()"
✅ 👉 В настройках стратегии у каждого поля есть подсказки, для этого наведите курсор на знак ⓘ
💰 Обязательно соблюдайте риск-менеджмент при торговле!
-------------------------------------
Стратегия MY_TREND является закрытой! Вы можете получить к ней тестовый доступ на 24 часа.
👉 Для того, чтобы получить доступ или задать вопросы пишите мне в личные сообщения или по контактам, указанным в моей подписи.
-------------------------------------