Ebb N Flo Trend [Backtester]Ebb n Flo Trend is a trend indicator that makes use of higher time frame High - Low pivots to determine when a trend has changed
In order to reduce over trading, and to reduce fake outs, the script relies on a clever combination of Fib ratio expansions and an averaged candle close
By combining the above strategies, the trend indicator forms a trailing trend indicator
The script determines when the current market condition has crossed over or under the trailing trend, and based on the closing conditions will change the trend of the script signaling a change. If the trend indicator is below the current market and green, the trend is bullish. If the trend is above the market and red, the trend is bearish
The indicator does not repaint, as such, once a signal has been received, the condition has been met on a previous candle and is final
Trend indicator can be used on any markets, for both Long and Short swings, however is best suited for long term trading on certain crypto markets (based on backtesting results). Be on the lookout for pairs with decent volume on reputable exchanges. It is not a holy grail type script for all markets. The key is to find enough to diversify your trades.
As can be seen in the backtester results, the script performs exceptionally well when trading using the 1W higher time frame (selection in the script settings), in the 1D current time frame (selecting the chart time frame)
The script is ideal for the beginner trader that cannot spend hours everyday looking at charts.
The backtesting results are based on allocating 10% of your portfolio to a single trade - this should be determined by your risk appetite.
There are risks associated with any form of investing. Never invest more than you are willing to lose. Past performance is not a guarantee or predictor of future performance. Do your own due diligence before making any investment decisions.
Configuration:
The dropdown in the script selects the time frame for Highs and Lows that the script must consider, and the chart time frame is the time frame of which closing conditions the script should use
Alerts:
The indicator comes with 2 off alerts: open_LONG and open_SHORT, which in itself is self explanatory, however, due to the slow trading nature of the script, alerts are generally not needed
Once you receive access to the trial version, you will also receive a link to a video that will show you exactly how to set up the script
Happy trading
Cari dalam skrip untuk "algo"
Buy Sell Bot StrategyHello Everyone,
In this strategy, I benefited from the values of RSI and wave trend indicators, which are the oldest and most used indicators in the market. I contributed to this bi-valued indicator myself with a bivariate formula. My variables are actually a simple intersection algorithm, the intersection of the wave trend indicator and the RSI indicators when they are oversold or overbought.
As you all know, we can send signals to bot sites via tradingview. You can use bot signals boxes in this strategy. You can analyze past transactions in the Date settings section. In the indicator settings section, you can change the settings of the overbought and oversold zones. Perhaps the most important feature here is the USE SELL SIGNALS section. I would like to emphasize this section in particular that when you mark the use sell signal section, the strategy will be processed in the buy section and will not be processed in the sell section. If you do not click on the USE SELL SIGNALS section, the strategy will be processed in the buy section, but this time it will be exited when the target in the take profit section is reached. THIS WAS IMPORTANT.
There is another important point here. Always in position and USE SELL SIGNALS sections do not work together. Run these two features one by one. It is a strategy that is constantly in operation through the name of the Always in position feature, I do not recommend it. The USE PERCENTAGE DECREASE feature, on the other hand, is the section where we want the share to drop as a percentage to enter the second trade after the first purchase is made in the settings section if you activate the pyramiding feature. You can use the tradingview help page for the pyramiding feature.
I found this strategy suitable to use in the 1-hour time frame in the crypto market and adjusted it that way. Of course, you can use it by changing the settings in stocks and in different time periods. big wins
Sentiment by JDG v5.0Hi Trading View User,
First of all: Strictly use 1hr TF
This strategy uses the following indicators:
1. RSI (default and improved provided by trading view.
2. Fear and greed index
3. Slope of Fear and Greed Index( Drop over run formula)
Slope is calculated and fine tuned for every stock/coin.
All crypto coins have different slope structure / fear and greed DNA.
Slope is different for every coin/stock, this is automatically calculated by the script and optimized for best profit.
How the Fear and Greed Index is calculated
So how do they arrive at the final number? There are multiple factors that influence the ultimate output.
1. Volatility: The index compares volatility and max drawdowns (a drawdown is a decline in value) against the 30-day and 90-day average volatility and drawdown numbers. Higher volatility is considered fearful and increases the final output. Volatility represents 25% of the index value.
2. Momentum/volume: The index measures the current momentum and volume of the bitcoin market. Again, against the 30-day and 90-day averages. High volume and momentum are seen as negative metrics and increase the final index output. Momentum/ volume represents 25% of the index value.
3. Social Media: The index tracts mentions and hashtags for bitcoin , and compares them to historical averages. Higher mentions and hashtags are interpreted as increased market involvement and lead to an increase in the final index output. Social media represents 15% of the index value.
4. Surveys: The index conducts large, market-wide surveys on a weekly basis. Usually, there are 2,000-3,000 participants in each survey. More enthusiastic survey results drive the index higher, pointing to market greed prevailing. Surveys represent 15% of the index value.
5. Dominance: The index measures bitcoin dominance in the overall market. The higher the bitcoin dominance, the more fearful the market – as interpreted by the index. As alternative coins gain market share, the market is acting courageously and not fearfully. The lower the bitcoin dominance, the greedier the market is becoming. 6. 6. Dominance represents 10% of the index value.
7. Trends: The index includes Google trend numbers in the final value. The higher the search interest of cryptocurrency becomes; the higher amount of greed is seen in the market. Trends represent 10% of the index value.
For more information on Crypto Fear & Greed Index please do visit:
alternative.me
Strategy Buy Conditions:
1. Sentiment is at Extreme Fear and Fear , as this increases the price also increases.
2. Trading view RSI crossing up
Note: Wait for long signal, then enter a trade on the rocket emoji
Strategy Sell Conditions:
1. Sentiment is at Extreme Greed and Greed , as this decreases the price also decreases.
The current code/ strategy supports 55 coins from Binance for spot / futures trading.
Here are the list:
SHIBUSDT
AAVEUSDT
ADAUSDT
AKROUSDT
ALGOUSDT
ATOMUSDT
AUDIOUSDT
AVAXUSDT
AXSUSDT
BANDUSDT
BATUSDT
BLZUSDT
BTCDOMUSDTPERP
BTCUSDT
CTKUSDT
EGLDUSDT
EOSUSDT
ETHUSDT
FLMUSDT
FTMUSDT
GALAUSDT
IOTAUSDT
IOTXUSDT
KAVAUSDT
KLAYUSDT
LITUSDT
LRCUSDT
LUNAUSDT
MATICUSDT
MTLUSDT
NEARUSDT
NEOUSDT
ONTUSDT
ROSEUSDT
RUNEUSDT
SANDUSDT
SKLUSDT
SOLUSDT
THETAUSDT
WAVESUSDT
XRPUSDT
ZECUSDT
HBARUSDT
ONEUSDT
GRTUSDT
DOTUSDT
CTSIUSDT
VETUSDT
LINKUSDT
SRMUSDT
OGNUSDT
MANAUSDT
Reminding again, please use 1HR TF only when using this strategy.
Wait for long signal, then enter a trade on the rocket emoji
Message me for access.
-CodeFather
Ultimate Kinski Histogram Strategy [PrismBot] [Lite]This is an anti-curve fitting strategy that has no value inputs for the strategy settings. It just works , as they say.
This is based on the @KINSKI Buy-Sell Signal , but also incorporates other confluence (an MACD and histogram) and incorporates it into a fully automatable strategy with customizable order settings and quantity calculations.
The strategy has potential in scalping, but works best (in my testing) on higher timeframes (15M and up) with the default strategy.
Included in this Strategy:
✔️ Tweak a multitude of specific settings (MA lengths, R:R, SL distance etc)
✔️ Enable advanced setup filters
✔️ Use money management and risk calculations
✔️ Draw trade info directly to chart (eg. SL size in percent, win rate etc)
✔️ Use various filters (eg. time filter, date filter, MA slope angle etc)
✔️ Manage risk per position when auto-trading forex through AutoView
✔️ Choose from various alert conditions!
✔️ Sync to any bot or algorithmic trading system
SSL + Wavetrend (7 indicators) by TradeSmartHello everyone! This script is implementing a strategy that uses 7 indicators: SSL, Wavetrend, SSL Hybrid, Keltner Channel, EMA, Candle Height and ATR. This is the 2nd best strategy that we have tested so far (based on the 100 backtests).
STRATEGY ENTRY RULES
Long entry: go long if SSL Hybrid is blue (between last candle and entry candle) and SSL Channel crosses up (green SSL line is on the top) and Wave Trend prints green dot (candle color turns yellow) and entry Candle Height is not higher than 0.6 and entry candle is inside the Keltner Channel and price target does not hit the 200 EMA.
Short entry: go short if SSL Hybrid is pink (between last candle and entry candle) and SSL Channel crosses down (red SSL line is on the top) and Wave Trend prints red dot (candle color turns blue) and entry Candle Height is not higher than 0.6 and entry candle is inside the Keltner Channel and price target does not hit the 200 EMA.
EXIT STRATEGY
The strategy will exit based on a set ATR value. Take profit and stop loss levels can be changed with risk/reward settings.
CHANGEABLE SETTINGS
Wave Trend: Channel Length, Average Length, Wave Trend Limit High, Wave Trend Limit Low
SSL: Period
SSL Hybrid: SSL1 / Baseline Type, SSL1 / Baseline Length, Base Channel Multiplier
Target Price Limit: can set 6 different limiters for long and short entries
Candle Height Limit: Limit based on, Candle Limit High, Candle Limit Low
Keltner Channel: Limit range long, Limit range short, Length, Multiplier, Source, Use Exponential MA, Bands Style, ATR Length
Exit strategy: ATR Length, ATR Smoothing, Stop Loss Multiplier (risk), Exit Price Multiplier (reward)
Setups: Capital Percentage, Risk Percentage, Allow Long Entries, Allow Short Entries
Date Range: Limit Between Dates, Start Date, End Date
Trading Time: Valid Trading Days
FIRST RELEASE SETTINGS FOR ALGOUSDT 30 M (3/19/2022)
Wave Trend: Channel Length = 11, Average Length = 19, Wave Trend Limit High = 27, Wave Trend Limit Low = -48
SSL: Period = 10
SSL Hybrid: SSL1 / Baseline Type = EMA, SSL1 / Baseline Length = 36, Base Channel Multiplier = 0.21
Target Price Limit: can set 6 different limiters for long and short entries: all false
Candle Height Limit: Limit based on: Candle Body (open/close), Candle Limit High = disabled, Candle Limit Low = enabled, 0.32
Keltner Channel: Limit range long = enabled, Full range, Limit range short = enabled, Full range, Length = 3, Multiplier = 1, Source = close, Use Exponential MA = enabled, Bands Style = Average True Range, ATR Length = 11
Exit strategy: ATR Length = 14, ATR Smoothing = EMA, Stop Loss Multiplier (risk) = 1.9, Exit Price Multiplier (reward) = 2
Setups: Capital Percentage = disabled, Risk Percentage = enabled, 1, Allow Long Entries = enabled, Allow Short Entries = enabled
Date Range: Limit Between Dates = disabled, Start Date, End Date
Trading Time: Valid Trading Days = 1234567
Hope you like this strategy, feel free to check all of our scripts. Thank you for your support!
iCryptoScalperHi everyone!
In this post I would like to present my personal indicator for short-term strategies on cryptocurrencies called iCryptoScalper , but let me first introduce myself:
I am a theoretical physicist with a deep passion for trading and mathematical modelling of the financial markets.
I started trading cryptocurrencies more than 4 years ago and, throughout this period, I got more and more involved in trying to describe the mechanisms governing
the price action at lower timeframes like 1, 5 and 15 minutes.
As a beginner, I started with the usual "buy and hold" strategy, the safest but also boring option. Afterthat, I tried to get more involved on speed trading
and scalping and, as it happens to all the beginners, I went through many mistakes.
At the beginning, trying to find the best scalping strategy, was a very difficult task and I barely managed to perform well, mostly because every trade were overwhelmed
by my emotional approach and the fear of missing the right entry point and/or exit point. However, thanks to these difficulties, I understood that I needed
an algorithmic procedure to improve my performances and overtake the emotional approach, with a more technical approach: a mathematical guide that precisely tells me how to behave in the best way possible to be profitable.
To achieve this goal, I put all my efforts in trying to write a consistent mathematical model able to give me all the statistical informations I needed to reach
the best performances and, of course, the best possible profits.
The iCryptoScalper is an explicit mathematical tool to be used for scalping strategies and optimized for different cryptocurrency pairs on 15/30 min timeframes.
The script gives you many useful informations and details regarding the current and subsequent trade, accompanied with a detailed overview on both the last 20 short
and long trade results.
Let us have a look to all the detailed informations the script shows to you:
CHART
- Lines: The script plots for you the Entry price (yellow line), the Stop Loss price (red line) and a series of 8 Take Profit levels (green lines).
- Background: The green background color indicates that the script is in a long position, viceversa, the red background color indicates that the script is in a short position.
- Labels: The blue labels indicate the maximum achieved profit for each trade.
- Alerts: The script shows two types of alerts, the "prepare to #" one and the true entry one. The prepare alert is very useful to understand when the strategy is going
to enter a specific trade, thus giving you the possibility to set up all the necessary Entry/SL/TP levels on your favorite trading platform.
- Crosses: The green and red crosses are precisely located at the corresponding long and short entry price for the next trade, thus giving you a preview on the target price
that has to be reached for the indicator to enter. They are computed thanks to a mathematical model I set up and optimized for each cryptocurrency pair.
PANEL
- Overview: This part shows you two probability tables for the last 20 long and short trades each. The first table indicates the set of probabilities of reaching the corresponding TP level, whereas the second table shows the conditional probability , namely the probability of reaching a certain profit level once the previous one has been achieved.
Below the tables you can find three quantities again referring to the last 20 long and short trades: the Average Maximum Profit , the Average Maximum Drawdown and the Average Risk/Reward Ratio .
Last but not least, the correlation between the current asset and BTC is displayed together with the current BTC status.
- Active Trade: This part collects all the data related to the current trade status.
- Next Trade: This part collects all the data related to the next trade status.
ATTENTION!
Please notice that the equity line you see in the "Strategy Tester" section of TradingView is unreliable compared to the real performances of the script. This is due to the
fact that the TradingView engine is designed for backtesting automatic trading strategies and not real-time trading bots.
An example is the following: Bob buys 1 BTC-PERP contract at 10000$, setting the Stop Loss at 9000$. The price of the perpetual then goes to 12000$ and then go back hitting the Stop Loss. For the TradingView Engine this is a
trade with a permanent loss of 1000$. However, for the iCryptoScalper users, the trade is perfectly fine thanks to the numerous TP levels (and corresponding probabilities) given by the script within the trade window.
Strategy - Cryptosystem NNFX wayFirst script done!
This is my version of the No-Nonsense Forex (NNFX) Strategy
This strategy shows you the entry and exit signal with a standard 1.5 x ATR for Stop Loss and 1 x ATR for Taking Profit. You can adjust the settings to your needs.
This strategy uses 5 indicators:
1. Average True Range for SL and TP placement, there is a nuance where you can add the 1XATR Rule;
2. SMA used to filter longs and shorts;
3. SSL Channel for 1st Confirmation;
4. DPO for 2nd Confirmation;
5. Waddah Attar Explosion as a volume indicator.
There is no exit indicator because I coded 2 trades (2x0.5). TP1 will be at 1xATR and TP2 will automatically trail behind with 1.5XATR. You can see the red trailing line on the charts.
Other exits can be: When SSL gives opposite signal or when price crosses and closes your baseline.
I used this system for 1D timeframe.
Hopefully this can be usefull for your tradingstyle.
Would be great if you guys leave a like.
Thanks!
[Hercules] Backtest FrameworkLevel: 5
Background
Backtesting of technical indicators and strategies is the most common way to understand a quantitative strategy. However, the complicated configuration and adaptation work of backtesting many quantitative tools makes many traders who do not understand the code daunted. Moreover, although I have written a lot of strategies,
However, I am still not very satisfied with the backtest configuration and writing efficiency. Therefore, I have been thinking about how to build a backtesting framework that can quickly and easily evaluate the backtesting performance of any indicator with a "long/short entry" indicator, that is, a "simple backtesting tool for dummies". The performance requirements should be stable, and the operation should be simple and convenient. It is best to "copy", "paste", and "a few mouse clicks" to complete the quick backtest and evaluation of a new indicator.
Luckily, I recently realized that TradingView provides an "Indicator on Indicator" feature, which is the perfect foundation for doing "hot swap" backtesting. My basic idea is to use a two-layer design. The first layer is the technical indicator signal source that needs to be embedded, which is only used to provide buy and sell signals of custom strategies; the second layer is the trading system, which is used to receive the output signals of the first layer, and filter the signals according to the agreed specifications. , Take Profit, Stop Loss, draw buy and sell signals and cost lines, define and send custom buy and sell alert messages to mobile phones, social software or trading interfaces. In general, this two-layer design is a flexible combination of "fixed and flexiable", which can meet the needs of most traders to quickly evaluate the performance of a certain technical indicator. The first layer here is flexible. Users can insert their own strategy codes according to my template, and they can draw buy and sell signals and output them to the second layer. The second layer is fixed, and the overall framework is solidified to ensure the stability and unity of the trading system. It is convenient to compare different or similar strategies under the same conditions. Finally, all trading signals are drawn on the chart, and the output strategy returns. test report.
The main function:
The first layer: "{Hercules/Sextan} Your Indicator Source", the script provides a template for personalized strategy input, and the signal and definition interfaces ensure full compatibility with the second layer. Backtesting is performed stably in the backtesting framework of the layer. The first layer of this script is also relatively simple: enter your script in the highlighted custom script area, and after ensuring the final buy and sell signals long = bool condition, short = bool condition, the design of the first layer is considered complete. Input it into the PINE script editor of TradingView, save it and add it to the chart, you can see the pulse sequence in yellow (buy) and purple (sell) on the sub-picture, corresponding to the main picture, you can subjectively judge that the quality of the trading point of the strategy is good Bad.
The second layer: "{Hercules} Backtest Framework". This script is the standardized trading system strategy execution and alarm, used to generate the final report of the strategy backtest and some key indicators that I have customized that I find useful, such as: winning rate , Odds, Winning Surface, Kelly Ratio, Take Profit and Stop Loss Thresholds, Trading Frequency, etc. are evaluated according to the Kelly formula. To use the second layer, first load it into the TrainingView chart, no markers will appear on the chart, since you have not specified any strategy source signals, click on the gear-shaped setting next to the "{Hercules} BTFW" header button, you can open the backtest settings, the first item is to select your custom strategy source. Because we have added the strategy source to the chart in the previous step, you can easily find an option "{Hercules/Sextan} Your Indicator Source: Signal" at the bottom of the list, this is the strategy source input we need, select and confirm , you can see various markers on the main graph, and quickly generate a backtesting profit graph and a list of backtesting reports. You can generate files and download the backtesting reports locally. You can also click the gear on the backtest chart interface to customize some conditions of the backtest, including: initial capital amount, currency type, percentage of each order placed, amount of pyramid additions, commission fees, slippage, etc. configuration. Note: The configuration in the interface dialog overrides the same configuration implemented by the code in the backtest script.
How to output charts:
The first layer: "{Hercules/Sextan} Your Indicator Source", the output of this script is the pulse value of yellow and purple, yellow +1 means buy, purple -1 means sell.
The second layer: Hercules Backtest Framework". The output of this script is a bit complicated. After all, it is the entire trading system with a lot of information:
1. Blue and red arrows. The blue upward arrow indicates long position, the red downward arrow indicates short position, and the horizontal bar at the end of the purple arrow indicates take profit or stop loss exit.
2. Red and green lines. This is the holding cost line of the strategy, green represents the cost of holding a long position, and red represents the cost of holding a short position. The cost line is a continuous solid line and the price action is relatively close.
3. Green and yellow long take profit and stop loss area and green and yellow long take profit and stop loss fork. Once a long position is held, there is a conditional order for take profit and stop loss. The green horizontal line is the long take profit ratio line, and the yellow is the long stop loss ratio line; the green cross indicates the long take profit price, and the yellow cross indicates the long position. Stop loss price. It's worth noting that the prongs and wires don't necessarily go together. Because of the optimization of the algorithm, for a strong market, the take profit will occur after breaking the take profit line, and the profit will not be taken until the price falls.
4. The purple and red short take profit and stop loss area and the purple red short stop loss fork. Once a short position is held, there will be a take profit and stop loss conditional order, the red is the short take profit ratio line, and the purple is the short stop loss ratio line; the red cross indicates the short take profit price, and the purple cross indicates the short stop loss price.
5. In addition to the above signs, there are also text and numbers indicating the profit and loss values of long and short positions. "L" means long; "S" means short; "XL" means close long; "XS" means close short.
TradingView Strategy Tester Panel:
The overview graph is an intuitive graph that plots the blue (gain) and red (loss) curves of all backtest periods together, and notes: the absolute value and percentage of net profit, the number of all closed positions, the winning percentage, the profit factor, The maximum trading loss, the absolute value and ratio of the average trading profit and loss, and the average number of K-lines held in all trades.
Another is the performance summary. This is to display all long and short statistical indicators of backtesting in the form of a list, such as: net profit, gross profit, Sharpe ratio, maximum position, commission, times of profit and loss, etc.
Finally, the transaction list is a table indexed by the transaction serial number, showing the signal direction, date and time, price, profit and loss, accumulated profit and loss, maximum transaction profit, transaction loss and other values.
Remarks
Finally, I will explain that this is just the beginning of this model. I will continue to optimize the trading system of the second layer. Various optimization feedback and suggestions are welcome. For valuable feedback, I am willing to provide some L4/L5 technical indicators as rewards for free subscription rights.
Subscription
To encourage more people use this framework and avoid some abuse this one, I would like to set
100 Tradingview Coins per Monthly Subscription.
100X10 Tradingview Coins per Yearly Subscription.
[Sextan] PINEv4 Sextans Backtest FrameworkLevel: 5
Background
Backtesting of technical indicators and strategies is the most common way to understand a quantitative strategy. However, the complicated configuration and adaptation work of backtesting many quantitative tools makes many traders who do not understand the code daunted. Moreover, although I have written a lot of strategies,
However, I am still not very satisfied with the backtest configuration and writing efficiency. Therefore, I have been thinking about how to build a backtesting framework that can quickly and easily evaluate the backtesting performance of any indicator with a "long/short entry" indicator, that is, a "simple backtesting tool for dummies". The performance requirements should be stable, and the operation should be simple and convenient. It is best to "copy", "paste", and "a few mouse clicks" to complete the quick backtest and evaluation of a new indicator.
Luckily, I recently realized that TradingView provides an "Indicator on Indicator" feature, which is the perfect foundation for doing "hot swap" backtesting. My basic idea is to use a two-layer design. The first layer is the technical indicator signal source that needs to be embedded, which is only used to provide buy and sell signals of custom strategies; the second layer is the trading system, which is used to receive the output signals of the first layer, and filter the signals according to the agreed specifications. , Take Profit, Stop Loss, draw buy and sell signals and cost lines, define and send custom buy and sell alert messages to mobile phones, social software or trading interfaces. In general, this two-layer design is a flexible combination of "fixed and flexiable", which can meet the needs of most traders to quickly evaluate the performance of a certain technical indicator. The first layer here is flexible. Users can insert their own strategy codes according to my template, and they can draw buy and sell signals and output them to the second layer. The second layer is fixed, and the overall framework is solidified to ensure the stability and unity of the trading system. It is convenient to compare different or similar strategies under the same conditions. Finally, all trading signals are drawn on the chart, and the output strategy returns. test report.
The main function:
The first layer: "{Sextan} Your Indicator Source", the script provides a template for personalized strategy input, and the signal and definition interfaces ensure full compatibility with the second layer. Backtesting is performed stably in the backtesting framework of the layer. The first layer of this script is also relatively simple: enter your script in the highlighted custom script area, and after ensuring the final buy and sell signals long = bool condition, short = bool condition, the design of the first layer is considered complete. Input it into the PINE script editor of TradingView, save it and add it to the chart, you can see the pulse sequence in yellow (buy) and purple (sell) on the sub-picture, corresponding to the main picture, you can subjectively judge that the quality of the trading point of the strategy is good Bad.
The second layer: "{Sextan} PINEv4 Sextans Backtest Framework". This script is the standardized trading system strategy execution and alarm, used to generate the final report of the strategy backtest and some key indicators that I have customized that I find useful, such as: winning rate , Odds, Winning Surface, Kelly Ratio, Take Profit and Stop Loss Thresholds, Trading Frequency, etc. are evaluated according to the Kelly formula. To use the second layer, first load it into the TrainingView chart, no markers will appear on the chart, since you have not specified any strategy source signals, click on the gear-shaped setting next to the "{Sextan} PINEv4 Sextans BTFW" header button, you can open the backtest settings, the first item is to select your custom strategy source. Because we have added the strategy source to the chart in the previous step, you can easily find an option "{Sextan} Your Indicator Source: Signal" at the bottom of the list, this is the strategy source input we need, select and confirm , you can see various markers on the main graph, and quickly generate a backtesting profit graph and a list of backtesting reports. You can generate files and download the backtesting reports locally. You can also click the gear on the backtest chart interface to customize some conditions of the backtest, including: initial capital amount, currency type, percentage of each order placed, amount of pyramid additions, commission fees, slippage, etc. configuration. Note: The configuration in the interface dialog overrides the same configuration implemented by the code in the backtest script.
How to output charts:
The first layer: "{Sextan} Your Indicator Source", the output of this script is the pulse value of yellow and purple, yellow +1 means buy, purple -1 means sell.
The second layer: PINEv4 Sextans Backtest Framework". The output of this script is a bit complicated. After all, it is the entire trading system with a lot of information:
1. Blue and red arrows. The blue upward arrow indicates long position, the red downward arrow indicates short position, and the horizontal bar at the end of the purple arrow indicates take profit or stop loss exit.
2. Red and green lines. This is the holding cost line of the strategy, green represents the cost of holding a long position, and red represents the cost of holding a short position. The cost line is a continuous solid line and the price action is relatively close.
3. Green and yellow long take profit and stop loss area and green and yellow long take profit and stop loss fork. Once a long position is held, there is a conditional order for take profit and stop loss. The green horizontal line is the long take profit ratio line, and the yellow is the long stop loss ratio line; the green cross indicates the long take profit price, and the yellow cross indicates the long position. Stop loss price. It's worth noting that the prongs and wires don't necessarily go together. Because of the optimization of the algorithm, for a strong market, the take profit will occur after breaking the take profit line, and the profit will not be taken until the price falls.
4. The purple and red short take profit and stop loss area and the purple red short stop loss fork. Once a short position is held, there will be a take profit and stop loss conditional order, the red is the short take profit ratio line, and the purple is the short stop loss ratio line; the red cross indicates the short take profit price, and the purple cross indicates the short stop loss price.
5. In addition to the above signs, there are also text and numbers indicating the profit and loss values of long and short positions. "L" means long; "S" means short; "XL" means close long; "XS" means close short.
TradingView Strategy Tester Panel:
The overview graph is an intuitive graph that plots the blue (gain) and red (loss) curves of all backtest periods together, and notes: the absolute value and percentage of net profit, the number of all closed positions, the winning percentage, the profit factor, The maximum trading loss, the absolute value and ratio of the average trading profit and loss, and the average number of K-lines held in all trades.
Another is the performance summary. This is to display all long and short statistical indicators of backtesting in the form of a list, such as: net profit, gross profit, Sharpe ratio, maximum position, commission, times of profit and loss, etc.
Finally, the transaction list is a table indexed by the transaction serial number, showing the signal direction, date and time, price, profit and loss, accumulated profit and loss, maximum transaction profit, transaction loss and other values.
Remarks
Finally, I will explain that this is just the beginning of this model. I will continue to optimize the trading system of the second layer. Various optimization feedback and suggestions are welcome. For valuable feedback, I am willing to provide some L4/L5 technical indicators as rewards for free subscription rights.
Subscription
To encourage more people use this framework and avoid some abuse this one, I would like to set
100 Tradingview Coins per Monthly Subscription.
100X10 Tradingview Coins per Yearly Subscription.
Portfolio Performance - Effects of RebalancingFunction:
- Can be used to evaluate the performance of a portfolio containing 2 assets over a set time interval
- Shows the % return of the portfolio over the time interval defined by the user
- Includes a threshold rebalancing algorithm to show the effects that rebalancing has on the portfolio over the long term
- Created to evaluate of the performance of portfolios containing different weightings of stocks and bonds over time assuming that the user would rebalance the portfolio when asset weights crossed a threshold
Instructions:
- To be used with dividends adjustments turned on
- Add this script to a symbol. e.g. AMEX:SPY
- Click the chart to define the entry time and the exit time. i.e. the time interval
- Define the initial investment of the portfolio. Default setting is $100,000
- Define the second asset to be included in the portfolio. e.g. BATS:AGG
- The strategy comes pre-populated with a portfolio that has a weight of 80% asset 1 and 20% asset 2. i.e. 80% AMEX:SPY and 20% BATS:AGG if the symbols mentioned above were chosen
- The 7 lines show the weighted % return of each portfolio over the time period defined by the user
- Each line (except the blue) is the return based on a different rebalancing threshold. The default settings are 1%, 2.5%, 5%, 10%, 15%, 20%, 30%
- The blue line is the % return of a portfolio that was made up of 100% asset 1 over the time interval. i.e. 100% AMEX:SPY
- Asset weights and rebalancing thresholds are adjustable via the settings
- Each plot can be turned on and turned off via a tick box in the settings
Joint Conditions Strategy Suite + TradingConnector alerts bot"Please give us combined alerts with the possibility of having several conditions in place to trigger the alert." - was the top voted request from users under one of the recent blogposts by TradingView.
Ask and you shall receive ;)
TradingView is a great platform, with unmatched set of functionalities, yet this particular combo of features indeed seems not to be in place. Fortunately, TradingView is also very open platform, thanks to PineScript coding language, which enables developing combos like the requried one and plenty of other magic.
I have already published numerous "educational" scripts, showing how to code indicators and alerts with PineScript, but... this is not one of them. This one is for real. READY FOR USE on real markets, also by the non-coding traders. Just take my script, set parameters with dropdowns, backtest the strategy, fire the alerts and execute them.
HOW TO USE IT
In "Settings" popup I tried to mimic the CreateAlert popup dropdowns for selecting logic. Let's say you want to enter Long position at Stochastic KxD crossover. In first line of Long Entry conditions set "StochK" + "Crossing Up" + "StochD". Last field doesn't matter because in 3rd dropdown something else than "value" was selected. In second line you could set "maB" + "Greater Than" + "maC" to filter out those entries which are in direction of the uptrend. And yeah, add ADX>25 to make sure the market is actually moving: "ADX" + "Greater Than" + "value" + "25". All condition lines must be TRUE (or skipped) for the entry to be triggered. Toghether with an alert.
The same for Short entries. Combinations are limitless.
INDICATORS AND MTF (MULTI-TIMEFRAME)
In those dropdowns you can select candle values like open/close/high/low/ohlc4, but also some most popular indicators, which I have pre-built into this script: RSI, various Moving Averages, ADX-DMI, Stochastic and Bollinger Bands for start. You can configure parameters of those indicators also in "Settings" popup, in "Indicator Definitions" section. What's important, you can use any of these indicators from higher timeframe, setting MTF multiplier. So if you applied this indicator to 1h chart, but want to use rsi(close,14) from 4h chart, set MTF to 4. If you want to use current timeframe indicators, keep MTF at 1, which is a default setting here.
Note for coders: to keep focus of this script on joining conditions, entire logic for those indicators has been moved to external library, also open source. I encourage you to dig into the code and see how it's done. I love the addition of libraries concept in PineScript.
CUSTOM INDICATOR
Following the "openness" spirit of my master - which is TradingView itself - my work is also open, in 2 ways:
1. This script is open source. So you can grab it, modify or add any functionalities you want. I cannot and don't want to stop you from doing that. I'm asking for only one favor - please mention this source script in your credits.
2. You can import the plot (series) from any other indicator on TradingView. In Settings popup of my script, scroll down to "Indicator Definitions" section, and select the series of your choice in the first dropdown. Now it is ready to use in conditions dropdowns on top of the Settings popup.
Let me give you an example of that last scenario. Take another script of mine, "Pivot Points on SR lines DEMO". You can find it in "Indicators & Strategies" library or here: (). Attach it to your chart. Now come back to THIS script, open Settings popup and in "Custom Indicator aka Imported Source" select "Pivot Points on SR lines: ...". The way it works - it detects if a pivot point happened on Support/Resistance line from the past and returns 1 for PivotLow and -1 for Pivot High. Now in first Long Entry condition set: "custom indicator" + "Greater Than" + "value" + "0" and long entries will be marked on every pivot low noticed on Support/Resistance line.
ALERTS
Last but not least - the alerts. This script produces alerts on the entries calculated by strategy logic, as marked on the chart by the backtester. Moreover, syntax of those alerts is already prepared and fully compatible with TradingConnector - alerts executing tool (bot), if you want to auto-execute those trades. Apart from installing the tool, you need to set
up the alerts in TradingView, here is how:
open CreateAlert popup
in first dropdown select "Joint Conditions Strategy Template"
in second dropdown select "alert() function calls only"
And that's all. You only need to set one alert for the whole script, not one for Longs and one for Shorts as it was in the past. Also, you don't need to setup closing alerts, because stop-loss/take-profit/trailing-stop information is embedded in the entry alert so your broker receives it as early as possible. Alerts sent will look like this: "long sl=40 tp=80", which is exactly what TradingConnector expects.
Phew, that's all folks. If you think I should add something to this template (maybe other indicators?) please let me know in comments or via DM. Happy trading!
P.S. Pyramiding is not supported in this script.
Disclaimer : I'm not saying above combination of conditions will make you money. Actually none of this can be considered financial advice. It is only a software tool. Use it wisely, be aware of the risk and do your own research!
B.Bands | Augmented | Intra-range | Long-OnlyHere you have the essential trading engine based on Bollinger Bands .
The idea behind is to trade the intra-range of the bands.
How is going to work?
Define which Bollinger Bands we want to use. Classic Bollinger Bands or Augmented Bollinger Bands . Without selecting, the algorithm doesn't show a strategy.
Define the length of the Moving Average and the Standard Deviation by default the classic 20-2.
Define the Bollinger Bands Spread Max Range (Upper-Lower) to be able to determine wheter or not you're in a price range or potential breakout.
Define data source to trigger exit and entry points.
Define profit based on Middle Band or Opposite Band.
Define Stop Loss % and activate Trailing Stop if desired with the percentage required.
Determine if you want to sell only on profit after triggering the entry signal. * Note Stop Loss remains activated.
Choose a date range if you want to study a specific period.
Bear in mind, this is the essential trading engine, open for you to test, try and improve under your requirements. You can determinate when is the ideal market to implement it based on many other indicators. Maybe you wish to change the stop loss settings for ATR, previous low, etc. Totally up to you.
Note the script comes with initial capital, fee % and slippage by deault. This may change for your assets. Make sure you define it in advance.
NOTE: If you trade assets such BTC, you must update the initial capital. By default 5000 (USD) The script doesn't support fraction trading such 0.01BTC.
Will be updated on next version.
Feel free to get in touch if you've got any question.
Premium ScalperThe strategy works with a combination of a number of different factors, including:
- Volume
- Moving averages
- Volatility
- RSI
This strategy generates long and short signals based on volume movements, moving averages and RSI. By combining other algorithms, low volatility periods can be filtered out.
The best results can be achieved by pairing the indicator with a bot through 3Commas and using a diversification strategy. This way you spread your risk over different pairs and you therefore also have a great chance of taking big moves.
The strategy results we display are results WITHOUT leverage. It is therefore also possible to only long on spot with this strategy, but for optimal results a trading bot link is required.
The settings we have used for these results are an order size of 100% with a 0.08% commission size.
Side note: This indicator does NOT use repainting!
We offer the possibility to try the indicator for free for 7 days.
QaSH DCA DaytraderThis script takes advantage of the power of DCA implemented in the QaSH DCA Algorithm script, and it applies it to new entry conditions. A "Quickfingers Luc" mode has been added, which creates new entry orders whenever a level of support has been identified. If price breaks the support level and quickly drops down, the orders will already be in place to catch the dip. This method can even catch the 1-second long, 50% flash dips that occur in some exchanges.
Four entry conditions are included in this initial release : ASAP, Quickfingers Luc, Bullish Pivot point, and Bearish Pivot point
All order placements are customizable
All take profit % values are based on the average entry price
Take profit % values can change based on how big the price dip was
Entry condition filter has been added and it uses a variable timeframe EMA
Stoploss function is available
Order size can be sent in the alerts, which allows for multiple setups to be running simultaneously in one account
All alerts are sent using the new "Any alert() function call" feature, which means this indicator will only take up one alert slot to cover all entry and exit alerts
Settings advice:
- If you think price is inflated, try conservative settings that either use a stoploss and EMA filter, or no stoploss but have some of your orders placed far below the current price with increasing volume. In a bear market this will beat the buy and hold.
- If you think the market is ready for a new bull run, then try experimenting with very aggressive settings to beat the buy and hold. For example: ASAP mode with 3 layers turned on. Orders placed at 0.5%, 3%, and 5%. Volumes at 30%, 30%, and 40% respectively. No stoploss. These settings were tested on ETH and beat the buy and hold during an extreme bull market period.
RSI & SMA Strategy By DenizIntroduction
It has always been a major challenge to detect the current market price in technical analysis . There are some basic but strong indicators that help us to estimate the next market action. Relative Strength Index and Simple Moving Average indicators were used in this strategy.
This strategy aims to detect the next market action with different calculations & usages of RSI and SMA indicators.
Strategy Features
As per the result of the calculation from RSI and SMA outputs the strategy will decide to go "Long" or "Short" if the directions are changed from long to short the trade will be closed and it's opening new trade as per to the new direction.
Apart from basic "take profit" and "stop" options there is an additional closing trade option named "Long/Short Bar Count". If the trade could not reach the target in a certain period, it will look for a quit with a 0 loss.
Advantages
Informative alarm messages.
High ratio of Profitable trade numbers.
Disadvantages
Less trade count.
Bollinger band & Volume based strategy V2this script is upgraded version of previous one the major change is deleted script which find a highest price after entry the last of strategy is same.
If current volume is above daily average volume, and three bollinger band`s Standard Deviation, 1 and 1.5 and 2 if the current lowest price is bigger then 1 stdev and current closed is bigger then 1.5 stdev and the last,highest price is above 2.0 stdev, it defined current market is bullish and had momentum.
and the Short will entered when ma60 and ma120 is undercrossed it work as prevent current price is way lower then entry price.
**this script is working in 15min Only in BTC market or USDT**
** basic equity setting is 500$, set your own**
**if you will use this in real-trade,plz comment the result to me**
Ps: i wanna know why my script is only working well in 15 min tick, anyone who has similar phenomenon or if you had a answer about it, please comment me.
Dagger V1 strategyThe "Dagger V1 strategy" strategy is used for the backtest of the "Dagger V1 indicator & alerter" indicator. Their algorithm is identical. Further, all descriptions of the settings are the same for the strategy and the indicator.
Dagger is used for trading on the cryptocurrency spot market, but it can also be used for any other fairly volatile pairs.
Dagger shows the best results on the H1 timeframe, but you can experiment with other timeframes.
The logic of Dagger's work is based on the search for the optimal entry point into the market and the best moment to close a deal. Stochastic oscillator and exponential moving EMA are used for this. Also, the exit from the transaction can be optimized using several parameters.
The strategy can use trailing up to one or more red bars in order not to miss the sharp growth of the currency.
Linear SSL ShortThis script consist of two parts: linear SSL and DEMA. The difference between original SSL and current is that it calculated by linear regression. The logic is simple: when SSL "crossunder" and DEMA is above the price - we get short signal. When price became above DEMA and SSL "crossover" - close short.
Channel Strategy 0921Channel Strategy.
English:
Conditions for buying: in the channel strategy, when the price of an asset touches the lower MA of the channel line, you need to buy in Long, then you need to wait for the price to turn in the direction we need to the upper MA of the channel line. When the price crosses the upper MA line, it is necessary to close all positions on the deal.
The strategy provides safety orders to average our price in order to get more profit at the exit from the trade.
This strategy also provides parameters such as:
1. MA Length
2. Source: different calculations of candlestick closing for the channel
3. Mult: indent of channel line
4. Coeff: channel width shift
5. Order Size: order selection: fixed order /% of the deposit amount
6. Base Order: the amount of the base order
7. Safety Order: amount of the safety order
8. Max Safety Orders: maximum number of safety orders
9. Price Deviation: price deviation for placing a safety order (% of the value of the initial order)
10. Safety Order: multiplier step of safety orders
In the strategy settings, we use 0.06% commission for the futures market.
Conditions for entering a trade and exiting trades:
Entry into a trade is always on a limit order with a commission of 0.02%
Deals are always closed on the market with a commission of 0.04%
This strategy is suitable for any pair of crypto assets with individual settings for a specific pair.
In this strategy, the settings are adapted for the MATICUSDTPERP TF 15M pair on the Binance exchange.
The strategy also works for Algo Trading via API keys via personal webhook signals.
Russian:
Условия для покупки: в канальной стратегии когда цена актива касается нижней MA линии канала нужно покупать в Long, далее необходимо ждать когда цена развернется в нужную нам сторону к верхней MA линии канала. Когда цена пересекает верхнюю MA линию необходимо закрыть все позиции по сделке.
В стратегии предусмотрены страховочные ордера для усреднения нашей цены, чтобы получить больше прибыль на выходе из сделки.
В данной стратегии также предусмотрены параметры такие как:
1. Длина MA
2. Source: разные подсчёты закрытия свечей для канала
3. Mult: отступ линии канала
4. Coeff: сдвиг ширины канала
5. Order Size: выбор ордера: фиксированный ордер / % от суммы депозита
6. Base Order: сумма базового ордера
7. Safety Order: сумма страховочного ордера
8. Max Safety Orders: максимальное количество страховочных ордеров
9. Price Deviation: отклонение цены для выставления страховочного ордера (% от стоимости начального ордера)
10. Safety Order: множитель шага страховочных ордеров
В настройках стратегии комиссию мы используем 0.06% для фьючерского рынка.
Условия входа в сделку и выхода из сделок:
Вход в сделку всегда по лимит ордер с комиссией 0.02%
Закрытие сделок происходит всегда по маркету с комиссией 0.04%
Данная стратегия подходит под любую пару крипто актива с индивидуальными настройками под определенную пару.
В данной стратегии настройки адаптированы под пару MATICUSDTPERP ТФ 15М биржа Binance.
Стратегия так же работает под Algo Trading через API ключи через персональные сигналы webhook.
SQZ Multiframe StrategyThis is a first attempt to automate what my current strategy when trading is.
It uses 2 timeframes: the one you are currently using to see the chart and an "anchor trend" which is a higher order frame.
Supported timeframes are: 1m, 5m, 15m, 30m, 1H, 4H, 1D, 1W
The Strategy relies on two indicators:
Squeeze Momentum Indicator
CMF
How does it works?
It looks for a moment when the following conditions are met.
For Long:
Positive directionality in SQZM monitor in anchor timeframe
Positive directionality in SQZM monitor in current timeframe
Recent minimum in CMF
For Short:
Negative directionality in SQZM monitor in anchor timeframe
Negative directionality in SQZM monitor in current timeframe
Recent maximum in CMF
After a BUY or SELL order is executed the plot will start showing two lines: A TP line, and a SL line.
The TP and SL move dynamically based on a greedy algorithm based on 3 input parameters.
Min Profit to Start Moving SL (%): Sets an initial target for the trade.
Maximum Possible of SL (%): This is the maximum amount possible for SL. If volatility is not too high, a shorter SL will be chosen based on Kaufman's Stops method
Take profit factor: Is how much portion of the target I am taking as profit once the target is reached
Example for 5% Min profit:
When the first target is reached (+5%), the SL will be updated to 2.5% over the enter price.
When the second target is reached (+10%), the SL will be updated to 5% over the enter price.
Note: The strategy might abandon the position prematurely if a contrary signal is received while the trade is opened, and will change direction.
The Strategy has been backtested mostly for crypto. It might be good for stocks too, but the parameters mentioned might need some adjustments since price moves at a different rate.
Recommended timeframe is 4H for BTC , and 30min/1H for alts.
Comments and ideas are more than welcome!
Ultimate Triple Supertrend Strategy [PrismBot] [Lite]Initial Release on Prism Core 1.7.r493
Included in this Ultimate Supertrend Lite Strategy:
✔️ Tweak a multitude of specific settings (MA lengths, R:R, SL distance etc)
✔️ Enable advanced setup filters
✔️ Use money management and risk calculations
✔️ Draw trade info directly to chart (eg. SL size in percent, win rate etc)
✔️ Use various filters (eg. time filter, date filter, MA slope angle etc)
✔️ Manage risk per position when auto-trading forex through AutoView
✔️ Choose from various alert conditions!
✔️ Sync to any bot or algorithmic trading system
Some details about this strategy:
This strategy is a triple Supertrend strategy that includes multi-timeframe analysis built-in to the supertrend function. You also have a multitude of strategies to choose from, such as the newest addition to Prism Core - Stochastic. Our stochastic strategies includes Standard / Strict Standard which buys when overbought and sells when oversold, and a couple of %K cross strategies as well.
There are also many other filters such as RSI, ADX, and more, as well as built-in DCA (dollar cost averaging), position sizing, take profit and stoplosses, and so much more.
RebalancingThis script gives you an approximation of the APR you can get when using the technique of Rebalancing.
Further discription are embeded in the script.
HOW TO USE:
- Start date: Choose start date
- Settings: Change settings to your own needs
- Base currency: Select Base currency
- Portfolio: Select the coins (MAX 9 pcs.) you want to use in your portfolio for the rebalancing algoritm
- Click "Data Window" to see the APR (appr.)
Markets:
It can be used to all markets.
NOTE:
Some Exchanges don't go very far back in the past and for this reason this may have impact on this Indicator.
Make sure the coins you selected are available at the Exchange you select in the settings section. If you dont do this, the script generates an error.
COIN FX PRO TRADERCoin Fx Pro strategy makes the cryptocurrency markets buy and sell automatically. 5 stoploss, fixed profit take and stoploss level can be customized from strategy settings. There are 4 separate strategies that you can set in the strategy. First of them, there are strategies that decide long and short positions in accordance with your settings at the pivot levels, second of the super trend, third of the potential return levels, third of the up and down breaks. Pyramiding can offer multiple entry points. Strategy back tests can be adjusted to the desired time period and can be used as spot or term if desired. Frostybot is set to work fully compatible with js when the necessary inputs are made from these strategy settings. When installing an alarm for FROSTYBOT JS, the alarm message field is {{strategy.order.alert_message}}.
For best back test performance results. Use it
BTCUSDTP and 5 MIN TIME FRAME!!!