Rogue Profit Trend SystemThis system can be used for all assets. This script identifies trends and when to enter and exit. There is also built in risk management in the form of a take profit target or a reduction of risk to limit a losing trade. Inputs are variable and can be changed to better suit the asset and time frame you are trading. Since the risk management (take profit or limit loss) is calculated by 50% of your position, this system is designed to trade in multiples of two's. For example, you enter into a position with $100 at risk, when your risk management signal fires, it will reduce your position by 50% to either snag some profit or limit a loser leaving you with $50 in the position. Close the trade completely when the trend reverses for either a profit or loss.
Nothing about trading is easy. You will have losing trades. Managing your risk is the key to success which is why this system is so powerful. Markets are fluid and random so you will have to put some time and effort into adjusting the system inputs for each asset and the respective time frame you are trading and continue to adjust as time passes. This system will make you money if you manage it correctly and systematically.
Message me for two day trial access. Happy trading!
Акции
Aditya Signal-1.1 for Nifty and Bank NiftyThis is non-repainting indicator which can be used for Index, Stocks, Commodities and Bitcoin or any other securities depending upon the various parameter setting of the indicator. This particular strategy is for Nifty-50 Index which is traded on NSE(India).
The detailed description about the indicator is as follows:
Long Period: Period for calculating Primary Signal Line (Yellow).
Long Period Input Source: Input for calculating Primary Signal Line.
Short Period: Period for smoothing the Primary Signal Line.
Short Period MA: Method for smoothing the Primary Signal Line.
No. of ATR Bars: No. of ATR bars for calculating Primary Signal Line.
ATR Multiplier: ATR multiplier for ATR calculation.
Trade Trigger: Value above or below of Primary Signal Line for Long or Short signal. The dotted lines in Green and Red color represents the same.
Bar Crossover Input Source: Current bar input for additional signal confirmation above Primary Signal Line.
Bars Above Signal High: No. of bars closing above Secondary Signal Line (Blue)
Bars Below Signal Low: No. of bars closing above Secondary Signal Line (Purple)
No. of bars crossover method uses certain no. of bars for closing above High or Low of the crossover of closing price and the Primary Signal Line in combination with Trade Trigger. The idea behind this design is to avoid fake signal due sudden spike in price. Also, this ensures that price consolidates above High in case of Long signal confirmation and vice-versa. By increasing no. of such bars, we can anticipate, how much time it takes for short-term and long-term trend reversal.
Depending upon the time-frame, just by observing the High and Low of previous crossover of closing price and Primary Signal Line, we will have better understanding of undercurrent of market.
By using different combination of Trade Tigger value and no. of bars above and below, we can anticipate better trend confirmation.
The various combinations of price source of Long Period Input Source and Bar Crossover Input Source, the Short Period MA method shows promising results. Kindly PM me for these optimum settings for other financial instruments.
It always better to book partial profit after getting into the trade which increases the odds. The default trade quantity is 2. We book 1 quantity after our partial profit target is reached and let the remaining quantity be in the trade until the reversal of trend. By enabling or disabling the same we can determine the profit or loss from historical trade from when the trade quantity is 1. Just remember to change the default quantity to 1 in Order Size from properties when you disable the Take Partial Profit option.
Take Partial Profit: Whether to book partial or not as explained above.
Partial Profit Points: It always better to book partial profit after trend getting into the trade. The default trade quantity is 2. We book 1 quantity after our partial profit target is hit and let the remaining quantity in the trade until the reversal of trend.
Instrument Type: We can select the which instrument for analysis. By adjusting the Take Partial Profit value by selecting Other Option, you can analyze instrument of your choice other than mentioned in the list for Partial Profit depending upon stock tick value and lot quantity or you can PM me. I have adjusted value for Crude Oil and Silver for MCX(India) future contract values.
This is a premium indicator so send me a private message for 15 days free trial.
"Use the link below to obtain access to this indicator."
Disclaimer: This script/strategy is for educational purpose and individual use only. The author of this script/strategy will not accept any liability for loss or damage as a result of reliance on the information contained in the charts. Please be fully informed regarding the risks and costs associated with trading the financial markets.
Custom Screener with Alerts [QuantNomad]Some time ago I published an example of simple custom screener in PineScript:
The only thing this screener did is created a dynamic label with screener output.
Recently TradingView announced alerts from the strategy with the possibility to add custom messages to alerts.
So using it I was able to create a bit more advanced screener which sends results as alert messages. With tools like Alertatron, you can easily redirect them to Telegram if you want.
It works for 40 symbols (limitation of the number of security calls).
To create your own screener you need to change only screenerFunc. The logic of this function is very simple, it outputs value you want to display in screener and condition based on which your screener should filter your stocks.
To create alerts for this screener create an alert from strategy and use {{strategy.order.alert_message}} as alert message.
Do you know now how to make this screener better? Let me know.
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 good as in historical backtesting.
This post and the script don’t provide any financial advice.
Stockracle - CryptoLong 1HThis strategy is focused on Long Position and no Short Position in this strategy. The Purpose I make this just focused on long strategy to avoiding bias in trading and i try to make sustainable profit for long term by tracking an instrument value every time. This Indicator setup is very good with Bitcoin 1 Hour Timeframe, but no limited to Bitcoin itself, it can be used to Ethereum and others with 1 Hour Timeframe.
TS - Trading Algorithm Strategy - Crypto, Forex & StocksWhat does the TS - Algorithm do?
-- Plots trend following, high probability signals.
-- These signals do not repaint and can be used confidently to enter or exit a trade.
What markets can this indicator be used on?
-- Forex
-- Stocks
-- Commodities
-- Cryptocurrencies
What time-frames can this indicator be used on?
-- This indicator can be used on 1m, 3m , 5m, 10m, 15m, 30m, 1hr, 2hr, 3hr, 4hr, 6hr, 8hr, 12hr, Daily, Weekly, Bi-Weekly and Monthly time-frames.
-- This is a trend following algorithm, so low as there is good volume , volatility and price history of an asset, the model can perform.
Does this indicator repaint?
-- No
Premium Tradespot Script - Trial access and Information
-- Trial access offered
-- PM me directly to request trial access to the scripts or for more information.
Takashi Bows Autopilot | 2nd Gen | [Strategy]This is a strategy tester for Takashi Bows Autopilot indicator. Please check for more details and instructions at our website.
Takashi Bows Autopilot is the ultimate trading tool. Effortless, its signals put traders inside strong trends, locking big profits that cover all loss generated during sideways trends.
An upgrade version of Takashi Bows v1, this script is the result of some operations developed by us, it can easily adapt to different markets and time frames. Now ranging from level 1 to 20, traders can select the amount of signals to be displayed on the chart. Based on price movement, it signals entries after strong movement up or down.
Take Profit included. If a position is opened in one direction, it should be closed at take profit levels or when a position in the opposite direction is opened.
Inputs
Level
Integer input. Sets a level for signals generated up and down. The higher the level, more signals on chart, and vice-versa.
Take Profit %
Float input. Sets a percent of take profit for exiting previous open position.
Rule
Float input. Sets a ruler for more accuracy on less volatile markets. Standard value 1 for high volatile markets, higher values for low volatile markets.
Disclaimer:
Back-tests do not guarantee performance on the future. Even if a trading setup is profitable in historical data. it could be unprofitable in the future.
To get access to this and other scripts check links below.
GoldMode On (Triple compromise strategy) TF 60-240BINANCE:BTCUSDT
Greetings.
I am publishing this script in order to get feedback for further work on it.
The script combines a compromise between several classic strategies, and each of them uses modifications of classic indicators on specially selected averaging sliding indicators.
1. The script uses an ATR-based filter (it's off by default, as it's better on BTCUSD , but you can enable it in the settings if you want to use it on EURUSD , for example, or on other symbols).
2. A strategy based on crossing the moving.
3. A strategy based on determining the direction of movement of the modified slow and fast RSI .
4. A strategy based on the modified ADX +DI -DI .
The essence of the strategy in finding a compromise decision on the signals coming from each of these three strategies.
=====
Приветствую.
Данный скрипт публикую с целью получить обратную связь для дальнейшей работы над ним.
Скрипт сочетает в себе компромисс между несколькими классическими стратегиями, причём каждая из них использует модификации классических индикаторов на специальным образом подобранные усредняющие скользящие.
1. В скрипте используется фильтр на основе ATR (по умолчанию выключен, т.к. на BTCUSD так лучше, но можно включить в настройках, если хотите использовать его на EURUSD , например, или на других инструментах).
2. Стратегия основанная на пересечении скользящих.
3. Стратегия основанная на определении направления движения модифицированных медленной и быстрой RSI .
4. Стратегия основанная на модифицированном ADX +DI -DI .
Суть стратегии в поиске компромиссного принятия решения по сигналам поступающим от каждой из этих трёх стратегий.
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