Curved Stop Loss (Expo)█ Overview
Curved Stop Loss (Expo) automatically calculates the best stop-loss distance based on real-time momentum and volatility. Once the algorithm has analyzed the current market characteristics, a curved stop loss is placed on the chart. As a result, the trader can be confident that the stop loss is based on data insights. One of the key elements of a curved stop loss is that it ensures that the trade can either be stopped with a profit or only with a minor loss without compromising the profit potential. Hence, using the Curved Stop Loss makes a massive difference in the overall results.
█ Why is this tool needed?
Risk management is a key concept to grasp and use in your trading, and it's one of the most critical aspects that will determine your long-term success in this industry. The market is uncertain, and it's impossible to know what the future holds. The only way to take control of the unknown is to have a proper risk management system that ensures you don't blow your account in one trade. Therefore, all traders need to understand the importance of using a risk- and money-management tool that calculates and provides stop-loss and take-profit levels in real-time. This way, you will always know where to take your stop loss and secure profit.
█ How to use
This Curved Stop Loss helps traders set a stop loss based on current momentum and volatility. It can be used to minimize your risk and maximize your profit potential.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
Portfolio management
Fed Net Liquidity Indicator (24-Oct-2022 update)This indicator is an implementation of the USD Liquidity Index originally proposed by Arthur Hayes based on the initial implementation of jlb05013, kudos to him!
I have incorporated subsequent additions (Standing Repo Facility and Central Bank Liquidity Swaps lines) and dealt with some recent changes in reporting units from TradingView.
This is a macro indicator that aims at tracking how much USD liquidity is available to chase financial assets:
- When the FED is expanding liquidity, financial asset prices tend to increase
- When the FED is contracting liquidity, financial asset prices tend to decrease
Here is the current calculation:
Net Liquidity =
(+) The Fed’s Balance Sheet (FRED:WALCL)
(-) NY Fed Total Amount of Accepted Reverse Repo Bids (FRED:RRPONTTLD)
(-) US Treasury General Account Balance Held at NY Fed (FRED:WTREGEN)
(+) NY Fed - Standing Repo Facility (FRED:RPONTSYD)
(+) NY Fed - Central Bank Liquidity Swaps (FRED:SWPT)
Adulari ATSAdulari's Automated Trading Strategy combines more then 10+ innovative indicators and is carefully designed to provide honest and accurate backtesting results. We created and optimized this strategy to provide realistic results, not insane backtesting results that are very inconsistent and unrealistic. It is made for swing trading on the 15m timeframe. It is recommended to use the BYBIT:BTCUSDT pair.
This strategy has been thoroughly backtested throughout 2 years in order to provide optimal results.
ATS was designed to provide live results close to those of backtesting. It has been ensured this strategy is not overfitted.
Our strategy works in any market & allows users to:
Automate their trades using our alert system and integrations.
View realistic backtesting results.
Filter trades in irregular price action using our trend filters.
And many new features that can be found in the changelog below.
Our strategy detect the direction of trends for any asset & on any timeframe allowing traders to increase their confidence in positions and follow trends.
This strategy is built to be very profitable when used for long time periods. Compounding will make profits very solid.
We give our users the possibility to adjust the settings of the strategy to market price variations, as well as the option to make them less sensitive to irregular price movements so that it only trades predictable price action.
Save time by automating everything!
The strategy's settings play an important role towards profitable trades, however, the constant adjustment of these is not necessary since no overfitting is in play.
We made our strategy as flexible as possible in order to allow it to adjust to internal market dynamics, thus completely removing the need for traders to adjust any settings. We offer multiple setting profiles that are optimized for a certain market, with lower or higher risk.
If you are using this script you acknowledge past performance is not necessarily indicative of future results and there are many more factors that go into a profitable trade.
Original Strategy - Backtest & Alerts [AlgoRider]█ OVERVIEW
This indicator simulates an efficient trading strategy developed by our team in a simple and effective way, the primary objective when designing it was to make its reading and use as simple as possible for TradingView users. The Backtesting feature has been designed to keep only the most essential information to obtain clear and precise results directly on the graph. The settings interface has also been designed for ergonomic and simplified use. The user is free to customize the parameters as he wishes and according to his trading profile by having the choice, for example, of using options to reduce the risk of loss, to increase the win rate, to optimize profits. Automation is made possible and facilitated thanks to preconfigured alert conditions.
█ CONCEPTS
How the strategy works :
When the price is close to its equilibrium (represented by an exponential moving average - EMA) and it starts to take an upward or downward direction the script will issue Long or Short entry orders. If the price turns and goes to the opposite direction, the script quickly cuts the position by issuing a Stop Loss order. When the price takes a real clear direction, this is where the script will be able to accumulate profits.
What makes this script unique is :
• That it is entirely developed by us, inspired by a strategy that is little known and little used in the trading world, in particular because it often involves a greater number of losing trades than winning trades.
• Its ease of reading and use. The backtesting feature was designed to clearly display the most important information in a data table directly on the chart. The user is not lost with dozens of superfluous data and can directly access the most essential information to see how the strategy has performed in the past.
• Its ease of configuration and customization. Once in the configuration window, again the user is not lost, because there is only one main parameter to modify, it is the length of the EMA, which will influence the timing of entries and exits trades. Then there are a few other non-mandatory parameters to fine-tune risk management and maximize profits. (Detailed description of the settings further down the page)
• Strategy automation made easy and fast thanks to several types of alerts which are differentiated for entries, for auto-exits and for Custom TP and SL. These alerts can be configured to send the messages by email or via Webhooks.
• The indicator has several custom options allowing its user to go further than the basic strategy. Several confirmations for entries are available as well as the possibility of adding or not a personalized TP and/or SL.
• There is no repaint, once an entry/exit symbol or drawing is displayed it doesn't change anymore. The Short, Long and auto-Exit signals appear only at the open of the candles, just after the signal was confirmed at the close of the previous candle. The custom TP and custom SL signals can appear when a candle is not yet finished, but once displayed they don't change.
█ HOW TO PROCEED
1 — Once the script is applied to your chart, it already works with its default settings. You can already see the performance of the strategy in the data table directly on the chart (in the top right corner by default).
2 — You can customize the strategy and influence the results/performance by modifying its parameters. 3 types of parameters are present and can be modified.
3 — This strategy is designed for the cryptocurrency market in priority, but you can also try it on other types of assets. It works on Futures but you can also try it on Spot market mainly for LONG trades.
4 — You can apply the script in every timeframe. We do not recommend using it below m30 because in most cases the statistics are unfavorable largely because of the fees. (This is not a financial advice but only for the use of the indicator)
█ FEATURES
Screenshot on BYBIT:EGLDUSDT Bybit Futures, H1, with default parameters, from 2022-01-01 to 2022-09-27, to show the settings window
• Settings For Backtesting
- Strategy : Choose from a drop-down list if the strategy should execute only Long trades or only Short trades or both. Default Both.
- Invest. : Choose the amount you want to invest in the simulation. Default 10000.
- Position : Choose the amount of the position (Size order) that will be used during the simulation. This will be the $ amount staked/involved for each trade entry.
Ex: If you put 20000 in position and 10000 in Invest. We consider that you use at least a leverage x2. Default 10000.
- Slipp. TP : Choose the amount in percentage of average slippage for Take Profits. This parameter makes it possible to predict a potential gap between the theoretical exit price for each TP (On the graph) and the real exit price on an exchange when implementing the strategy for real (slippage may be due to a time lag of a few seconds from execution time of the order on the exchange and/or due to the execution of a market order).
Ex: If a TP exit order of a Long trade, with entry $19000 (on BTCUSDT), is carried out in theory on the chart at $20000, in practice on the exchange the script have indeed sent an exit order at 20000 , but if the true exit price is 20050, the TP slippage is then +0.25%. Default 0.
- Slipp. SL : Choose the amount in percentage of average slippage for Stop Losses. This parameter makes it possible to predict a potential gap between the theoretical exit price for each SL (On the graph) and the real exit price on an exchange when implementing the strategy for real.
Ex: If an SL exit order of a Long trade, entry $19000 (on BTCUSDT), is carried out in theory on the chart at $18000, in practice on the exchange the script have indeed sent an exit order at 18000 $, but if the true exit price is 17950, the slippage SL is then +0.278% . Default 0.
- Fees % : Choose the percentage amount of fees applied to each trade to simulate the application of the strategy on the exchange of your choice. Applies to the entry and exit of each trade. Ex: For Binance Futures: 0.04; For Bybit futures: 0.06; For Ftx Futures: 0.075. Default 0.
- Cumulate Trades : If you check this, the Backtest will use 100% of the balance as Order Size (Position) for All or in the next X consecutive trades. Default not checked.
⚠️ Be Careful please, this option is available to show the full extent and possibilities of the algorithm when pushed to its limits thanks to the accumulation of profits (cumulative earnings), but it is a strategy that involves great risk. If a bad trade suffers a -50% loss, 50% of the account balance is lost, if the position is liquidated, the entire account balance is lost.
- All : If you check this All trades will be accumulated. Default not checked.
- Consecutive Trades : Choose the number of trades to accumulate. After X consecutive trades, the algorithm reassigns the initial order size to the current one and starts again for X consecutive trades. Minimum Value 2, Default 2.
• Settings To Optimize Performances and Risk Management
- (Main Parameter) EMA Length : Choose the length of the EMA. This value will determine the exponential moving average plot (blue line) that represents the equilibrium in this strategy. Depending on the positioning of the price around this equilibrium, the algorithm will decide to trigger Long or Short entry alerts, and exit alerts. Default 200.
- 1 - Confirm (After X Bar(s)) : If you check this, when the algorithm will detect an entry, it will wait for the number of bars you have entered to actually trigger the entry alert. Default not checked.
- Nb Bar : Enter here the number of bar you want, will be taken into account only if you check (1) Confirm (After X Bar(s)). Default 2.
- 2 - Confirm (Trend) : If you check this, when the algorithm will detect an entry, it will check that the trend is similar to the direction of the trade, if not, it will wait that the trade goes in the same direction as the trend to actually trigger the entry alert. Default not checked.
- OR/AND : This choice is taken into account only if you tick both confirmations. If you choose OR: The first of the 2 confirmations to be validated will trigger the entry alert. If you choose AND : once confirmation (1) is validated, the algorithm waits for confirmation (2) to be validated to actually trigger the entry alert. Default OR.
- Use TP / Use SL : If you check these, the algorithm will trigger personalized trade exit alerts when the price evolution has reached the amounts indicated since the trade entry. Default not Checked.
- % TP - SL : Indicate here the personalized amount in percentage that you want for your Take Profit and Stop Loss of each trade. Default 15-5.
• Settings For Appearances
- Small-size Data Table : If you check this, the data table will become smaller to free up more space on the chart to make it visually more pleasing. Default not checked.
Hide Table /
- Hide Labels / : You can check these to get a cleaner chart and focus only on what interests you in the indicator. Default not checked.
Hide Risk-Reward Areas
█ MAIN PARAMETERS TO USE
• In the default settings none of the box settings are checked. Basic strategy is made to be applied this way.
• The main parameter (the length of the EMA) is by default 200 because it is a known value that many traders rely on in many trading strategies. Moreover in this strategy it works in many cases and on different timeframes.
• To go further the user of the indicator is free to modify the parameters of the category "Leading Parameters - Risk Management" to reduce risks and to optimize profits.
• You can find below our recommendations for the EMA length value corresponding to the main timeframes.
m30 — EMA Length = 400 | 800
H1 — EMA Length = 200 | 400
H2 — EMA Length = 200 | 250
H4 — EMA Length = 100 | 200
D — EMA Length = 20 | 40
⚠️ We have chosen to recommend these settings because they will work in most cases, on most cryptoassets, but of course they will not work 100% of the time on all assets and will not always give positive results in the backtest, and they are not the most optimized parameters either. The user of the indicator is free to optimize the asset on which he wants to trade in his own way. Just as we do not give financial advice, we do not encourage to trade any asset in particular.
█ STATISTICS
The statistics presented below are an example of the results that the strategy can provide. (Reminder: These statistics are made over a past period and there is no guarantee that the same performance will reproduce in the future) .
For the demonstration we chose to apply the strategy on the Top 5 marketcap cryptos in September 2022. They are not the most favorable coins for this strategy but at least this way we don't take the most suitable assets to show wonderful and biased results. Likewise for the parameters used which are the default ones and which are not the most optimized parameters, much better results are possible. We chose Binance because it has the highest volumes and liquidity and the most historical data. We chose H1 because it is one of the most used timeframes.
BTC
Screenshot on BINANCE:BTCUSDTPERP Binance Futures, H1, with default parameters (EMA : 400), from 2022-01-01 to 2022-09-27
ETH
Screenshot on BINANCE:ETHUSDTPERP Binance Futures, H1, with default parameters (EMA : 400), from 2022-01-01 to 2022-09-27
BNB
Screenshot on BINANCE:BNBUSDTPERP Binance Futures, H1, with default parameters (EMA : 400), from 2022-01-01 to 2022-09-27
XRP
Screenshot on BINANCE:XRPUSDTPERP Binance Futures, H1, with default parameters (EMA : 200), from 2022-01-01 to 2022-09-27
ADA
Screenshot on BINANCE:ADAUSDTPERP Binance Futures, H1, with default parameters (EMA : 400), from 2022-01-01 to 2022-09-27
To show the potential of the indicator and push it to its limits, here is an example of the strategy applied for about 2 years (Up to the maximum of historical data available).
⚠️ It must be taken into account that during the period of this backtest the last Bullrun took place and it was a very favorable period for the strategy and for this altcoin (FTM), nothing ensures that it will happen again. ⚠️
FTM
Screenshot on BINANCE:FTMUSDTPERP Binance Futures, H4, with default parameters ( without cumulative earnings) and EMA : 400, start on 2020/12/03 to 2022/09/27
✅ All of the above statistics are verifiable by anyone using the indicator's backtesting system.
█ LIMITATIONS
• Despite the fact that we can see good performances when we backtest the strategy, we must take into account the fact that these are results performed in the past and that in no case does this guarantee that these same performances will be repeated again in the future.
• The automation of this strategy is made possible and is facilitated by alerts, but you must be aware of the fact that if you decide to put this strategy into practice in real life, you are solely responsible for the results that you will be able to obtain and you must be aware of the possibility at all times of partial or even total losses of your invested capital.
• Keep in mind that generating profits in trading is difficult. A strategy can perform very well at one time in the past during a period that is favorable to it, then from one day to the next it can give really bad results for several months or years.
• When backtesting a strategy, there are many factors to consider, not just trade entries to which you add a Take Profit and sometimes a Stop Loss. You must at least take into account the size of the position in relation to the capital you want to invest, the trading fees, the slippages (which can be really important depending on the exchange on which you are trading and depending on the asset you are trading), trading frequency, risk management, momentum, volumes and even more.
• This indicator has been optimized for crypto, you can try to use it on other type of assets but again, at your own risk.
The information published here on TradingView is not prohibited, doesn't constitute investment advice, and isn't created solely for qualified investors.
═════════════════════════════════════════════════════════════════════════
Important to note : our indicators with the same backtesting system are published in separate publications, because putting them together in a single script would considerably slow down the execution of the script. In addition each indicator, even when it is based on a simple technical indicator, has several options, parameters and entry/exit conditions specific to the underlying technical indicator. Finally, we want to keep the simplicity of use, configuration and understanding of our indicator by not mixing strategies that have nothing to do with each other.
MACD Strategy - Backtest [AlgoRider]█ OVERVIEW
Hello dear Tradingviewers !
We are excited to share with you this new indicator which simulates a trading strategy based solely on the well-known technical indicator MACD . We designed it for the sole educational and analytical purposes of showing novice traders and new investors that basing a trading strategy only on one such technical indicator is not necessarily a good thing to do. We do not recommend to apply this strategy for real.
Thanks to this indicator redesigned in our own way by incorporating our simple and easy-to-use Backtest functionality, you will be able to see and report on the performance and results that such a strategy has produced in the past.
The configuration window has also been designed to be easily readable and simple to use. Our goal is to make parameter customization as easy as possible.
█ HOW THE STRATEGY WORKS
• The script will simply trigger Long entries when bullish MACD crossings appear (the Macd line crosses the Signal line upwards) and Short entries when bearish MACD crossings appear (the Macd line crosses below the signal line).
• A Short signal ends a Long trade, a Long signal ends a Short trade.
• The script also allows setting up custom TP and SL.
• An option allows you to trigger early crossings, which will influence entries and exits.
• There is no repaint, once an entry/exit symbol or drawing is displayed it doesn't change anymore. The Short and Long signals appear at the open of the candles, just after the signal was confirmed at the close of the previous candle. The custom TP and custom SL signals can appear when a candle is not yet finished, but once displayed they don't change.
█ HOW TO PROCEED
1 — Once the script is applied to your chart, it already works with its default settings. You can already see the performance of the strategy in the data table directly on the chart (in the top right corner by default).
2 — You can customize the strategy and influence the results/performance by modifying its parameters. 3 types of parameters are present and can be modified.
3 — You can use this indicator in all types of markets.
4 — You can apply the script in every timeframe.
█ PARAMETERS
• Settings For Backtesting
- Strategy : Choose from a drop-down list if the strategy should execute only Long trades or only Short trades or both. Default Both.
- Invest. : Choose the amount you want to invest in the simulation. Default 10000.
- Position : Choose the amount of the position (Size order) that will be used during the simulation. This will be the $ amount staked/involved for each trade entry.
Ex: If you put 20000 in position and 10000 in Invest. We consider that you use at least a leverage x2. Default 10000.
- Slipp. TP : Choose the amount in percentage of average slippage for Take Profits. This parameter makes it possible to predict a potential gap between the theoretical exit price for each TP (On the graph) and the real exit price on an exchange when implementing the strategy for real (slippage may be due to a time lag of a few seconds from execution time of the order on the exchange and/or due to the execution of a market order).
Ex: If a TP exit order of a Long trade, with entry $19000 (on BTCUSDT ), is carried out in theory on the chart at $20000, in practice on the exchange the script have indeed sent an exit order at 20000 , but if the true exit price is 20050, the TP slippage is then +0.25%. Default 0.
- Slipp. SL : Choose the amount in percentage of average slippage for Stop Losses. This parameter makes it possible to predict a potential gap between the theoretical exit price for each SL (On the graph) and the real exit price on an exchange when implementing the strategy for real.
Ex: If an SL exit order of a Long trade, entry $19000 (on BTCUSDT ), is carried out in theory on the chart at $18000, in practice on the exchange the script have indeed sent an exit order at 18000 $, but if the true exit price is 17950, the slippage SL is then +0.278%. Default 0.
- Fees % : Choose the percentage amount of fees applied to each trade to simulate the application of the strategy on the exchange of your choice. Applies to the entry and exit of each trade. Ex: For Binance Futures: 0.04; For Bybit futures: 0.06; For Ftx Futures: 0.075. Default 0.
- Cumulate Trades : If you check this, the Backtest will use 100% of the balance as Order Size (Position) for All or in the next X consecutive trades. Default not checked.
⚠️ Be Careful please, this option is available to show the full extent and possibilities of the algorithm when pushed to its limits thanks to the accumulation of profits (cumulative earnings ), but it is a strategy that involves great risk. If a bad trade suffers a -50% loss, 50% of the account balance is lost, if the position is liquidated, the entire account balance is lost.
- All : If you check this All trades will be accumulated. Default not checked.
- Consecutive Trades : Choose the number of trades to accumulate. After X consecutive trades, the algorithm reassigns the initial order size to the current one and starts again for X consecutive trades. Minimum Value 2, Default 2.
• Settings To Optimize Performances and Risk Management
- Fast_MA : Choose the length of the Fast Moving Average. Default 12.
- Slow_MA : Choose the length of the Slow Moving Average. Default 26.
- Enable Early Crossings : If you check this, when the algorithm will detect an early crossing wethere bullish or bearish , it will trigger the Long or Short entries. Default not checked.
- Oscillator MA Type : Choose if the Macd line should be an Exponential Moving Average or a Simple Moving Average . Default Expo.
- Signal Line MA Type : Choose if the Signal line should be an Exponential Moving Average or a Simple Moving Average . Default Expo.
- Use TP / Use SL : If you check these, the algorithm will trigger personalized trade exit signals when the price evolution has reached the amounts indicated since the trade entry. Default not Checked.
- % TP - SL : Indicate here the personalized amount in percentage that you want for your Take Profit and Stop Loss of each trade. Default 15-5.
• Settings For Appearances
- Small-size Data Table : If you check this, the data table will become smaller to free up more space on the chart to make it visually more pleasing. Default not checked.
Hide Table /
- Hide Labels / : You can check these to get a cleaner chart and focus only on what interests you in the indicator. Default not checked.
Hide Risk-Reward Areas
█ LIMITATIONS
• ⚠️ We repeat it once again, this strategy is not intended to be reproduced in real conditions, we have designed it for educational and analytical purposes only.
• Even if you see good performances when you backtest the strategy, you must take into account that these results are performed in the past and that in no case does this guarantee that these same performances will be repeated again in the future.
• When you run for real a trading strategy you must be aware of the fact that you are solely responsible for the results that you will be able to obtain and you must be aware of the possibility at all times of partial or even total losses of your invested capital.
• Keep in mind that generating profits in trading is difficult. A strategy can perform very well at one time in the past during a period that is favorable to it, then from one day to the next it can give really bad results for several months or years.
• When backtesting a trading strategy, there are many factors to consider, not just trade entries to which you add a Take Profit and sometimes a Stop Loss. You must at least take into account the size of the position in relation to the capital you want to invest, the trading fees, the slippages (which can be really important depending on the exchange on which you are trading and depending on the asset you are trading), trading frequency, risk management, momentum, volumes and even more.
The information published here on TradingView is not prohibited, doesn't constitute investment advice, and isn't created solely for qualified investors.
═════════════════════════════════════════════════════════════════════════
Important to note : our indicators with the same backtesting system are published in separate publications, because putting them together in a single script would considerably slow down the execution of the script. In addition each indicator, even when it is based on a simple technical indicator, has several options, parameters and entry/exit conditions specific to the underlying technical indicator. Finally, we want to keep the simplicity of use, configuration and understanding of our indicator by not mixing strategies that have nothing to do with each other.
RSI Strategy - Backtest [AlgoRider]█ OVERVIEW
Hello dear Tradingviewers !
We share with you this new indicator which simulates a trading strategy based solely on the well-known technical indicator RSI . We designed it for the sole educational and analytical purposes of showing novice traders and new investors that basing a trading strategy only on one such technical indicator is not necessarily a good thing to do. We do not recommend to apply this strategy for real.
Thanks to this indicator redesigned in our own way by incorporating our simple and easy-to-use Backtest functionality, you will be able to see and report on the performance and results that such a strategy has produced in the past.
The configuration window has also been designed to be easily readable and simple to use. Our goal is to make parameter customization as easy as possible.
█ HOW THE STRATEGY WORKS
• The script will trigger Long entries when the price crosses upwards the Oversold zone (Default 38.2) and Short entries when the price crosses downward the Overbought zone (Default 61.8).
• A Short signal ends a Long trade, a Long signal ends a Short trade.
• The script also allows setting up custom TP and SL.
• Several options allow you to reverse entry and exit conditions of trades. You can choose to reverse entries or/and exits (Ex: when the script detects a Long Entry, it will actually trigger a Short trade).
• You can also change the entry conditions of the strategy. Instead of entering oversold/overbought zone conditions, it will trigger entries when the Rsi changes direction and reverses (Ex: when the rsi has been going down for 5 candles, and the rsi starts going up) , regardless of the area in which the RSI is located.
• There is no repaint, once an entry/exit symbol or drawing is displayed it doesn't change anymore. The Short and Long signals appear at the open of the candles, just after the signal was confirmed at the close of the previous candle. The custom TP and custom SL signals can appear when a candle is not yet finished, but once displayed they don't change.
█ HOW TO PROCEED
1 — Once the script is applied to your chart, it already works with its default settings. You can already see the performance of the strategy in the data table directly on the chart (in the top right corner by default).
2 — You can customize the strategy and influence the results/performance by modifying its parameters. 4 types of parameters are present and can be modified.
3 — You can use this indicator in all types of markets.
4 — You can apply the script in every timeframe.
█ PARAMETERS
• Settings For Backtesting
- Strategy : Choose from a drop-down list if the strategy should execute only Long trades or only Short trades or both. Default Both.
- Invest. : Choose the amount you want to invest in the simulation. Default 10000.
- Position : Choose the amount of the position (Size order) that will be used during the simulation. This will be the $ amount staked/involved for each trade entry.
Ex: If you put 20000 in position and 10000 in Invest. We consider that you use at least a leverage x2. Default 10000.
- Slipp. TP : Choose the amount in percentage of average slippage for Take Profits. This parameter makes it possible to predict a potential gap between the theoretical exit price for each TP (On the graph) and the real exit price on an exchange when implementing the strategy for real (slippage may be due to a time lag of a few seconds from execution time of the order on the exchange and/or due to the execution of a market order).
Ex: If a TP exit order of a Long trade, with entry $19000 (on BTCUSDT ), is carried out in theory on the chart at $20000, in practice on the exchange the script have indeed sent an exit order at 20000 , but if the true exit price is 20050, the TP slippage is then +0.25%. Default 0.
- Slipp. SL : Choose the amount in percentage of average slippage for Stop Losses. This parameter makes it possible to predict a potential gap between the theoretical exit price for each SL (On the graph) and the real exit price on an exchange when implementing the strategy for real.
Ex: If an SL exit order of a Long trade, entry $19000 (on BTCUSDT ), is carried out in theory on the chart at $18000, in practice on the exchange the script have indeed sent an exit order at 18000 $, but if the true exit price is 17950, the slippage SL is then +0.278%. Default 0.
- Fees % : Choose the percentage amount of fees applied to each trade to simulate the application of the strategy on the exchange of your choice. Applies to the entry and exit of each trade. Ex: For Binance Futures: 0.04; For Bybit futures: 0.06; For Ftx Futures: 0.075. Default 0.
- Cumulate Trades : If you check this, the Backtest will use 100% of the balance as Order Size (Position) for All or in the next X consecutive trades. Default not checked.
⚠️ Be Careful please, this option is available to show the full extent and possibilities of the algorithm when pushed to its limits thanks to the accumulation of profits (cumulative earnings ), but it is a strategy that involves great risk. If a bad trade suffers a -50% loss, 50% of the account balance is lost, if the position is liquidated, the entire account balance is lost.
- All : If you check this All trades will be accumulated. Default not checked.
- Consecutive Trades : Choose the number of trades to accumulate. After X consecutive trades, the algorithm reassigns the initial order size to the current one and starts again for X consecutive trades. Minimum Value 2, Default 2.
• Change Entry & Exit conditions
- Rsi Turns Up/Down : Enable this option to change conditions for trade entries. For Long entries : It will start a Long trade when RSI turns up and the RSI was falling on the last X bar(s). For Short entries : It will start a Short trade when RSI turns down and the RSI was rising on the last X bar(s). Default not checked.
- After Falling/Rising Bars(s) : Choose the number of bars/candles since which the price was falling/rising. Default 5.
- Reverse Entries : Enable this option to reverse conditions for trade entries. When a Short signal appears, it will actually start a Long trade. When a Long signal appears, it will actually start a Short trade. Default not checked.
- Reverse Exits : Enable this option to reverse conditions for trade exits. Default not checked.
- Safety Stop Loss : Enable this option to quickly cut the trade when the price turns quickly. For a Long trade : if the price returns to the oversold zone, it ends the trade. For a Short trade : if the price returns to the overbought zone, it ends the trade. Mainly useful for basic strategy (overbought/oversold conditions). Default not checked.
• Settings To Optimize Performances and Risk Management
- Len RSI : The length of RSI . Default 14.
- Overbuy : You can change the limit value of the overbought zone of the RSI . Default 61.8.
- Oversell : You can change the limit value of the oversell zone of the RSI . Default 38.2.
- Use TP / Use SL : If you check these, the algorithm will trigger personalized trade exit signals when the price evolution has reached the amounts indicated since the trade entry. Default not Checked.
- % TP - SL : Indicate here the personalized amount in percentage that you want for your Take Profit and Stop Loss of each trade. Default 15-5.
• Settings For Appearances
- Small-size Data Table : If you check this, the data table will become smaller to free up more space on the chart to make it visually more pleasing. Default not checked.
Hide Table /
- Hide Labels / : You can check these to get a cleaner chart and focus only on what interests you in the indicator. Default not checked.
Hide Risk-Reward Areas
█ LIMITATIONS
• ⚠️ We repeat it once again, this strategy is not intended to be reproduced in real conditions, we have designed it for educational and analytical purposes only.
• Even if you see good performances when you backtest the strategy, you must take into account that these results are performed in the past and that in no case does this guarantee that these same performances will be repeated again in the future.
• When you run for real a trading strategy you must be aware of the fact that you are solely responsible for the results that you will be able to obtain and you must be aware of the possibility at all times of partial or even total losses of your invested capital.
• Keep in mind that generating profits in trading is difficult. A strategy can perform very well at one time in the past during a period that is favorable to it, then from one day to the next it can give really bad results for several months or years.
• When backtesting a trading strategy, there are many factors to consider, not just trade entries to which you add a Take Profit and sometimes a Stop Loss. You must at least take into account the size of the position in relation to the capital you want to invest, the trading fees, the slippages (which can be really important depending on the exchange on which you are trading and depending on the asset you are trading), trading frequency, risk management, momentum, volumes and even more.
The information published here on TradingView is not prohibited, doesn't constitute investment advice, and isn't created solely for qualified investors.
═════════════════════════════════════════════════════════════════════════
Important to note : our indicators with the same backtesting system are published in separate publications, because putting them together in a single script would considerably slow down the execution of the script. In addition each indicator, even when it is based on a simple technical indicator, has several options, parameters and entry/exit conditions specific to the underlying technical indicator. Finally, we want to keep the simplicity of use, configuration and understanding of our indicator by not mixing strategies that have nothing to do with each other.
Position size in dollar cost average strategySTATIC DCA
Using the tradingview.com, an algorithm was generated that simulates the behavior of the DCA methodology. This algorithm simulates the purchase of 1000 USD on the 15th of each month, regardless of the bitcoin price. It is considered a static DCA, since the amount to be invested remains always fixed.
The inputs to the function are, the day number of the month in which the purchase is to be made, the start date of the simulation and the capital to be invested month by month. What the function does is to receive the value of the investment, and if the day entered in the function coincides with the current day, it will divide the invested capital by the price of the asset, obtaining a position size that accumulates in each purchase. With this data we can obtain the total invested capital, the net profit, as well as the average buying price.
DYNAMIC DCA
The dynamic DCA, bases its operation on the use of moving averages and standard deviations, in order to find the zones where the price has a lower value than the deviation under the mean. This condition can be considered as an accumulation zone.
The data were obtained in a one-week time window, using the security request method. Since purchases are made one every month, the daily time window generates many false signals, while the one-month time window generates few signals. The analysis is performed on data from 52 weeks equivalent to one year.
Subsequently we created an algorithm based on the ATR, for the selection of the position size, the fundamental characteristic of this development is that the algorithm will not invest the total of the capital destined to month to month. The amount of money to be invested will vary between 0 and 100%, in discrete values defined by the mean and standard deviation in the ATR calculation. Uninvested money will accumulate until the asset price enters the accumulation zone, where this capital will be released and used to accumulate as much of the asset as possible.
The function developed for the dynamic DCA receives the same inputs as the previous function, plus an extra condition and the variable resulting from the calculation of the position size.
---
ANALYSIS
In the analysis, we will consider ratios, such as cumulative position size, percentage net profit, invested amount and average buying price. The simulation of the results starts on 12/18/2017. For the analysis in all charts, the red line will represent the static DCA ratios, while the blue line will represent the dynamic DCA ratios.
Amount invested
At the end of this backtesting, the quantity invested is the same for each of the cases, however, the way the money enters the market is different. Money enters steadily and in the same amount in the static DCA, while in the dynamic DCA, there are months in which no purchases are made, or partial purchases are made. The remaining capital that accumulates and flows into the market, when bitcoin reaches its lowest price and enters accumulation zones.
Accumulated position size
It can be noted that the dynamic DCA strategy obtains a better result, accumulating a total of 6.62 bitcoins, 18% higher than the static DCA strategy.
Percentage net profit
The static DCA strategy in the last rally was approximately 40% lower in percentage return on invested capital than the dynamic DCA strategy.
Average buying price
In the initial part of the simulation the average buying price of bitcoin using the static DCA strategy was lower, however, as time went on, the dynamic DCA strategy obtained a better average buying price, with 15% cheaper.
---
CONCLUSIONS
The dynamic DCA strategy was more efficient in the use of investment resources.
- One of the main advantages of the dynamic DCA strategy is that it will allow us to enter the spot market even after it has passed its parabolic growth cycle. We will be able to accumulate bitcoin in the bearish regime, having our largest purchases in the accumulation zone.
- Due to these characteristics, the time in which we stay in negative returns is going to be shorter than with a DCA strategy.
- This algorithm can be tested on different assets, extrapolated to Python and by connecting via API, you can configure the automatic purchase of cryptocurrencies, which generates an accumulation of assets based on back testing, relatively superior to what several wallets and exchanges offer.
- The parameters for configuring the dynamic DCA strategy are quite basic and do not require professional knowledge, and the optimal configuration can be obtained by visualizing the results.
PortfolioThe script’s purpose is to measure one’s net worth based on manual input. It can also be used to establish other “unthought-of” ways of analyzing charts, eg. to group different assets and watch for convergence.
“How to use”
First, decide which “currency” you want to measure all your assets against. You can display the portfolio value in a cryptocurrency or something else.
Add assets:
Write a description (eg. Bitcoin).
Set the amount you have.
Link to a chart that measures against your “currency”
It’s possible to add multiple assets in different “accounts” or “groups”. The portfolio value should then display the value of all those assets combined.
How is PnL measured?
You can measure PnL for the entire portfolio and every “group” individually. You are in charge of which level to measure from. You can for instance type in your current portfolio value and reset it on a monthly basis, or perhaps set a “floor” you want to avoid reaching. PnL is displayed in “currency” and percent change measured from the levels chosen by you.
Script information
To make the indicators published by this account fit together, look good, and easily managed. We had to include some code that is also used in the (closed-source) indicators “Long Position” and “Short Position”. This code is used for distancing and placing labels. It is a volatility-based code that looks back at the previous price action and determines a chart- and timeframe-specific volatility. Not “timeframe-specific” in the sense that some timeframes have special calculations, more that values will most likely be different depending on the “calculation environment”. The main functionality of this script is not about label placements, so we do not think this is a very big deal regarding originality for our other indicators. To keep our other indicators original and to not give away key code blocks with multi-functional value , we have chosen to also have this script published as closed-source.
Furthermore, the script requests data from other symbols based on the user’s input. Thereafter, it calculates and concatenates the percentage and value from the initial inputs. To better understand the script as a whole it would probably be useful to read the “How to use” section of this publication.
[MT] Strategy Backtest Template| Initial Release | | EN |
An update of my old script, this script is designed so that it can be used as a template for all those traders who want to save time when programming their strategy and backtesting it, having functions already programmed that in normal development would take you more time to program, with this template you can simply add your favorite indicator and thus be able to take advantage of all the functions that this template has.
🔴Stop Loss and 🟢Take Profit:
No need to mention that it is a Stop Loss and a Take Profit, within these functions we find the options of: fixed percentage (%), fixed price ($), ATR, especially for Stop Loss we find the Pivot Points, in addition to this, the price range between the entry and the Stop Loss can be converted into a trailing stop loss, instead, especially for the Take Profit we have an option to choose a 1:X ratio that complements very well with the Pivot Points.
📈Heikin Ashi Based Entries:
Heikin Ashi entries are trades that are calculated based on Heikin Ashi candles but their price is executed to Japanese candles, thus avoiding false results that occur in Heikin candlestick charts, this making in certain cases better results in strategies that are executed with this option compared to Japanese candlesticks.
📊Dashboard:
A more visual and organized way to see the results and necessary data produced by our strategy, among them we can see the dates between which our operations are made regardless if you have activated some time filter, usual data such as Profit, Win Rate, Profit factor are also displayed in this panel, additionally data such as the total number of operations, how many were gains and how many losses, the average profit and loss for each operation and finally the maximum profits and losses followed, which are data that will be very useful to us when we elaborate our strategies.
Feel free to use this template to program your own strategies, if you find errors or want to request a new feature let me know in the comments or through my social networks found in my tradingview profile.
| Update 1.1 | | EN |
➕Additions: '
Time sessions filter and days of the week filter added to the time filter section.
Option to add leverage to the strategy.
5 Moving Averages, RSI, Stochastic RSI, ADX, and Parabolic Sar have been added as indicators for the strategy.
You can choose from the 6 available indicators the way to trade, entry alert or entry filter.
Added the option of ATR for Take Profit.
Ticker information and timeframe are now displayed on the dashboard.
Added display customization and color customization of indicator plots.
Added customization of display and color plots of trades displayed on chart.
📝Changes:
Now when activating the time filter it is optional to add a start or end date and time, being able to only add a start date or only an end date.
Operation plots have been changed from plot() to line creation with line.new().
Indicator plots can now be controlled from the "plots" section.
Acceptable and deniable range of profit, winrate and profit factor can now be chosen from the "plots" section to be displayed on the dashboard.
Aesthetic changes in the section separations within the settings section and within the code itself.
The function that made the indicators give inputs based on heikin ashi candles has been changed, see the code for more information.
⚙️Fixes:
Dashboard label now projects correctly on all timeframes including custom timeframes.
Removed unnecessary lines and variables to take up less code space.
All code in general has been optimized to avoid the use of variables, unnecessary lines and avoid unnecessary calculations, freeing up space to declare more variables and be able to use fewer lines of code.
| Lanzamiento Inicial | | ES |
Una actualización de mi antiguo script, este script está diseñado para que pueda ser usado como una plantilla para todos aquellos traders que quieran ahorrar tiempo al programar su estrategia y hacer un backtesting de ella, teniendo funciones ya programadas que en el desarrollo normal te tomaría más tiempo programar, con esta plantilla puedes simplemente agregar tu indicador favorito y así poder aprovechar todas las funciones que tiene esta plantilla.
🔴Stop Loss y 🟢Take Profit:
No hace falta mencionar que es un Stop Loss y un Take Profit, dentro de estas funciones encontramos las opciones de: porcentaje fijo (%), precio fijo ($), ATR, en especial para Stop Loss encontramos los Pivot Points, adicionalmente a esto, el rango de precio entre la entrada y el Stop Loss se puede convertir en un trailing stop loss, en cambio, especialmente para el Take Profit tenemos una opción para elegir un ratio 1:X que se complementa muy bien con los Pivot Points.
📈Entradas Basadas en Heikin Ashi:
Las entradas Heikin Ashi son operaciones que son calculados en base a las velas Heikin Ashi pero su precio esta ejecutado a velas japonesas, evitando así́ los falsos resultados que se producen en graficas de velas Heikin, esto haciendo que en ciertos casos se obtengan mejores resultados en las estrategias que son ejecutadas con esta opción en comparación con las velas japonesas.
📊Panel de Control:
Una manera más visual y organizada de ver los resultados y datos necesarios producidos por nuestra estrategia, entre ellos podemos ver las fechas entre las que se hacen nuestras operaciones independientemente si se tiene activado algún filtro de tiempo, datos usuales como el Profit, Win Rate, Profit factor también son mostrados en este panel, adicionalmente se agregaron datos como el número total de operaciones, cuantos fueron ganancias y cuantos perdidas, el promedio de ganancias y pérdidas por cada operación y por ultimo las máximas ganancias y pérdidas seguidas, que son datos que nos serán muy útiles al elaborar nuestras estrategias.
Siéntete libre de usar esta plantilla para programar tus propias estrategias, si encuentras errores o quieres solicitar una nueva función házmelo saber en los comentarios o a través de mis redes sociales que se encuentran en mi perfil de tradingview.
| Actualización 1.1 | | ES |
➕Añadidos:
Filtro de sesiones de tiempo y filtro de días de la semana agregados al apartado de filtro de tiempo.
Opción para agregar apalancamiento a la estrategia.
5 Moving Averages, RSI, Stochastic RSI, ADX, y Parabolic Sar se han agregado como indicadores para la estrategia.
Puedes escoger entre los 6 indicadores disponibles la forma de operar, alerta de entrada o filtro de entrada.
Añadido la opción de ATR para Take Profit.
La información del ticker y la temporalidad ahora se muestran en el dashboard.
Añadido personalización de visualización y color de los plots de indicadores.
Añadido personalización de visualización y color de los plots de operaciones mostradas en grafica.
📝Cambios:
Ahora al activar el filtro de tiempo es opcional añadir una fecha y hora de inicio o fin, pudiendo únicamente agregar una fecha de inicio o solamente una fecha de fin.
Los plots de operaciones han cambiados de plot() a creación de líneas con line.new().
Los plots de indicadores ahora se pueden controlar desde el apartado "plots".
Ahora se puede elegir el rango aceptable y negable de profit, winrate y profit factor desde el apartado "plots" para mostrarse en el dashboard.
Cambios estéticos en las separaciones de secciones dentro del apartado de configuraciones y dentro del propio código.
Se ha cambiado la función que hacía que los indicadores dieran entradas en base a velas heikin ashi, mire el código para más información.
⚙️Arreglos:
El dashboard label ahora se proyecta correctamente en todas las temporalidades incluyendo las temporalidades personalizadas.
Se han eliminado líneas y variables innecesarias para ocupar menos espacio en el código.
Se ha optimizado todo el código en general para evitar el uso de variables, líneas innecesarias y evitar los cálculos innecesarios, liberando espacio para declarar más variables y poder utilizar menos líneas de código.
Rabi Pivot High LowIt is used to buy and sell in Stock Market NSE. It can also be used to Trail the SL to gain more profit or limit the loss.
Discipline is important in following the levels. If followed the levels properly, you will never be in loss in overall trade setup.
[TTI] IBD Market School––––History & Credit
This is a game-changer! Fully based on the Market School Home Study Program (Retail Price $1,500), the script takes the strict, rule-based market timing system developed by Investor's Business Daily and makes it into a easy to ready automated indicator. So that you take the ego and emotions out of the equation!
Over the years, many investors have been asking for a highly specific, quantitative method to assist them in navigating the market, stating that their existing system is too qualitative in character and focused too heavily on feel rather than predetermined principles.
The IBD Market School develops a common sense strategy that will help you enter every major market uptrend and prevent you from entering every major market downtrend/ You will discover the crucial market cues you need to pay attention to in order to manage your account with this indicator.
–––––What it does
The indicator uses 10 buys signals that will get you into the market rally early and 14 sell signal that reduce your market exposure before a downtrend.
👉 Buy Sell signals
Follow Through Days and Failed Rally Attempts
Rules around the 21-Day Moving Average
Rules around the 50-Day Moving Average
Strength and Weakness Rules
Downside Reversals
Distribution Rules
👉 Investment Allocation Rules
Recommended Portfolio Market Exposure at any given time
Buy Switch
Restrain Rules
Power-Trend
–––––How to use it
The combination of the Buy and Sell rules, together with the portfolio management rules, make sure that you are in line with the market trend The Market Exposure box gives information on the Recommended % of total portfolio exposure, that is recommended at any given time. The proliferation of Sell rules indicate danger and the Buy Switch, Restraint Rule and Power Trend indicate show how strong or weak are the current market rallies.
The indicator can be applied on any major market index.
Dollar Cost Averaging (Portfolio)
You can use it in daily, weekly and monthly candles. It can be used on multiple assets(10). All assets must have data and make sure they all use the same currency. See style in settings for plot titles If you are interested in passive investing, I hope it helps.
------------------
Günlük, haftalık, aylık mumlarda kullabilirsiniz. Birden fazla varlıkta kullanılabilir. Çoklu kullanım için hepsinin verisi olmalı ve aynı para birimini kullanmalı. Ayarlardan stilde grafik başlıklarını bulabilirsiniz. Pasif yatırım ile ilgiyseniz umarım yardımcı olur.
Benjamin Graham Net-Net AnalyserA simple indicator that displayers as a table, telling you whether or not the stock you have selected has a current price that is less than 67% of the company's net current asset value per share (NCAVPS) at its last reporting period (FQ, FY, TTM).
Benjamin Graham uses this 67% rule to decide whether or not a stock is significantly undervalued, and studies have shown that investing in companies whose share prices are less than 67% of their NCAVPS can be highly profitable, and will beat markets in the long run.
Feel free to use as you please or repurpose the code for your own projects.
Interactive Lot/Position Calculator FTX/OKX DCA [RDM13-NOSTRA] Interactive script to calculate lot and position size when you use TradingView to trade on FTX or OKX. You can also use multi positions for DCA strategy.
After adding an indicator and making an initial interactive selection on the chart, you can modify the selection points by selecting the indicator and moving the points on the chart.
Risk Calculation Table - Amount BasedHello, this is my first script, and I believe that understanding the Risk and Reward is also the first essential step to become a successful trader.
Well maybe there are a lot of script like this but I think no one was suitable for me, so I learnt how to make one.
I think I need to explain some aspects about this script:
Input Section :
1. Entry = Entry Price.
2. SL = Stop Loss Price.
3. TP = Take Profit Price.
4. Amount = How much dollars you trade on this trade.
4. Ticker's Decimal = The number behind the decimal, to adjust this just type how much 0 you want behind the decimal.
Output Section :
1. You can adjust the lines plotted on the chart to automatically enter your entry, stop loss, and take profit price.
2. The table's appearance can be repositioned and resized.
3. The terms in the table, I think it's clear enough for everyone to understand.
If there are any critics or suggestions, I will appreciate it so much.
Greetings from Indonesia :)
Calculadora de Alavancagem Dinâmica
Este indicador deve ser utilizado para calcular a alavancagem necessária para travar as perdas em seus trades.
Defina a margem (capital em risco no trade), a porcentagem disposta a perder,
o preço de entrada, em seguida o preço de stop loss. É possível arrastar as linhas de preços desenhadas no gráfico para atualização dos preços dispostos no indicador.
O script mostrará um alvo a partir da relação risco/retorno definida pelas configurações.
Agradeço aos ensinamentos passados pelo Ghost Trader e por sua comunidade do Discord.
Agradecimento especial ao criador @LamboLimbo pela divulgação do seu script "Leverage Calculator".
NSE Paper Stocks IndexThis is the script to create a custom index of NSE paper stocks. in this example 11 stocks are selected
3Commas dollar cost averaging (DCA) QFL IndicatorAs investors, we often face the dilemma of willing high stock prices when we sell, but not when we buy. There are times when this dilemma causes investors to wait for a dip in prices, thereby potentially missing out on a continual rise. This is how investors get lured away from the markets and become tangled in the slippery slope of market timing, which is not advisable to a long-term investment strategy.
Skyrex developed a complex indicator based on dollar-cost averaging in Quick Fingers Luc's interpretation. It is a combinations of strategies which allows to systematically accumulate assets by investing scaled amounts of money at defined market cycle global support levels. Dollar-cost averaging can reduce the overall impact of price volatility and lower the average cost per asset thus even during market slumps only a small bounce is required to reach take profit.
The indicator script monitors a chart price action and identifies bases as they form. When bases are reached the script provides entry alerts. During price action development an asset value can go lower and in this way the script will perform safety entries alerts at each subsequent accumulation levels. When weighted average entry price reaches target profit the script will perform a take profit action alert.
Bases are identified as pivot lows in a fractal pattern and validated by an adjustable decrease/rise percentage to ensure significancy of identified bases. To qualify a pivot low, the indicator will perform the following validation:
Validate the price rate of change on drops and bounces is above a given threshold amount.
Validate the volume at the low pivot point is above the volume moving average (using a given length).
Validate the volume amount is a given factor of magnitude above is above the volume moving average.
Validate the potential new base is not too close to the previous range by using a given price percent difference threshold amount.
A fractal pattern is a recurring pattern on a price chart that can predict reversals among larger, more chaotic price movements. These basic fractals are composed of five or more bars. The rules for identifying fractals are as follows:
A bearish turning point occurs when there is a pattern with the highest high in the middle and two lower highs on each side.
A bullish turning point occurs when there is a pattern with the lowest low in the middle and two higher lows on each side.
Basic dollar-cost averaging approach is enhances by implementation of adjustable accumulation levels in order to provide opportunity of setting them at defined global support levels and Martingale volume coefficient to increase averaging effect. According to Quick Fingers Luc's principles trading principles we added volume validation of a base because it allows to confirm that the market is resistant to further price decrease.
The indicator supports traditional and cryptocurrency spot, futures , options and marginal trading exchanges. It works accurately with BTC , USD, USDT, ETH and BNB quote currencies. Best to use with 1H timeframe charts and limit orders. The indicator can be and should be configured for each particular asset according to its global support and resistance levels and price action cycles. You can modify levels and risk management settings to receive better performance
The difference between core script and this interpretation is that this strategy is specially designed for 3Commas bots
How to use?
1. Apply indicator to a trading pair your are interested in using 1H timeframe chart
2. Configure the indicator: change layer values, order size multiple and take profit/stop loss values according to current market cycle stage
3. Set up a TradingView custom alert using the indicator settings to trigger on a condition you are interested in
4. The indicator will send alerts when to enter and when to exit positions which can be applied to your portfolio using external trading platforms
5. Update settings once market conditions are changed using backtests on a monthly period
3Commas Dollar cost averaging trading system (DCA)As investors, we often face the dilemma of willing high stock prices when we sell, but not when we buy. There are times when this dilemma causes investors to wait for a dip in prices, thereby potentially missing out on a continual rise. This is how investors get lured away from the markets and become tangled in the slippery slope of market timing, which is not advisable to a long-term investment strategy.
Skyrex developed a complex trading system based on dollar-cost averaging in Quick Fingers Luc's interpretation. It is a combinations of strategies which allows to systematically accumulate assets by investing scaled amounts of money at defined market cycle global support levels. Dollar-cost averaging can reduce the overall impact of price volatility and lower the average cost per asset thus even during market slumps only a small bounce is required to reach take profit.
The strategy script monitors a chart price action and identifies bases as they form. When bases are reached the script provides entry actions. During price action development an asset value can go lower and in this way the script will perform safety entries at each subsequent accumulation levels. When weighted average entry price reaches target profit the script will perform a take profit action.
Bases are identified as pivot lows in a fractal pattern and validated by an adjustable decrease/rise percentage to ensure significancy of identified bases. To qualify a pivot low, the indicator will perform the following validation:
Validate the price rate of change on drops and bounces is above a given threshold amount.
Validate the volume at the low pivot point is above the volume moving average (using a given length).
Validate the volume amount is a given factor of magnitude above is above the volume moving average.
Validate the potential new base is not too close to the previous range by using a given price percent difference threshold amount.
A fractal pattern is a recurring pattern on a price chart that can predict reversals among larger, more chaotic price movements.
These basic fractals are composed of five or more bars. The rules for identifying fractals are as follows:
A bearish turning point occurs when there is a pattern with the highest high in the middle and two lower highs on each side.
A bullish turning point occurs when there is a pattern with the lowest low in the middle and two higher lows on each side.
Basic dollar-cost averaging approach is enhances by implementation of adjustable accumulation levels in order to provide opportunity of setting them at defined global support levels and Martingale volume coefficient to increase averaging effect. According to Quick Fingers Luc's principles trading principles we added volume validation of a base because it allows to confirm that the market is resistant to further price decrease.
The strategy supports traditional and cryptocurrency spot, futures , options and marginal trading exchanges. It works accurately with BTC, USD, USDT, ETH and BNB quote currencies. Best to use with 1H timeframe charts and limit orders. The strategy can be and should be configured for each particular asset according to its global support and resistance levels and price action cycles. You can modify levels and risk management settings to receive better performance
The difference between core script and this interpretation is that this strategy is specially designed for 3Commas bots
How to use?
1. Apply strategy to a trading pair your are interested in using 1H timeframe chart
2. Configure the strategy: change layer values, order size multiple and take profit/stop loss values according to current market cycle stage
3. Set up a TradingView alert to trigger when strategy conditions are met
4. Strategy will send alerts when to enter and when to exit positions which can be applied to your portfolio using external trading platforms
5. Update settings once market conditions are changed using backtests on a monthly period
NNFX Exposure UtilityOVERVIEW
This tool allows the user to manually keep track of how much of their account is currently exposed to each currency, and keep that information handy and organized on the chart as a table.
It is specialized for NNFX traders who are trading all the pairs among the 9 major currency crosses: AUD, CAD, CHF, EUR, GBP, JPY, NZD, SGD, USD.
HOW DO I USE THIS INDICATOR?
Before you take a trade, you should open the indicator settings for this indicator and check off which currencies you are about to go long and short on. Here are 3 trades taken as examples:
If you go long on EUR/USD with 2% risk, your exposure is 2% long on EUR and 2% short on USD.
Then if you go short on GBP/SGD with 2% risk, your exposure is 2% short on GBP and 2% long on SGD.
But if you go long on SGD/JPY with 2% risk, your exposure would now be 4% long on SGD and 2% short on JPY. This is against your rules if you are trading the NNFX way. So this tool allows you to see when you are about to accidentally overexpose yourself to any currency pair.
Portfolio PerformanceThis indicators will help you to compute portfolio performance and display results with a stats table and a nice monthly chart.
In this script you can do following:
Compose portfolio with up to 15 instruments
Change Initial capital / date range / rebalancing period
Compare portfolio performance with a benchmark
Compute basic stats
Compute instruments contribution
Display monthly performance of portfolio and benchmark
Change style for almost everything you see on your chart
Hope it will be useful for you!
Thanks to @MUQWISHI for helping me coding it.
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting.
This post and the script don’t provide any financial advice.
Ultimate Grid Tool + Alerts (DCA & Limit Orders) [enzedengineer]Overview
The "Ultimate Grid Tool + Alerts" script works much like a grid bot from automated trading services such as 3Commas making it a good free alternative with some extra utility.
How it works
The user is prompted to set up a grid by manually defining a lower and upper range and then by selecting how many grid segments they want (max 20). The script will automatically create equally spaced grids within this defined range. The script has built in alerts which are intended to be used in conjunction with a third-party application to execute buy and sell orders on an exchange.
The script has two alert functionalities to choose between:
Limit orders (like traditional grid bots) or;
DCA zones (time-based)
DCA zones:
This is the default selection. Each zone has its own alert condition which is triggered if the price closes within that zone. The frequency of the alert is determined by the user's chart resolution, therefore you can have the alert trigger every day, or 4 hours, or 30 minutes and so on. This allows for flexibility, for example, you could go from DCA'ing at $20 per day at higher prices to $100 per day as the price drops into the lower end of your grid range.
Limit orders:
This mode is selected by checking the "Limit Order" box. As mentioned earlier, this mode works like traditional grid bots with each grid line representing a limit order. The alert condition is met when ta.cross(close, gridline) = true.
Buy and Sell:
This mode is selected by checking the "Buy and Sell" box. This is a visual modification only which changes the colour of the grids to help plan the user's trading. Please note, there is no buying or selling logic within the script itself - this should be built into the alert message to be used with a third-party application for exchange order execution.
Use case: The author of this script has been using it with the default settings to DCA into Bitcoin in the current bear market. Using a chart resolution of 15 minutes the script purchases x-amount of Bitcoin every 15 minutes (Alertatron executes the exchange orders). This method provides a well blended average price and takes away the internal conundrum of "should I buy some today". No matter what, the bot will make a purchase within at least 15 minutes of the ultimate Bitcoin bottom and arguably this gives a psychological edge and reduces FOMO (fear of missing out).
Sortino RatioFrom Wikipedia :
"The Sortino ratio measures the risk-adjusted return of an investment asset, portfolio, or strategy. It is a modification of the Sharpe ratio but penalizes only those returns falling below a user-specified target or required rate of return, while the Sharpe ratio penalizes both upside and downside volatility equally. Though both ratios measure an investment's risk-adjusted return, they do so in significantly different ways that will frequently lead to differing conclusions as to the true nature of the investment's return-generating efficiency.
The Sortino ratio is used as a way to compare the risk-adjusted performance of programs with differing risk and return profiles. In general, risk-adjusted returns seek to normalize the risk across programs and then see which has the higher return unit per risk."