Amrullah Deep Liquidity for S&P 500Amrullah Deep Liquidity (ADL)
Amrullah Deep Liquidity (ADL) is a high profit factor strategy based on models designed by Muhd Amrullah.
Choosing your trading pair that you are planning to backtest
Check that you have been given access to Amrullah Deep Liquidity (ADL). Select SPX500USD with the default 4H time frame. Once done, open Indicators > Invite-Only Scripts > Amrullah Deep Liquidity %.
Choosing your initial capital that you want to begin backtesting
Go to Settings > Properties > Initial Capital and type in the amount of capital you're starting with. For the SPX500USD trading pair, the initial capital is denominated in USD.
Adjusting your equity at risk until the trades match your risk profile and comfort level
Go to Inputs > Equity Risk and adjust the value you are comfortable with. To analyse performance, you also want to choose the Start Year, Start Month and Start Date. Select lower equity risk for trades that you intend to take without the use of leverage. You can select an equity risk from 0.001 to 0.05 or all the way to 1.
Finding the time frame with the highest profit factor
Profit factor is defined as the gross profit a strategy makes across a defined period of time divided by its gross loss. You may choose to scroll through other time frames to find better models. You can select a different time frame from 1 min to 1H or all the way to 1M. Once you find the model you desire, you are encouraged to check that the model has a backtested profit factor of >3.5. You can then begin looking through the Performance Summary to find other detailed statistics.
Analysing the equity curve from the Amrullah Deep Liquidity (ADL) strategy
A green equity curve indicates that the trades are accumulating profits. A red equity curve indicates that the trades are accumulating losses. A healthy equity curve is one that is green and grows steadily to the right and upward direction.
Analysing the display arrows on the chart
Amrullah Deep Liquidity (ADL) tells you when to take a trade and how much to put in a trade. ADL can do this as the model identifies inventory risk in traders and market makers in the chosen market. On your Tradingview chart, ADL will display an arrow that tells you when to enter a trade. You can also see the amount to trade beside the arrow.
Opting for a trial
Yes you may opt for a trial which has limited availability.
The author's background and experience
My career in software and deep learning development spans across more than 5 years. At work, I lead a team to solve core computer vision tasks for large companies. I continually read all kinds of computer science books and papers, and follows progress on tools used in financial markets.
股票
[astropark] Trend Is Your Friend V3 [strategy]Dear Followers,
today another awesome Swing and Scalping Trading Strategy indicator, runnable on a bot , which works great on High Timeframes (1D is suggested) but also on lower ones (just write me in order to help you find correct settings) and even better on 1m Renko chart!
If you are a scalper, you will love suggested entries for fast profit. You can run it on 1h timeframe (below is not suggested, there is "no-trend" below 1h!) if you are used to scalp trading and close each trade whenever you feel happy (a proper trailing stop strategy is suggested anyway).
This is not an evolution of "Trend Is Your Friend V1" or V2 , but a twin sister or the "Trend Is Your Friend V1" indicator you can see here below
and twin sister or the "Trend Is Your Friend V2" indicator you can see here below
This strategy differs for the engine used as basis, but has the same usage settings:
enable/disable signals on chart
enable/disable showing trend cloud
enable/disable bar coloring based on trend
enable/disable background coloring based on trend
edit trend period length (direct message me in order to help you fine best settings)
edit a smart variant option to enhance the trend cloud on your chart
enable/disable an option to smart enter trade
This strategy only trigger 1 buy or 1 sell. In order to get notified when a signal is triggered, you need to use the "alarms" version of this indicator.
Strategy results are calculated on the timeframe from December 2012 to now, so on 8 years, using 10000$ as initial capital and working at 1x leverage (so no leverage at all! If you like to use leverage, be sure to use a safe option, like 3x or 5x at most in order to have liquidation price very far).
This is not the "Holy Grail", so use a proper risk management strategy.
This script will let you backtest how the indicator will perform on any chart you may test. Of course results will be very different depending on the chart and timeframe you will open. I tested a lot of charts and always you can find a combination that keep this strategy in profit on swing trading style (and this means that if you can have a daily look at the chart you can always manage to maximize your profit on each trade!)
The alarms version of this indicator, which will let you set all notifications you may need in order to be alerted on each triggered signals, can be found by searching for the astropark's "trend is your friend v3" and then choosing the indicator with "alarms" suffix in the name.
This is a premium indicator , so send me a private message in order to get access to this script.
[astropark] Trend Is Your Friend V2 [strategy]Dear Followers,
today another awesome Swing and Scalping Trading Strategy indicator, runnable on a bot , which works great on High Timeframes (1D is suggested) but also on lower ones (just write me in order to help you find correct settings) and even better on 1m Renko chart!
If you are a scalper, you will love suggested entries for fast profit. You can run it on 1h timeframe (below is not suggested, there is "no-trend" below 1h!) if you are used to scalp trading and close each trade whenever you feel happy (a proper trailing stop strategy is suggested anyway).
This is a twin sister or the "Trend Is Your Friend V1" indicator you can see here below
This strategy differs for the engine used as basis, but has the same usage settings:
enable/disable signals on chart
enable/disable showing trend cloud
enable/disable bar coloring based on trend
enable/disable background coloring based on trend
edit trend period length (you have to increase it if you go on lower timeframes or you go on FOREX/Stocks market, direct message me in order to help you fine best settings)
This strategy only trigger 1 buy or 1 sell. In order to get notified when a signal is triggered, you need to use the "alarms" version of this indicator.
Strategy results are calculated on the timeframe from January 2015 to now, so on 5 years, using 10000$ as initial capital and working at 1x leverage (so no leverage at all! If you like to use leverage, be sure to use a safe option, like 3x or 5x at most in order to have liquidation price very far).
This is not the "Holy Grail", so use a proper risk management strategy.
This script will let you backtest how the indicator will perform on any chart you may test. Of course results will be very different depending on the chart and timeframe you will open. I tested a lot of charts and always you can find a combination that keep this strategy in profit on swing trading style (and this means that if you can have a daily look at the chart you can always manage to maximize your profit on each trade!)
The alarms version of this indicator, which will let you set all notifications you may need in order to be alerted on each triggered signals, can be found by searching for the astropark's "trend is your friend v2" and then choosing the indicator with "alarms" suffix in the name.
This is a premium indicator , so send me a private message in order to get access to this script.
[astropark] Trend Is Your Friend V1 [strategy]Dear Followers,
today another awesome Swing and Scalping Trading Strategy indicator, runnable on a bot , which works great on High Timeframes (1D is suggested) but also on lower ones (just write me in order to help you find correct settings) and even better on 1m Renko chart!
If you are a scalper, you will love suggested entries for fast profit. You can run it on 1h timeframe (below is not suggested, there is "no-trend" below 1h!) if you are used to scalp trading and close each trade whenever you feel happy (a proper trailing stop strategy is suggested anyway).
This strategy let's you edit following settings:
enable/disable signals on chart
enable/disable showing trend cloud
enable/disable bar coloring based on trend
enable/disable background coloring based on trend
enable a special option to enhance trend cloud on FOREX/Stocks charts (optional)
edit trend period length (you have to increase it if you go on lower timeframes, like 1h)
This strategy only trigger 1 buy or 1 sell. In order to get notified when a signal is triggered, you need to use the "alarms" version of this indicator.
Strategy results are calculated on the timeframe from August 2017 to now, so on almost 2 years and half, using 10000$ as initial capital and working at 1x leverage (so no leverage at all! If you like to use leverage, be sure to use a safe option, like 3x or 5x at most in order to have liquidation price very far).
This is not the "Holy Grail", so use a proper risk management strategy.
This script will let you backtest how the indicator will perform on any chart you may test. Of course results will be very different depending on the chart and timeframe you will open. I tested a lot of charts and always you can find a combination that keep this strategy in profit on swing trading style (and this means that if you can have a daily look at the chart you can always manage to maximize your profit on each trade!)
The alarms version of this indicator, which will let you set all notifications you may need in order to be alerted on each triggered signals, can be found by searching for the astropark's "trend is your friend" and then choosing the indicator with "alarms" suffix in the name.
This is a premium indicator , so send me a private message in order to get access to this script.
[LunaOwl] 樂活投資:價格通道 (LOHAS Investor - PriceChannel)- Introduction -
Price channel is an ancient strategy, which is very convenient for office workers. since most people no time do it.
so they are suitable for simple strategies. There are several conditions to become a "LOHAS Investor" -
價格通道是很老的投資策略,對於肯做功課的上班族來說非常方便,而且多數人沒時間操作。
如果要當「樂活投資人」有幾點條件:
1) set moderate ROI expectations.
- 設定溫和的投資報酬率期望。
2) use appropriate stock selection methods to build portfolios and reduce single error rates.
- 使用適當的選股方式建立投資組合,減少單一股票失誤率。
3) simple trade strategy, executed regularly.
- 使用簡單的策略規律執行。
4) wealth accumulates over time and learns every day.
- 財富依靠時間積累,每天勤學新知。
SAMURAI SWORDSamurai Sword is an add on tool for Ninja Scalper and the next evolution of the Trend Trade Indicator.
It auto plots the fib retracement to speed up target acquisition support and resistance areas based on the formula to increase the success rate of trade entry and exits.
None of this is to be taken as investment advice but rather Edutainment and infotainment
#TradeSocially
NINJA SCALPERNinja Scalper is the next evolution of the Trade Trend Indicator.
I have been trading for over 23 years now and these indicators are based on my trading style risk verse reward. The change in this is to make it more responsive and to integrate with Sword.
The background of this indicator is:
The original Trade Trend Indicator (indicator) has been the brain child of 23 years of trading experience rolled into a simple to understand all market setup alert system based solely on 5 high probability trade set ups with a 6th high risk. The hope is to provide something that is can assist traders in building confidence in their trades with a little assistance from the indicator.
This like any and all indicators is not a be all and end to trading, yes while back tested the indicator has produced fantastic profitable results; past performance is not a guarantee of future but which with human intervention can increase the return result exponentially.
You need to be able to chart simple candle sticks and you need to have an understanding of support and resistance areas to make sense of what you are doing in trading otherwise even this indicator won't help you.
While this may alert buy or sell / long or short entrance these are to be taken as educational points of reference and if you wish to trade you are understanding that you enter and exit at your own risk. Not many indicators will alert you to the possibility of a rogue wave spike / dump or both, this will but everything is perspective of the time frame you are on.
The indicator is designed for the 4hour time frame with trade entry on the 15min and managed on the 30min time frame. Alot can happen within these time frame but as we know not every trader can sit in front of a screen for hours at a time and this let's one trade for swings. Once you have your entry you place your exits and you set your stops. If you wait for the alert to exit you are in a draw down this should never reach that point pay yourself for being right.
The some set ups are simple:
1. Trend change from bearish to bullish buys are dip interim support entries.
2. Trend change from bullish to bearish sells are top interim resistance exits.
3. Blue buy is an entry position for a trade.
4. Blue long is an add position for a trade.
5. Red short is just that a short trade idea. (this is advanced and requires a manual cover target),
6. Green buy is a break out over the next candle to print above (highest risk)
All trades are based on a 5% to 10% of capital entry with no more than 40% ever in 1 trade goal is many consistent trade wins while limiting the losses and size.
Certain set ups such as longs over the Moving Averages but below the cloud can lead to strong rally returns as well as short in a bearish trend just above the Moving Averages can give prolonged selling pressure.
Pay attention to the golden dump line as it rises the closer to the candle it gets the higher the risk of the trade lacking continuation.
None of this is to be taken as investment advice but rather Edutainment and infotainment
#TradeSocially
BTC BRAWL NINJA TRADERThe NINJA TRADER was devloped for trading competition higher leverage scalp trading. It is a modified from my Trade Trend Indicator (indicator) has been the brain child of 23 years of trading experience rolled into a simple to understand all market setup alert system based solely on 5 high probability trade set ups with a 6th high risk. The hope is to provide something that is can assist traders in building confidence in their trades with a little assistance from the indicator.
This like any and all indicators is not a be all and end to trading, yes while back tested the indicator has produced fantastic profitable results; past performance is not a guarantee of future but which with human intervention can increase the return result exponentially.
You need to be able to chart simple candle sticks and you need to have an understanding of support and resistance areas to make sense of what you are doing in trading otherwise even this indicator won't help you.
While this may alert buy or sell / long or short entrance these are to be taken as educational points of reference and if you wish to trade you are understanding that you enter and exit at your own risk. Not many indicators will alert you to the possibility of a rogue wave spike / dump or both, this will but everything is perspective of the time frame you are on.
The indicator is designed for the 4hour time frame with trade entry on the 15min and managed on the 30min time frame. Alot can happen within these time frame but as we know not every trader can sit in front of a screen for hours at a time and this let's one trade for swings. Once you have your entry you place your exits and you set your stops. If you wait for the alert to exit you are in a draw down this should never reach that point pay yourself for being right.
The set ups are simple:
1. Trend change from bearish to bullish buys are dip interim support entries.
2. Trend change from bullish to bearish sells are top interim resistance exits.
3. Blue buy is an entry position for a trade.
4. Blue long is an add position for a trade.
5. Red short is just that a short trade idea. (this is advanced and requires a manual cover target),
6. Green buy is a break out over the next candle to print above (highest risk)
All trades are based on a 5% to 10% of capital entry with no more than 40% ever in 1 trade goal is many consistent trade wins while limiting the losses and size.
Certain set ups such as longs over the Moving Averages but below the cloud can lead to strong rally returns as well as short in a bearish trend just above the Moving Averages can give prolonged selling pressure.
Pay attention to the golden dump line as it rises the closer to the candle it gets the higher the risk of the trade lacking continuation.
Made the golden dump line easier to bringing it forward.
Changed the trade trend reversal to stand out more as a marker of a trade even when alerts stacked
Added a calculation for the alert to recalculate based on the time frame chosen
Added a check balance verse the break out buy as to not false alert during the BTC BRAWL CHALLENGE in high risk trade setups
Added notification of bullvsbear action to avoid being caught in the BTC BRAWL CHALLENGE
Added a take profit reminder based on time frame volume
None of this is to be taken as investment advice but rather Edutainment and infotainment
//#TradeSocially
Full Range Trading Strategy with DCA - Crypto, Forex, Stocks
Introduction
This is a Pine 4 range trading strategy. It has a twin study with several alerts. The design intent is to produce a commercial grade signal generator that can be adapted to any symbol and interval. Ideally, the script is reliable enough to be the basis of an automated trading system web-hooked to a server with API access to crypto, forex and stock brokerages. The strategy can be run in three different modes: long, short and bidirectional.
As a range trading strategy, the behavior of the script is to buy on weakness and sell on strength. As such trade orders are placed in a counter direction to price pressure. What you will see on the chart is a short position on peaks and a long position on valleys. Just to be clear, the range as well as trends are merely illusions as the chart only receives prices. However, this script attempts to calculate pivot points from the price stream. Rising pivots are shorts and falling pivots are longs. I refer to pivots as a vertex in this script which adds structural components to the chart formation. When trading in “Ping Pong” mode long and short positions are intermingled continuously as long as there exists a detectable vertex. Unfortunately, this can work against your backtest profitability on long duration trends where prices continue in a single direction without pullback. I have designed various features in the script to compensate for this event. A well configured script should perform in a range bound market and minimize losses in a trend. I also have a trend following version of this script for those not interested in trading the range. Please be aware these are two types of traders. You should know who you are.
This script employs a DCA feature which enables users to experiment with loss recovery techniques. This is an advanced feature which can increase the order size on new trades in response to stopped out or winning streak trades. The script keeps track of debt incurred from losing trades. When the debt is recovered the order size returns to the base amount specified in the TV properties tab. The inputs for this feature include a limiter to prevent your account from depleting capital during runaway markets. This implementation of DCA does not use pyramid levels. Only the order size on subsequent new trades are affected. Pyramids on the other hand increase the size of open positions. If you are interested in seeing pyramids in action please see the trend version of this script which features both DCA and pyramids. While DCA is a popular feature in crypto trading, it can make you a “bag” holder if your not careful. In other markets, especially margin trading, you’ll need a well funded account and much trading experience to manage this feature safely.
Consecutive loss limit can be set to report a breach of the threshold value. Every stop hit beyond this limit will be reported on a version 4 label above the bar where the stop is hit. Use the location of the labels along with the summary report tally to improve the adaptability of system. Don’t simply fit the chart. A good trading system should adapt to ever changing market conditions. On the study version the consecutive loss limit can be used to halt live trading on the broker side (managed manually).
Design
This script uses twelve indicators on a single time frame. The original trading algorithms are a port from a much larger program on another trading platform. I’ve converted some of the statistical functions to use standard indicators available on TradingView. The setups make heavy use of the Hull Moving Average in conjunction with EMAs that form the Bill Williams Alligator as described in his book “New Trading Dimensions” Chapter 3. Lag between the Hull and the EMAs form the basis of the entry and exit points. The vertices are calculated using one of five featured indicators. Each indicator is actually a composite of calculations which produce a distinct mean. This mathematical distinction enables the script to be useful on various instruments which belong to entirely different markets. In other words, at least one of these indicators should be able generate pivots on an arbitrarily selected instrument. Try each one to find the best fit.
The entire script is around 1800 lines of Pine code which is the maximum incidental size given the TradingView limits: local scopes, run-time duration and compile time. I’ve been working on this script for nearly two years and have tested it on various instruments stocks, forex and crypto. It performs well on higher liquidity markets that have at least a year of historical data. Although the script can be implemented on any interval, it has been optimized for small time frames down to 5 minutes. The 10 minute BTC/USD produces around 500 trades in 2 ½ months. The 1 hour BTC/USD produces around 1300 trades in 1 ½ years. Originally, this script contained both range trading and trend following logic but had to be broken into separate scripts due to the aforementioned limitations.
Inputs to the script use cone centric measurements in effort to avoid exposing adjustments to the various internal indicators. The goal was to keep the inputs relevant to the actual trade entry and exit locations as opposed to a series of MA input values and the like. As a result the strategy exposes over 50 inputs grouped into long or short sections. Inputs are available for the usual minimum profit and stop-loss as well as safeguards, trade frequency, DCA, modes, presets, reports and lots of calibrations. The inputs are numerous, I’m aware. Unfortunately, at this time, TradingView does not offer any other method to get data in the script. The usual initialization files such as cnf, cfg, ini, json and xml files are currently unsupported.
Example configurations for various instruments along with a detailed PDF user manual is available.
Indicator Repainting And Anomalies
Indicator repainting is an industry wide problem which mainly occurs when you mix backtest data with real-time data. It doesn't matter which platform you use some form of this condition will manifest itself on your chart over time. The critical aspect being whether live trades on your broker’s account continue to match your TradingView study.
Tackling this repainting issue has been a major project goal of this script. Based on my experience with Pine, most of the problems stem from TradingView’s implementation of multiple interval access. Whereas most platform provide a separate bar series for each interval requested, the Pine language interleaves higher time frames with the primary chart interval. The problem is exacerbated by allowing a look-ahead parameter to the Security function. The goal of my repaint prevention is simply to ensure that my signal trading bias remains consistent between the strategy, study and broker. That being said this is what I’ve done address this issue in this script:
1. This script uses only 1 time frame. The chart interval.
2. Every entry and exit condition is evaluated on closed bars only.
3. No security functions are called to avoid a look-ahead possibility.
4. Every contributing factor specified in the TradingView wiki regarding this issue has been addressed.
5. I’ve run a 10 minute chart live for a week and compared it to the same chart periodically reloaded. The two charts were highly correlated with no instances of completely opposite real-time signals.
The study does indeed bring up the TV warning dialog. The only reason for this is because the script uses an EMA indicator which according to TradingView is due to “peculiarities of the algorithm”.
One issue that comes up when comparing the strategy with the study is that the strategy trades show on the chart one bar later than the study. This problem is due to the fact that “strategy.entry()” and “strategy_exit()” do not execute on the same bar called. The study, on the other hand, has no such limitation since there are no position routines.
Please be aware that the data source matters. Cryptocurrency has no central tick repository so each exchange supplies TradingView its feed. Even though it is the same symbol the quality of the data and subsequently the bars that are supplied to the chart varies with the exchange. This script will absolutely produce different results on different data feeds of the same symbol. Be sure to backtest this script on the same data you intend to receive alerts for. Any example settings I share with you will always have the exchange name used to generate the test results.
Usage
The following steps provide a very brief set of instructions that will get you started but will most certainly not produce the best backtest. A trading system that you are willing to risk your hard earned capital will require a well crafted configuration that involves time, expertise and clearly defined goals. As previously mentioned, I have several example configs that I use for my own trading that I can share with you along with a PDF which describes each input in detail. To get hands on experience in setting up your own symbol from scratch please follow the steps below.
The input dialog box contains over 50 inputs separated into five sections. Each section is identified as such with a makeshift separator input. There are three main areas that must to be configured: long side, short side and settings that apply to both. The rest of the inputs apply to DCA, reporting and calibrations. The following steps address these three main areas only. You will need to get your backtest in the black before moving on to the more advanced features.
Step 1. Setup the Base currency and order size in the properties tab.
Step 2. Select the calculation presets in the Instrument Type field.
Step 3. Select “No Trade” in the Trading Mode field.
Step 4. Select the Histogram indicator from Section 2. You will be experimenting with different ones so it doesn’t matter which one you try first.
Step 5. Turn on Show Markers in Section 2.
Step 6. Go to the chart and checkout where the markers show up. Blue is up and red is down. Long trades show up along the red markers and short trades on the blue.
Step 7. Make adjustments to “Base To Vertex” and “Vertex To Base” net change and roc in Section 3. Use these fields to move the markers to where you want trades to be.
Step 8. Try a different indicator from Section 2 and repeat Step 7 until you find the best match for this instrument on this interval. This step is complete when the Vertex settings and indicator combination produce the most favorable results.
Step 9. Go to Section 3 and enable “Apply Red Base To Base Margin”.
Step 10. Go to Section 4 and enable “Apply Blue Base To Base Margin”.
Step 11. Go to Section 2 and adjust “Minimum Base To Base Blue” and “Minimum Base To Base Red”. Observe the chart and note where the markers move relative to each other. Markers further apart will produce less trades but will reduce cutoffs in “Ping Pong” mode.
Step 12. Return to Section 3 and 4 and turn off “Base To Base Margin” which was enabled in steps 9 and 10.
Step 13. Turn off Show Markers in Section 2.
Step 14. Put in your Minimum Profit and Stop Loss in the first section. This is in pips or currency basis points (chart right side scale). Percentage is not currently supported. This is a fixed value minimum profit and stop loss. Also note that the profit is taken as a conditional exit on a market order not a fixed limit. The actual profit taken will almost always be greater than the amount specified. The stop loss, on the other hand, is indeed a hard number which is executed by the TradingView broker simulator when the threshold is breached. On the study version, the stop is executed at the close of the bar.
Step 15. Return to step 3 and select a Trading Mode (Long, Short, BiDir, Ping Pong). If you are planning to trade bidirectionally its best to configure long first then short. Combine them with “BiDir” or “Ping Pong” after setting up both sides of the trade individually. The difference between “BiDir” and “Ping Pong” is that “Ping Pong” uses position reversal and can cut off opposing trades less than the specified minimum profit. As a result “Ping Pong” mode produces the greatest number of trades.
Step 16. Take a look at the chart. Trades should be showing along the markers plotted earlier.
Step 17. Make adjustments to the Vertex fields in Section 2 until the TradingView performance report is showing a profit. This includes the “Minimum Base To Base” fields. If a profit cannot be achieved move on to Step 18.
Step 18. Improve the backtest profitability by adjusting the “Long Entry Net Change” and “Long Entry ROC” in Section 3.
Step 19. Improve the backtest profitability by adjusting the “Short Entry Net Change” and “Short Entry ROC” in Section 4.
Step 20. Improve the backtest profitability by adjusting the “Sparse Long Delta” in Section 3.
Step 21. Improve the backtest profitability by adjusting the “Chase Long Delta” in Section 3.
Step 22. Improve the backtest profitability by adjusting the “Long Adherence Delta” in Section 3. This field requires the “Adhere to Rising Trend” checkbox to be enabled.
Step 23. Try each checkbox in Section 3 and see if it improves the backtest profitability. The “Caution Lackluster Longs” checkbox only works when “Long Caution Mode” is enabled.
Step 24. Improve the backtest profitability by adjusting the “Sparse Short Delta” in Section 4.
Step 25. Improve the backtest profitability by adjusting the “Chase Short Delta” in Section 4.
Step 26. Improve the backtest profitability by adjusting the “Short Adherence Delta” in Section 4. This field requires the “Adhere to Falling Trend” checkbox to be enabled.
Step 27. Try each checkbox in Section 4 and see if it improves the backtest profitability. The “Caution Lackluster Shorts” checkbox only works when “Short Caution Mode” is enabled.
Step 28. Enable the reporting conditions in Section 5. Look for long runs of consecutive losses or high debt sequences. These are indications that your trading system cannot withstand sudden changes in market sentiment.
Step 29. Examine the chart and see that trades are being placed in accordance with your desired trading goals. This is an important step. If your desired model requires multiple trades per day then you should be seeing hundreds of trades on the chart. Alternatively, you may be looking to trade fewer steep peaks and deep valleys in which case you should see trades at major turning points. Don’t simply settle for what the backtest serves you. Work your configuration until the system aligns with your desired model. Try changing indicators and even intervals if you cannot reach your simulation goals. Generally speaking, the histogram and Candle indicators produce the most trades. The Macro indicator captures the tallest peaks and valleys.
Step 30. Apply the backtest settings to the study version and perform forward testing.
This script is open for beta testing. After successful beta test it will become a commercial application available by subscription only. I’ve invested quite a lot of time and effort into making this the best possible signal generator for all of the instruments I intend to trade. I certainly welcome any suggestions for improvements. Thank you all in advance.
Total Trend Follow Strategy with Pyramid and DCA
Introduction
This is a Pine 4 trend following strategy. It has a twin study with several alerts. The design intent is to produce a commercial grade signal generator that can be adapted to any symbol and interval. Ideally, the script is reliable enough to be the basis of an automated trading system web-hooked to a server with API access to crypto, forex and stock brokerages. The strategy can be run in three different modes: long, short and bidirectional.
As a trend following strategy, the behavior of the script is to buy on strength and sell on weakness. As such the trade orders maintain its directional bias according to price pressure. What you will see on the chart is long positions on the left side of the mountain and short on the right. Long and short positions are not intermingled as long as there exists a detectable trend. This is extremely beneficial feature in long running bull or bear markets. The script uses multiple setups to avoid the situation where you got in on the trend, took a small profit but couldn’t get back in because the logic is waiting for a pullback or some other intricate condition.
Deep draw-downs are a characteristic of trend following systems and this system is no different. However, this script makes use of the TradingView pyramid feature accessible from the properties tab. Additional trades can be placed in the draw-down space increasing the position size and thereby increasing the profit or loss when the position finally closes. Each individual add on trade increases its order size as a multiple of its pyramid level. This makes it easy to comply with NFA FIFO Rule 2-43(b) if the trades are executed here in America. The inputs dialog box contains various settings to adjust where the add on trades show up, under what circumstances and how frequent if at all. Please be advised that pyramiding is an advanced feature and can wipe out your account capital if your not careful. During the backtest use modest setting with realistic capital until you discover what you think you can handle.
In addition to pyramiding this script employs DCA which enables users to experiment with loss recovery techniques. This is another advanced feature which can increase the order size on new trades in response to stopped out or winning streak trades. The script keeps track of debt incurred from losing trades. When the debt is recovered the order size returns to the base amount specified in the TV properties tab. The inputs for this feature include a limiter to prevent your account from depleting capital during runaway markets. The main difference between DCA and pyramids is that this implementation of DCA applies to new trades while pyramids affect open positions. DCA is a popular feature in crypto trading but can leave you with large “bags” if your not careful. In other markets, especially margin trading, you’ll need a well funded account and much experience.
Consecutive loss limit can be set to report a breach of the threshold value. Every stop hit beyond this limit will be reported on a version 4 label above the bar where the stop is hit. Use the location of the labels along with the summary report tally to improve the adaptability of system. Don’t simply fit the chart. A good trading system should adapt to ever changing market conditions. On the study version the consecutive loss limit can be used to halt live trading on the broker side (Managed manually).
Design
This script uses nine indicators on two time frames. The chart (primary) interval and one higher time frame which is based on the primary. The higher time frame identifies the trend for which the primary will trade. I’ve tried to keep the higher time frame around five times greater than the primary. The original trading algorithms are a port from a much larger program on another trading platform. I’ve converted some of the statistical functions to use standard indicators available on TradingView. The setups make heavy use of the Hull Moving Average in conjunction with EMAs that form the Bill Williams Alligator as described in his book “New Trading Dimensions” Chapter 3. Lag between the Hull and the EMAs form the basis of the entry and exit points. The alligator itself is used to identify the trend main body.
The entire script is around 1700 lines of Pine code which is the maximum incidental size given the TradingView limits: local scopes, run-time duration and compile time. I’ve been working on this script for over a year and have tested it on various instruments stocks, forex and crypto. It performs well on higher liquidity markets that have at least a year of historical data. Though it can be configured to work on any interval between 5 minutes and 1 day, trend trading is generally a longer term paradigm. For day trading the 10 to 15 minute interval will allow you to catch momentum breakouts. For intraweek trades 30 minutes to 1 hour should give you a trade every other a day. Four hours and above are for seasoned deep pocket traders. Originally, this script contained both range trading and trend following logic but had to be broken into separate scripts due to the aforementioned limitations.
Inputs to the script use cone centric measurements in effort to avoid exposing adjustments to the various internal indicators. The goal was to keep the inputs relevant to the actual trade entry and exit locations as opposed to a series of MA input values and the like. As a result the strategy exposes over 50 inputs grouped into long or short sections. Inputs are available for the usual minimum profit and stop-loss as well as safeguards, trade frequency, DCA, modes, presets, reports and lots of calibrations. The inputs are numerous, I’m aware. Unfortunately, at this time, TradingView does not offer any other method to get data in the script. The usual initialization files such as cnf, cfg, ini, json and xml files are currently unsupported.
Example configurations for various instruments along with a detailed PDF user manual is available.
Indicator Repainting And Anomalies
Indicator repainting is an industry wide problem which mainly occurs when you mix backtest data with real-time data. It doesn't matter which platform you use some form of this condition will manifest itself on your chart over time. The critical aspect being whether live trades on your broker’s account continue to match your TradingView study. Since this trading system is featured as two separate scripts, indicator repainting is addressed in the study version. The strategy (this script) is intended to be used on historical data to determine the appropriate trading inputs to apply in the study. As such, the higher time frame of this strategy will indeed repaint. Please do not attempt to trade from the strategy. Please see the study version for more information.
One issue that comes up when comparing the strategy with the study is that the strategy trades show on the chart one bar later than the study. This problem is due to the fact that “strategy.entry()” and “strategy_exit()” do not execute on the same bar called. The study, on the other hand, has no such limitation since there are no position routines. However, alerts that are subsequently fired off when triggered in the study are dispatched from the TradingView servers one bar later from the study plot. Therefore the alert you actually receive on your cell phone matches the strategy plot but is one bar later than the study plot. A lot can happen in four hours if you are trading off a 240 bar.
Please be aware that the data source matters. Cryptocurrency has no central tick repository so each exchange supplies TradingView its feed. Even though it is the same symbol the quality of the data and subsequently the bars that are supplied to the chart varies with the exchange. This script will absolutely produce different results on different data feeds of the same symbol. Be sure to backtest this script on the same data you intend to receive alerts for. Any example settings I share with you will always have the exchange name used to generate the test results.
Usage
The following steps provide a very brief set of instructions that will get you started but will most certainly not produce the best backtest. A trading system that you are willing to risk your hard earned capital will require a well crafted configuration that involves time, expertise and clearly defined goals. As previously mentioned, I have several example configs that I use for my own trading that I can share with you along with a PDF which describes each input in detail. To get hands on experience in setting up your own symbol from scratch please follow the steps below.
The input dialog box contains over 50 inputs separated into seven sections. Each section is identified as such with a makeshift separator input. There are three main areas that must to be configured: long side, short side and settings that apply to both. The rest of the inputs apply to pyramids, DCA, reporting and calibrations. The following steps address these three main areas only. You will need to get your backtest in the black before moving on to the more advanced features
Step 1. Setup the Base currency and order size in the properties tab.
Step 2. Select the calculation presets in the Instrument Type field.
Step 3. Select “No Trade” in the Trading Mode field.
Step 4. Select the Histogram indicator from section 3. You will be experimenting with different ones so it doesn’t matter which one you try first.
Step 5. Turn on Show Markers in Section 3.
Step 6. Go to the chart and checkout where the markers show up. Blue is up and red is down. Long trades show up along the blue markers and short trades on the red.
Step 7. Make adjustments to Base To Vertex and Vertex To Base net change and roc in section 3. Use these fields to move the markers to where you want trades to be. Blue is long and red is short.
Step 8. Try a different indicator from section 3 and repeat Step 7 until you find the best match for this instrument on this interval. This step is complete when the Vertex settings and indicator combination produce the most favorable results.
Step 9. Turn off Show Markers in Section 3.
Step 10. Enable the Symmetrical and Deviation calculation models at the top of section 5 and 6 (Symmetrical, Deviation).
Step 11. Put in your Minimum Profit and Stop Loss in the first section. This is in pips or currency basis points (chart right side scale)
Step 12. Return to step 3 and select a Trading Mode (Long, Short, BiDir, Flip Flop). If you are planning to trade bidirectionally its best to configure long first then short. Combine them with BiDir or Flip Flop after setting up both sides of the trade individually.
Step 13. Trades should be showing on the chart.
Step 14. Make adjustments to the Vertex fields in section 3 until the TradingView performance report is showing a profit.
Step 15. Change indicators and repeat step 14. Pick the best indicator.
Step 16. Use the check boxes in sections 5 and 6 to improve the performance of each side.
Step 17. Try adding the Correlation calculation model to either side. This model can sometimes produce a negative result but can be improved by enabling “Adhere To Markers” or “Narrow Correlation Scope” in the sections 5 and 6.
Step 18. Enable the reporting conditions in section 7. Look for long runs of consecutive losses or high debt sequences. These are indications that your trading system cannot withstand sudden changes in market sentiment.
Step 19. Examine the chart and see that trades are being placed in accordance with your desired trading model.
Step 20. Apply the backtest settings to the study version and perform forward testing.
This script is open for beta testing. After successful beta test it will become a commercial application available by subscription only. I’ve invested quite a lot of time and effort into making this the best possible signal generator for all of the instruments I intend to trade. I certainly welcome any suggestions for improvements. Thank you all in advance.
CS Buy/Sell Strategy (read the description)Get Buy/Sell signals and check their profitability in the Strategy Tester.
This script has been tested for the crypto space (Bitcoin, Ethereum, etc.) but works for other assets, as well.
I recommend to apply strategy tests on different time-frames (usually daily and 4hr work best) and go with the most profitable ones.
In the settings you have the ability to test the strategy using from - to dates to narrow down best profitable trade periods.
In order to add this strategy to your chart, click on "Add to favorite scripts" and in then, in your chart, go to Indicator and add it from your favorites.
If you have questions, please send me a message.
There is also a Long/Short focused script available with the ability to set alerts (requires an invite). If you want to add it. Just send me a message to get an invite:
Directional Momentum Flux StrategyDirectional Momentum Flux (DMF) is a compound indicator designed to surface signals of projected change in directional momentum. The primary goal is to identify possible momentum inflection points and signal them before they happen, which is reached by applying a set of well-known high-level indicators (e.g. DEMA, RSIs, CCIs and VWAP), lower-level indicators (e.g. BOP, PPO and RMOMO), and some special sauce brewed in-house by yours truly.
This strategy is invite-only. Invitations are offered for a one-time fee of $250 payable in several cryptocurrencies (ETH, BTC, DASH, XMR or ZEC). Once you've got an invitation, you will automatically receive updates forever*.
DMF was designed to work across multiple asset classes. Extensive backtesting has been performed over multiple sample series (not just during the bull runs, for example) and against a randomized pool of assets. But don't take my word for it, I've included some time-based backtesting support tools to make it easy-peasy for you to validate the results yourself!
Under the hood, DMF is powered by numerous indicators, including:
✓ Double EMA & Composite SMA;
✓ Double RSI (fast & slow, variable);
✓ Composite StochRSI & VWAP (StochRSI+, two series);
✓ Composite Commodity Channel Index (CCI+, two series);
✓ Volume-Weighted Balance of Power (BOP itself was adapted from BOP_LB, kudos to LazyBear);
✓ Percentage Price Oscillator (PPO, split, two series);
✓ Range-adjusted Momentum Oscillator (RMOMO, my fancy MOM variant);
It crunches all that data and generates signals which are issued in two ways:
✓ Vertical Bands (or VBs) - Entry/Exit windows as vertical bands that remain "lit" (e.g. the background of a series of candles is semi-opaque white) while the top-level signals are showing sufficiently strong BUY signals. These windows are the primary entry/exit targets and can be relied upon with sufficient risk mitigation (e.g. a reasonable stop-loss or other scale-out exit mechanism). A VB followed immediately by an egg is as good as gold.
✓ Eggs - Entry/Exit validation signals that confirm the condition indicated by VBs. A lit VB without an egg in the same or next candle session is considered to be valid , but not safe (see above warning). Waiting for an egg can improve performance at the risk of missing the best possible entry point. Consider your risk tolerance and act accordingly.
Basic Instructions:
✓ Configure The Settings! The defaults are pretty good, but don't be scared to try variations. For example, by default SHORT positions are disabled. You might want to enable them if your risk tolerance allows them. (IMO there's gold on both ends of the rainbow. 🌈)
✓ Pay attention to the VBs. If you see a lit band being placed in an otherwise dark area, it's a projected inflection point. This is expected to be validated and confirmed in the same or immediately following period with an egg. You can enter a LONG position at this time.
✓ Pay attention to the eggs. If you see an egg, it's a confirmation that the VB changes in the same or immediately preceding candle period is valid. If you did not enter or exit your position at the point of the VB shift, now is the time to do so.
✓ Watch for the end of a VB period and be prepared to exit your position quickly as the next egg may be accompanied by a large directional momentum inflection.
Things to Note:
📉 - DMF is designed for day trading with aggressive position TTLs (15m was the upper bound during development and strategy testing). It appears to issue valid signals for other intervals, but it was not designed for >15m and YMMV. Don't go manually opening a LONG with no exit strategy and go to sleep... it probably won't work out to your benefit. You should be prepared to exit positions at any time. (Pro tip: automation is your friend!)
💸 - DMF indicator is not free from risk. As with all investment strategies, it is crucial to exercise caution and only trade with funds you are comfortable losing. DMF does not offer any form of guarantee or warranty, implied or otherwise. If you lose money, your house, your 401K... that's on you. (Pro tip: don't risk anything you're not ready to lose, because losses are part of the game and you WILL have them.)
🤔 - By using this indicator, you understand that any and all risks are the sole and complete responsibility of the end user (yeah, that's you). Don't use it if you're not 100% clear that you know exactly what you're doing. (Pro tip: always ask questions if you're feeling confused.)
⏱ - * Forever in this context means that, where room for improvement exists, I will improve it over time and you'll get all updates until I stop making them. (Pro tip: nobody lives forever.)
Stratos - Backtesting - Final Version - CryptoFoudid.comHi all !
Here a script based on moving averages with take profit and Stop loss configuration.
You can backtest on every timeframe and choose from when you want to backtest.
We work with our customers with automatic trading on bitmex platfform.
If you want to subscribe, you can dm me directly or on comments below
Direction Power StrategyThis strategy is based on the very well known ADX indicator, some risk management was applied, TP, SLand the most vital, trail stop.
If you have any questions let me know!
Ah, ps. It works better on longer timeframes, tried it also on shorter timeframes but becomes less profitable
PpSignal Wyckoff Wave Strategybased on wyckoff market analysis wave, we did the indicator and now the strategy.
for more information visit this link
stockcharts.com
Volatile Stocks - Simple Strategy w/Profit and StopThis strategy is based off of a script I wrote for another highly volatile asset, cryptocurrencies. It prints BUY and SELL signals based off of inputs that you can specify. I used this script as a time saver. If there is no signal on the chart, I'm less interested in analyzing it.
BUY SIGNALS
Bullish EMA Cross
Positive MACD Cross
Single-candle gains
SELL SIGNALS
Profit %
Stop Loss %
Naturally, I don't trade based off of the BUY and SELL signals alone, but it does help me identify the most important charts to look at.
Trend Detector [Strategy]This is the Strategy for the Trend Detector to show the performance (real time, not delayed) on Agrello. Profit from backtesting is huge at 1,500% for daily charts. This was for 2 years of trading data on daily timeframe. It beats buy and hold no contest.
New indicator for today called Trend Detector, follows the trend. It shows buy signals when coin is going up, sell signals when it is going down. Indicator showed plenty of Buy and Sell signals at the right times for buying and selling DLT . This indicator works on real time so you get the email alerts on time so you can action it.
Message me if you are interested in using the Trend Detector Indicator and Strategy.
PPSignal Scalper Double Cross Signal and EWO Smooth V4.0Recomendation
-for grafic 4h and D use
PPS W Signal
EWO W Signal
-For signal 30 min to 3H
PPS D and W signal
EWO D Signal
For signal < 30 Min
PPS 1H and $h
EWO 1H
SampleInvitePublish - V1
This strategy is designed for trading stocks and crypto currencies on the long side.
It uses three different timeframes to determine the most profitable entry prices (Day, 4 hour and chart interval).
The strategy employs ten different setups to accommodate both range trading and trend following markets.
The system contains sophisticated algorithms that scale to varies chart intervals.
Tailored to perform best between 4 hours to as low as 10 minutes.
The entire system consists of three tools: HullbusterScope, HullbusterBacktest and HullbusterSignal.
Hullbuster scope is used to obtain configuration information about the market instrument which will be applied to the HullbusterBacktest.
Commit an iterative approach to the backtest tool until the simulated results match your entry and exit expectations .
Apply the HullbusterSignal to the chart and use the same backtest configuration to setup actual trading alerts.
Lazy Trend System 2019latest, more powerful and applicable on FX, indices, stocks and cryptocurrencies!
PpSignal EWO LBR MTFEwo mtf strategy.
(tf) superior time frame configuration in input window
Configuration
Forex and crypto :
For time 1 min use tf 30 min
for time 5 min use tf 60 min
for 15, 30 and 60 min use tf 240
Stock:
For time 1 min use tf 30 min
for time 5 min use tf 60 min
for 15 and 30 min tf 240.
For 60 tf D.
For D tf W
For W tf M
UVTrader StratejiIf you see "AL", you can buy.
If you see "SAT", you can sell.
You can use all charts, but 4H and 1D charts are very well.