Self-Adjusting Parabolic SARWhat is this tool?
This is an implementation of the well-known Parabolic SAR indicator that can adjust parameters on the fly to achieve a better profitability.
The algorithm was borrowed from Profitable Parabolic SAR and connected to the basic Parabolic SAR implementation. So, now it will switch parameters automatically without any manual work required.
Profitable Parabolic SAR indicator can be found here:
Parabolic SAR indicator can be found here:
Cerca negli script per "algo"
Self-Adjusting SuperTrendWhat is this tool?
This is an implementation of the well-known SuperTrend indicator that can adjust parameters on the fly to achieve a better profitability.
The algorithm was borrowed from Profitable SuperTrend and connected to the basic SuperTrend implementation. So, now it will switch parameters automatically without any manual work required.
Alerts
The same alerts as for the basic SuperTrend + special alert to notify user about parameters switching.
Profitable SuperTrend indicator can be found here:
SuperTrend indicator can be found here:
Good luck!
BSTtrend (and a quick note on trading psychology)Hi again :)
Script #2 for tonight, more to come :)
This one is a Pine transcription of a FXCM/LUA script called BSTrend
I used it years ago to trade index on very low timeframes with it. I'm always looking for oscillators that are more reactive than the traditional MACD. And even more reactive than the MACD Zero Lag
This is a proof of concept that Pinescript is my favorite trading programming language vs MT4/LUA/PRT. I just find it easier and the Pinescript community is helping a lot
With the BSTrend you can win but also lose. I see a lot of scripts out there but there is not a better or worst indicator. The key is HOW to use it.
In other words the key is your PSYCHOLOGY, without a rock-solid psychology, you'll end up committing a mistake even with G. himself whispering "BUY NOW", "SELL NOW" to your ears. (wait..... Do you mean this is happening only to me ????)
However, indicators help immensely in reducing the psychology pressure that we have to endure ... sometimes for days..... But better not to overcharge with dozens of indicators per chart and have a tool to detect whenever there is a confluence/convergence of your favorite indicators :) #algorithm #builder
I'll publish an educational post about next week
Those are the exact words that my mentor traders told me 6 years ago when I started trading
PS
____________________________________________________________
Be sure to hit the thumbs up as it shows me that I'm not doing this for nothing and will motivate to deliver more quality content in the future.
- I'm an officially approved PineEditor/LUA/MT4 approved mentor on codementor. You can request a coaching with me if you want and I'll teach you how to build kick-ass indicators and strategies
Jump on a 1 to 1 coaching with me
- You can also hire for a custom dev of your indicator/strategy/bot/chrome extension/python
Double Top Pattern IdentifierI believe the most of users know the Double Top Pattern, so I omit the introduction.
The algorithm uses 10 internal watchers to identify the incomplete M-pattern. If any of the watchers finds the pattern, the signal will be plotted on the chart. You can customize the lookback periods for the watchers as well as you can specify the precision of the difference between two possible tops.
By default, all watchers wait for bar closing to avoid repainting issues. You can switch off this option.
Additionally, you can shift up/down the signal labels to the preferred distance.
NOTE: the orange straight lines are not included.
Double Bottom Pattern IdentifierI think everybody knows the Double Bottom Pattern, so I omit the introduction.
The algorithm uses 8 internal watchers to identify the incomplete W-pattern. If any of the watchers finds the pattern, the signal will be plotted on the chart. You can customize the lookback periods for the watchers as well as you can specify the precision of the difference between two possible bottoms.
By default, all watchers wait for bar closing to avoid repainting issues. You can switch off this option.
Additionally, you can shift down the signal labels to the preferred distance and set an alert for a new pattern found.
NOTE: the blue straight lines are not included.
Profitable Vortex Indicator ScannerIntroduction
The Vortex Indicator is a technical indicator invented by Etienne Botes and Douglas Siepman (Technical Analysis of Stocks & Commodities, V.28:1 (January, 2010): "The Vortex Indicator") to identify the start of a new trend or the continuation of an existing trend within financial markets.
It is composed of two lines, +VI and -VI . +VI represents up trending momentum and -VI represents down trending momentum.
The most basic strategy is to use the crossovers as trade signals:
when +VI crosses above -VI , go Long
when -VI crosses above +VI , go Short
Exit when a crossover occurs in the opposite direction
What is this tool?
This tool is a performance scanner that uses a decision tree-based algorithm under the hood to find the most profitable period's setting for the indicator. It analyzes the range of periods between 2 to 100 and backtests the Vortex Indicator for each period using the strategy mentioned above across the entire history of an instrument.
Settings
Net Profit line is optional and can be hidden through settings.
Alerts
It has an alert that notifies when a more profitable period was detected.
NOTE : It does not change what has already been plotted.
Good luck!
[New series!] [Consistent Losing Strategies] 34 EMA Scalping//---------------------------INTRO------------------------------
Hi All!
Let me introduce myself as a semi-successful forex trader & lover of automation.
I've taken to algo trading and have been hunting down strategies (that usually use indicators) to automate, backtest, and hopefully implement in MT4.
Unfortunately, most strategies are complete bulls*** and the select cases that are shown to "prove" success are limited.
These strategy sources often do not provide useful analytics either.
I want to change that approach to trading! We can really benefit each other and the community by being methodical about backtesting
as well as evaluating our results with some kind of scoring heuristic.
As for what that standardized process looks like..well I'm still working on it.
I'm pretty much on Tv for multiple hours of the day, screening strategies via Pinescript and I'd like to start sharing my progress!
This is a new series I'd like to start on consistently losing strategies. I'll make all the code public, so if you think I've made a blunder
or approached a problem the wrong way, then drop me a DM or paste your fix into the comments.
//---------------------------STRAT------------------------------
34 EMA Scalping strategy (ref. forextradingstrategies4u )
How you're supposed to trade it:
BUY:
1. Market is in an down trend as shown by the 34 EMA
2. Price breaks above a downwards trend line
3. Price breaks above the 34 EMA
4. Look for a very bullish candlestick or chart pattern
SELL:
1. Look for the 34 EMA to show we are in an uptrend
2. Price breaks below an upwards sloping trend line
3. Price breaks below 34 EMA
4. Look for a bearish candlestick or a chart pattern
//---------------------------CONC------------------------------
Q: Why does it fail?
A: I believe this strategy relies too much on subjective input (aka, trendlines).
Q: Why does it fail as an algo?
A: The 34 EMA is no more predictive than any other EMA, although it does a good job at filtering out noise.
Q: Should I try it out?
A: No, it's trash. This is the proof that it is trash.
OmenImproved momentum-based trading algorithm based on my previous Merlin V6 script. Adjusted trade filtering rules to improve net return and profit factor on both long and short positions.
Works best with mid time-frame Heikin-Ashi data.
AlgoBuilder [Mean-Reversion] | FractalystWhat's the strategy's purpose and functionality?
This strategy is designed for both traders and investors looking to rely and trade based on historical and backtested data using automation.
The main goal is to build profitable mean-reversion strategies that outperform the underlying asset in terms of returns while minimizing drawdown.
For example, as for a benchmark, if the S&P 500 (SPX) has achieved an estimated 10% annual return with a maximum drawdown of -57% over the past 20 years, using this strategy with different entry and exit techniques, users can potentially seek ways to achieve a higher Compound Annual Growth Rate (CAGR) while maintaining a lower maximum drawdown.
Although the strategy can be applied to all markets and timeframes, it is most effective on stocks, indices, future markets, cryptocurrencies, and commodities and JPY currency pairs given their trending behaviors.
In trending market conditions, the strategy employs a combination of moving averages and diverse entry models to identify and capitalize on upward market movements. It integrates market structure-based moving averages and bands mechanisms across different timeframes and provides exit techniques, including percentage-based and risk-reward (RR) based take profit levels.
Additionally, the strategy has also a feature that includes a built-in probability function for traders who want to implement probabilities right into their trading strategies.
Performance summary, weekly, and monthly tables enable quick visualization of performance metrics like net profit, maximum drawdown, profit factor, average trade, average risk-reward ratio (RR), and more.
This aids optimization to meet specific goals and risk tolerance levels effectively.
-----
How does the strategy perform for both investors and traders?
The strategy has two main modes, tailored for different market participants: Traders and Investors.
Trading:
1. Trading:
- Designed for traders looking to capitalize on bullish trending markets.
- Utilizes a percentage risk per trade to manage risk and optimize returns.
- Suitable for active trading with a focus on mean-reversion and risk per trade approach.
◓: Mode | %: Risk percentage per trade
3. Investing:
- Geared towards investors who aim to capitalize on bullish trending markets without using leverage while mitigating the asset's maximum drawdown.
- Utilizes pre-define percentage of the equity to buy, hold, and manage the asset.
- Focuses on long-term growth and capital appreciation by fully investing in the asset during bullish conditions.
- ◓: Mode | %: Risk not applied (In investing mode, the strategy uses 10% of equity to buy the asset)
-----
What's is FRMA? How does the triple bands work? What are the underlying calculations?
Middle Band (FRMA):
The middle band is the core of the FRMA system. It represents the Fractalyst Moving Average, calculated by identifying the most recent external swing highs and lows in the market structure.
By determining these external swing pivot points, which act as significant highs and lows within the market range, the FRMA provides a unique moving average that adapts to market structure changes.
Upper Band:
The upper band shows the average price of the most recent external swing highs.
External swing highs are identified as the highest points between pivot points in the market structure.
This band helps traders identify potential overbought conditions when prices approach or exceed this upper band.
Lower Band:
The lower band shows the average price of the most recent external swing lows.
External swing lows are identified as the lowest points between pivot points in the market structure.
The script utilizes this band to identify potential oversold conditions, triggering entry signals as prices approach or drop below the lower band.
Adjustments Based on User Inputs:
Users can adjust how the upper and lower bands are calculated based on their preferences:
Upper/Lower: This method calculates the average bands using the prices of external swing highs and lows identified in the market.
Percentage Deviation from FRMA: Alternatively, users can opt to calculate the bands based on a percentage deviation from the middle FRMA. This approach provides flexibility to adjust the width of the bands relative to market conditions and volatility.
-----
What's the purpose of using moving averages in this strategy? What are the underlying calculations?
Using moving averages is a widely-used technique to trade with the trend.
The main purpose of using moving averages in this strategy is to filter out bearish price action and to only take trades when the price is trading ABOVE specified moving averages.
The script uses different types of moving averages with user-adjustable timeframes and periods/lengths, allowing traders to try out different variations to maximize strategy performance and minimize drawdowns.
By applying these calculations, the strategy effectively identifies bullish trends and avoids market conditions that are not conducive to profitable trades.
The MA filter allows traders to choose whether they want a specific moving average above or below another one as their entry condition.
This comparison filter can be turned on (>) or off.
For example, you can set the filter so that MA#1 > MA#2, meaning the first moving average must be above the second one before the script looks for entry conditions. This adds an extra layer of trend confirmation, ensuring that trades are only taken in more favorable market conditions.
⍺: MA Period | Σ: MA Timeframe
-----
What entry modes are used in this strategy? What are the underlying calculations?
The strategy by default uses two different techniques for the entry criteria with user-adjustable left and right bars: Breakout and Fractal.
1. Breakout Entries :
- The strategy looks for pivot high points with a default period of 3.
- It stores the most recent high level in a variable.
- When the price crosses above this most recent level, the strategy checks if all conditions are met and the bar is closed before taking the buy entry.
◧: Pivot high left bars period | ◨: Pivot high right bars period
2. Fractal Entries :
- The strategy looks for pivot low points with a default period of 3.
- When a pivot low is detected, the strategy checks if all conditions are met and the bar is closed before taking the buy entry.
◧: Pivot low left bars period | ◨: Pivot low right bars period
2. Hunt Entries :
- The strategy identifies a candle that wicks through the lower FRMA band.
- It waits for the next candle to close above the low of the wick candle.
- When this condition is met and the bar is closed, the strategy takes the buy entry.
By utilizing these entry modes, the strategy aims to capitalize on bullish price movements while ensuring that the necessary conditions are met to validate the entry points.
-----
What type of stop-loss identification method are used in this strategy? What are the underlying calculations?
Initial Stop-Loss:
1. ATR Based:
The Average True Range (ATR) is a method used in technical analysis to measure volatility. It is not used to indicate the direction of price but to measure volatility, especially volatility caused by price gaps or limit moves.
Calculation:
- To calculate the ATR, the True Range (TR) first needs to be identified. The TR takes into account the most current period high/low range as well as the previous period close.
The True Range is the largest of the following:
- Current Period High minus Current Period Low
- Absolute Value of Current Period High minus Previous Period Close
- Absolute Value of Current Period Low minus Previous Period Close
- The ATR is then calculated as the moving average of the TR over a specified period. (The default period is 14).
Example - ATR (14) * 2
⍺: ATR period | Σ: ATR Multiplier
2. ADR Based:
The Average Day Range (ADR) is an indicator that measures the volatility of an asset by showing the average movement of the price between the high and the low over the last several days.
Calculation:
- To calculate the ADR for a particular day:
- Calculate the average of the high prices over a specified number of days.
- Calculate the average of the low prices over the same number of days.
- Find the difference between these average values.
- The default period for calculating the ADR is 14 days. A shorter period may introduce more noise, while a longer period may be slower to react to new market movements.
Example - ADR (20) * 2
⍺: ADR period | Σ: ADR Multiplier
3. PL Based:
This method places the stop-loss at the low of the previous candle.
If the current entry is based on the hunt entry strategy, the stop-loss will be placed at the low of the candle that wicks through the lower FRMA band.
Example:
If the previous candle's low is 100, then the stop-loss will be set at 100.
This method ensures the stop-loss is placed just below the most recent significant low, providing a logical and immediate level for risk management.
Application in Strategy (ATR/ADR):
- The strategy calculates the current bar's ADR/ATR with a user-defined period.
- It then multiplies the ADR/ATR by a user-defined multiplier to determine the initial stop-loss level.
By using these methods, the strategy dynamically adjusts the initial stop-loss based on market volatility, helping to protect against adverse price movements while allowing for enough room for trades to develop.
Each market behaves differently across various timeframes, and it is essential to test different parameters and optimizations to find out which trailing stop-loss method gives you the desired results and performance.
-----
What type of break-even and take profit identification methods are used in this strategy? What are the underlying calculations?
For Break-Even:
Percentage (%) Based:
Moves the initial stop-loss to the entry price when the price reaches a certain percentage above the entry.
Calculation:
Break-even level = Entry Price * (1 + Percentage / 100)
Example:
If the entry price is $100 and the break-even percentage is 5%, the break-even level is $100 * 1.05 = $105.
Risk-to-Reward (RR) Based:
Moves the initial stop-loss to the entry price when the price reaches a certain RR ratio.
Calculation:
Break-even level = Entry Price + (Initial Risk * RR Ratio)
Example:
If the entry price is $100, the initial risk is $10, and the RR ratio is 2, the break-even level is $100 + ($10 * 2) = $120.
FRMA Based:
Moves the stop-loss to break-even when the price hits the FRMA level at which the entry was taken.
Calculation:
Break-even level = FRMA level at the entry
Example:
If the FRMA level at entry is $102, the break-even level is set to $102 when the price reaches $102.
For TP1 (Take Profit 1):
- You can choose to set a take profit level at which your position gets fully closed or 50% if the TP2 boolean is enabled.
- Similar to break-even, you can select either a percentage (%) or risk-to-reward (RR) based take profit level, allowing you to set your TP1 level as a percentage amount above the entry price or based on RR.
For TP2 (Take Profit 2):
- You can choose to set a take profit level at which your position gets fully closed.
- As with break-even and TP1, you can select either a percentage (%) or risk-to-reward (RR) based take profit level, allowing you to set your TP2 level as a percentage amount above the entry price or based on RR.
When Both Percentage (%) Based and RR Based Take Profit Levels Are Off:
The script will adjust the take profit level to the higher FRMA band set within user inputs.
Calculation:
Take profit level = Higher FRMA band length/timeframe specified by the user.
This ensures that when neither percentage-based nor risk-to-reward-based take profit methods are enabled, the strategy defaults to using the higher FRMA band as the take profit level, providing a consistent and structured approach to profit-taking.
For TP1 and TP2, it's specifying the price levels at which the position is partially or fully closed based on the chosen method (percentage or RR) above the entry price.
These calculations are crucial for managing risk and optimizing profitability in the strategy.
⍺: BE/TP type (%/RR) | Σ: how many RR/% above the current price
-----
What's the ADR filter? What does it do? What are the underlying calculations?
The Average Day Range (ADR) measures the volatility of an asset by showing the average movement of the price between the high and the low over the last several days.
The period of the ADR filter used in this strategy is tied to the same period you've used for your initial stop-loss.
Users can define the minimum ADR they want to be met before the script looks for entry conditions.
ADR Bias Filter:
- Compares the current bar ADR with the ADR (Defined by user):
- If the current ADR is higher, it indicates that volatility has increased compared to ADR (DbU).(⬆)
- If the current ADR is lower, it indicates that volatility has decreased compared to ADR (DbU).(⬇)
Calculations:
1. Calculate ADR:
- Average the high prices over the specified period.
- Average the low prices over the same period.
- Find the difference between these average values in %.
2. Current ADR vs. ADR (DbU):
- Calculate the ADR for the current bar.
- Calculate the ADR (DbU).
- Compare the two values to determine if volatility has increased or decreased.
By using the ADR filter, the strategy ensures that trades are only taken in favorable market conditions where volatility meets the user's defined threshold, thus optimizing entry conditions and potentially improving the overall performance of the strategy.
>: Minimum required ADR for entry | %: Current ADR comparison to ADR of 14 days ago.
-----
What's the probability filter? What are the underlying calculations?
The probability filter is designed to enhance trade entries by using buyside liquidity and probability analysis to filter out unfavorable conditions.
This filter helps in identifying optimal entry points where the likelihood of a profitable trade is higher.
Calculations:
1. Understanding Swing highs and Swing Lows
Swing High: A Swing High is formed when there is a high with 2 lower highs to the left and right.
Swing Low: A Swing Low is formed when there is a low with 2 higher lows to the left and right.
2. Understanding the purpose and the underlying calculations behind Buyside, Sellside and Equilibrium levels.
3. Understanding probability calculations
1. Upon the formation of a new range, the script waits for the price to reach and tap into equilibrium or the 50% level. Status: "⏸" - Inactive
2. Once equilibrium is tapped into, the equilibrium status becomes activated and it waits for either liquidity side to be hit. Status: "▶" - Active
3. If the buyside liquidity is hit, the script adds to the count of successful buyside liquidity occurrences. Similarly, if the sellside is tapped, it records successful sellside liquidity occurrences.
5. Finally, the number of successful occurrences for each side is divided by the overall count individually to calculate the range probabilities.
Note: The calculations are performed independently for each directional range. A range is considered bearish if the previous breakout was through a sellside liquidity. Conversely, a range is considered bullish if the most recent breakout was through a buyside liquidity.
Example - BSL > 55%
-----
What's the range length Filter? What are the underlying calculations?
The range length filter identifies the price distance between buyside and sellside liquidity levels in percentage terms. When enabled, the script only looks for entries when the minimum range length is met. This helps ensure that trades are taken in markets with sufficient price movement.
Calculations:
Range Length (%) = ( ( Buyside Level − Sellside Level ) / Current Price ) ×100
Range Bias Identification:
Bullish Bias: The current range price has broken above the previous external swing high.
Bearish Bias: The current range price has broken below the previous external swing low.
Example - Range length filter is enabled | Range must be above 1%
>: Minimum required range length for entry | %: Current range length percentage in a (Bullish/Bearish) range
-----
What's the day filter Filter, what does it do?
The day filter allows users to customize the session time and choose the specific days they want to include in the strategy session. This helps traders tailor their strategies to particular trading sessions or days of the week when they believe the market conditions are more favorable for their trading style.
Customize Session Time:
Users can define the start and end times for the trading session.
This allows the strategy to only consider trades within the specified time window, focusing on periods of higher market activity or preferred trading hours.
Select Days:
Users can select which days of the week to include in the strategy.
This feature is useful for excluding days with historically lower volatility or unfavorable trading conditions (e.g., Mondays or Fridays).
Benefits:
Focus on Optimal Trading Periods:
By customizing session times and days, traders can focus on periods when the market is more likely to present profitable opportunities.
Avoid Unfavorable Conditions:
Excluding specific days or times can help avoid trading during periods of low liquidity or high unpredictability, such as major news events or holidays.
Increased Flexibility: The filter provides increased flexibility, allowing traders to adapt the strategy to their specific needs and preferences.
Example - Day filter | Session Filter
θ: Session time | Exchange time-zone
-----
What tables are available in this script?
Table Type:
- Summary: Provides a general overview, displaying key performance parameters such as Net Profit, Profit Factor, Max Drawdown, Average Trade, Closed Trades and more.
Avg Trade: The sum of money gained or lost by the average trade generated by a strategy. Calculated by dividing the Net Profit by the overall number of closed trades. An important value since it must be large enough to cover the commission and slippage costs of trading the strategy and still bring a profit.
MaxDD: Displays the largest drawdown of losses, i.e., the maximum possible loss that the strategy could have incurred among all of the trades it has made. This value is calculated separately for every bar that the strategy spends with an open position.
Profit Factor: The amount of money a trading strategy made for every unit of money it lost (in the selected currency). This value is calculated by dividing gross profits by gross losses.
Avg RR: This is calculated by dividing the average winning trade by the average losing trade. This field is not a very meaningful value by itself because it does not take into account the ratio of the number of winning vs losing trades, and strategies can have different approaches to profitability. A strategy may trade at every possibility in order to capture many small profits, yet have an average losing trade greater than the average winning trade. The higher this value is, the better, but it should be considered together with the percentage of winning trades and the net profit.
Winrate: The percentage of winning trades generated by a strategy. Calculated by dividing the number of winning trades by the total number of closed trades generated by a strategy. Percent profitable is not a very reliable measure by itself. A strategy could have many small winning trades, making the percent profitable high with a small average winning trade, or a few big winning trades accounting for a low percent profitable and a big average winning trade. Most mean-reversion successful strategies have a percent profitability of 40-80% but are profitable due to risk management control.
BE Trades: Number of break-even trades, excluding commission/slippage.
Losing Trades: The total number of losing trades generated by the strategy.
Winning Trades: The total number of winning trades generated by the strategy.
Total Trades: Total number of taken traders visible your charts.
Net Profit: The overall profit or loss (in the selected currency) achieved by the trading strategy in the test period. The value is the sum of all values from the Profit column (on the List of Trades tab), taking into account the sign.
- Monthly: Displays performance data on a month-by-month basis, allowing users to analyze performance trends over each month.
- Weekly: Displays performance data on a week-by-week basis, helping users to understand weekly performance variations.
- OFF: Hides the performance table.
Profit Color:
- Allows users to set the color for representing profit in the performance table, helping to quickly distinguish profitable periods.
Loss Color:
- Allows users to set the color for representing loss in the performance table, helping to quickly identify loss-making periods.
These customizable tables provide traders with flexible and detailed performance analysis, aiding in better strategy evaluation and optimization.
-----
User-input styles and customizations:
To facilitate studying historical data, all conditions and rules can be applied to your charts. By plotting background colors on your charts, you'll be able to identify what worked and what didn't in certain market conditions.
Please note that all background colors in the style are disabled by default to enhance visualization.
-----
How to Use This Algobuilder to Create a Profitable Edge and System:
Choose Your Strategy mode:
- Decide whether you are creating an investing strategy or a trading strategy.
Select a Market:
- Choose a one-sided market such as stocks, indices, or cryptocurrencies.
Historical Data:
- Ensure the historical data covers at least 10 years of price action for robust backtesting.
Timeframe Selection:
- Choose the timeframe you are comfortable trading with. It is strongly recommended to use a timeframe above 15 minutes to minimize the impact of commissions/slippage on your profits.
Set Commission and Slippage:
- Properly set the commission and slippage in the strategy properties according to your broker or prop firm specifications.
Parameter Optimization:
- Use trial and error to test different parameters until you find the performance results you are looking for in the summary table or, preferably, through deep backtesting using the strategy tester.
Trade Count:
- Ensure the number of trades is 100 or more; the higher, the better for statistical significance.
Positive Average Trade:
- Make sure the average trade value is above zero.
(An important value since it must be large enough to cover the commission and slippage costs of trading the strategy and still bring a profit.)
Performance Metrics:
- Look for a high profit factor, and net profit with minimum drawdown.
- Ideally, aim for a drawdown under 20-30%, depending on your risk tolerance.
Refinement and Optimization:
- Try out different markets and timeframes.
- Continue working on refining your edge using the available filters and components to further optimize your strategy.
Automation:
- Once you’re confident in your strategy, you can use the automation section to connect the algorithm to your broker or prop firm.
- Trade a fully automated and backtested trading strategy, allowing for hands-free execution and management.
-----
What makes this strategy original?
1. Incorporating direct integration of probabilities into the strategy.
2. Utilizing built-in market structure-based moving averages across various timeframes.
4. Offering both investing and trading strategies, facilitating optimization from different perspectives.
5. Automation for efficient execution.
6. Providing a summary table for instant access to key parameters of the strategy.
-----
How to use automation?
For Traders:
1. Ensure the strategy parameters are properly set based on your optimized parameters.
2. Enter your PineConnector License ID in the designated field.
3. Specify the desired risk level.
4. Provide the Metatrader symbol.
5. Check for chart updates to ensure the automation table appears on the top right corner, displaying your License ID, risk, and symbol.
6. Set up an alert with the strategy selected as Condition and the Message as {{strategy.order.alert_message}}.
7. Activate the Webhook URL in the Notifications section, setting it as the official PineConnector webhook address.
8. Double-check all settings on PineConnector to ensure the connection is successful.
9. Create the alert for entry/exit automation.
For Investors:
1. Ensure the strategy parameters are properly set based on your optimized parameters.
2. Choose "Investing" in the user-input settings.
3. Create an alert with a specified name.
4. Customize the notifications tab to receive alerts via email.
5. Buying/selling alerts will be triggered instantly upon entry or exit order execution.
-----
Terms and Conditions | Disclaimer
Our charting tools are provided for informational and educational purposes only and should not be construed as financial, investment, or trading advice. They are not intended to forecast market movements or offer specific recommendations. Users should understand that past performance does not guarantee future results and should not base financial decisions solely on historical data.
Built-in components, features, and functionalities of our charting tools are the intellectual property of @Fractalyst Unauthorized use, reproduction, or distribution of these proprietary elements is prohibited.
By continuing to use our charting tools, the user acknowledges and accepts the Terms and Conditions outlined in this legal disclaimer and agrees to respect our intellectual property rights and comply with all applicable laws and regulations.
AlgoBuilder [Trend-Following] | FractalystWhat's the strategy's purpose and functionality?
This strategy is designed for both traders and investors looking to rely on and trade based on historical and backtested data using automation. The main goal is to build profitable trend-following strategies that outperform the underlying asset in terms of returns while minimizing drawdown. For example, as for a benchmark, if the S&P 500 (SPX) has achieved an estimated 10% annual return with a maximum drawdown of -57% over the past 20 years, using this strategy with different entry and exit techniques, users can potentially seek ways to achieve a higher Compound Annual Growth Rate (CAGR) while maintaining a lower maximum drawdown.
Although the strategy can be applied to all markets and timeframes, it is most effective on stocks, indices, future markets, cryptocurrencies, and commodities and JPY currency pairs given their trending behaviors.
In trending market conditions, the strategy employs a combination of moving averages and diverse entry models to identify and capitalize on upward market movements. It integrates market structure-based trailing stop-loss mechanisms across different timeframes and provides exit techniques, including percentage-based and risk-reward (RR) based take profit levels.
Additionally, the strategy has also a feature that includes a built-in probability and sentiment function for traders who want to implement probabilities and market sentiment right into their trading strategies.
Performance summary, weekly, and monthly tables enable quick visualization of performance metrics like net profit, maximum drawdown, compound annual growth rate (CAGR), profit factor, average trade, average risk-reward ratio (RR), and more. This aids optimization to meet specific goals and risk tolerance levels effectively.
-----
How does the strategy perform for both investors and traders?
The strategy has two main modes, tailored for different market participants: Traders and Investors.
Trading:
1. Trading (1x):
- Designed for traders looking to capitalize on bullish trending markets.
- Utilizes a percentage risk per trade to manage risk and optimize returns.
- Suitable for active trading with a focus on trend-following and risk management.
- (1x) This mode ensures no stacking of positions, allowing for only one running position or trade at a time.
◓: Mode | %: Risk percentage per trade
2. Trading (2x):
Similar to the 1x mode but allows for two pyramiding entries.
This approach enables traders to increase their position size as the trade moves in their favor, potentially enhancing profits during strong bullish trends.
◓: Mode | %: Risk percentage per trade
3. Investing:
- Geared towards investors who aim to capitalize on bullish trending markets without using leverage while mitigating the asset's maximum drawdown.
- Utilizes 100% of the equity to buy, hold, and manage the asset.
- Focuses on long-term growth and capital appreciation by fully investing in the asset during bullish conditions.
- ◓: Mode | %: Risk not applied (In investing mode, the strategy uses 100% of equity to buy the asset)
-----
What's the purpose of using moving averages in this strategy? What are the underlying calculations?
Using moving averages is a widely-used technique to trade with the trend.
The main purpose of using moving averages in this strategy is to filter out bearish price action and to only take trades when the price is trading ABOVE specified moving averages.
The script uses different types of moving averages with user-adjustable timeframes and periods/lengths, allowing traders to try out different variations to maximize strategy performance and minimize drawdowns.
By applying these calculations, the strategy effectively identifies bullish trends and avoids market conditions that are not conducive to profitable trades.
The MA filter allows traders to choose whether they want a specific moving average above or below another one as their entry condition.
This comparison filter can be turned on (>/<) or off.
For example, you can set the filter so that MA#1 > MA#2, meaning the first moving average must be above the second one before the script looks for entry conditions. This adds an extra layer of trend confirmation, ensuring that trades are only taken in more favorable market conditions.
MA #1: Fast MA | MA #2: Medium MA | MA #3: Slow MA
⍺: MA Period | Σ: MA Timeframe
-----
What entry modes are used in this strategy? What are the underlying calculations?
The strategy by default uses two different techniques for the entry criteria with user-adjustable left and right bars: Breakout and Fractal.
1. Breakout Entries :
- The strategy looks for pivot high points with a default period of 3.
- It stores the most recent high level in a variable.
- When the price crosses above this most recent level, the strategy checks if all conditions are met and the bar is closed before taking the buy entry.
◧: Pivot high left bars period | ◨: Pivot high right bars period
2. Fractal Entries :
- The strategy looks for pivot low points with a default period of 3.
- When a pivot low is detected, the strategy checks if all conditions are met and the bar is closed before taking the buy entry.
◧: Pivot low left bars period | ◨: Pivot low right bars period
By utilizing these entry modes, the strategy aims to capitalize on bullish price movements while ensuring that the necessary conditions are met to validate the entry points.
-----
What type of stop-loss identification method are used in this strategy? What are the underlying calculations?
Initial Stop-Loss:
1. ATR Based:
The Average True Range (ATR) is a method used in technical analysis to measure volatility. It is not used to indicate the direction of price but to measure volatility, especially volatility caused by price gaps or limit moves.
Calculation:
- To calculate the ATR, the True Range (TR) first needs to be identified. The TR takes into account the most current period high/low range as well as the previous period close.
The True Range is the largest of the following:
- Current Period High minus Current Period Low
- Absolute Value of Current Period High minus Previous Period Close
- Absolute Value of Current Period Low minus Previous Period Close
- The ATR is then calculated as the moving average of the TR over a specified period. (The default period is 14).
Example - ATR (14) * 1.5
⍺: ATR period | Σ: ATR Multiplier
2. ADR Based:
The Average Day Range (ADR) is an indicator that measures the volatility of an asset by showing the average movement of the price between the high and the low over the last several days.
Calculation:
- To calculate the ADR for a particular day:
- Calculate the average of the high prices over a specified number of days.
- Calculate the average of the low prices over the same number of days.
- Find the difference between these average values.
- The default period for calculating the ADR is 14 days. A shorter period may introduce more noise, while a longer period may be slower to react to new market movements.
Example - ADR (14) * 1.5
⍺: ADR period | Σ: ADR Multiplier
Application in Strategy:
- The strategy calculates the current bar's ADR/ATR with a user-defined period.
- It then multiplies the ADR/ATR by a user-defined multiplier to determine the initial stop-loss level.
By using these methods, the strategy dynamically adjusts the initial stop-loss based on market volatility, helping to protect against adverse price movements while allowing for enough room for trades to develop.
Trailing Stop-Loss:
One of the key elements of this strategy is its ability to detec buyside and sellside liquidity levels across multiple timeframes to trail the stop-loss once the trade is in running profits.
By utilizing this approach, the strategy allows enough room for price to run.
There are two built-in trailing stop-loss (SL) options you can choose from while in a trade:
1. External Trailing Stop-Loss:
- Uses sell-side liquidity to trail your stop-loss, allowing price to consolidate before continuation. This method is less aggressive and provides more room for price fluctuations.
Example - External - Wick below the trailing SL - 12H trailing timeframe
⍺: Exit type | Σ: Trailing stop-loss timeframe
2. Internal Trailing Stop-Loss:
- Uses the most recent swing low with a period of 2 to trail your stop-loss. This method is more aggressive compared to the external trailing stop-loss, as it tightens the stop-loss closer to the current price action.
Example - Internal - Close below the trailing SL - 6H trailing timeframe
⍺: Exit type | Σ: Trailing stop-loss timeframe
Each market behaves differently across various timeframes, and it is essential to test different parameters and optimizations to find out which trailing stop-loss method gives you the desired results and performance.
-----
What type of break-even and take profit identification methods are used in this strategy? What are the underlying calculations?
For Break-Even:
- You can choose to set a break-even level at which your initial stop-loss moves to the entry price as soon as it hits, and your trailing stop-loss gets activated (if enabled).
- You can select either a percentage (%) or risk-to-reward (RR) based break-even, allowing you to set your break-even level as a percentage amount above the entry price or based on RR.
For TP1 (Take Profit 1):
- You can choose to set a take profit level at which your position gets fully closed or 50% if the TP2 boolean is enabled.
- Similar to break-even, you can select either a percentage (%) or risk-to-reward (RR) based take profit level, allowing you to set your TP1 level as a percentage amount above the entry price or based on RR.
For TP2 (Take Profit 2):
- You can choose to set a take profit level at which your position gets fully closed.
- As with break-even and TP1, you can select either a percentage (%) or risk-to-reward (RR) based take profit level, allowing you to set your TP2 level as a percentage amount above the entry price or based on RR.
The underlying calculations involve determining the price levels at which these actions are triggered. For break-even, it moves the initial stop-loss to the entry price and activate the trailing stop-loss once the break-even level is reached.
For TP1 and TP2, it's specifying the price levels at which the position is partially or fully closed based on the chosen method (percentage or RR) above the entry price.
These calculations are crucial for managing risk and optimizing profitability in the strategy.
⍺: BE/TP type (%/RR) | Σ: how many RR/% above the current price
-----
What's the ADR filter? What does it do? What are the underlying calculations?
The Average Day Range (ADR) measures the volatility of an asset by showing the average movement of the price between the high and the low over the last several days.
The period of the ADR filter used in this strategy is tied to the same period you've used for your initial stop-loss.
Users can define the minimum ADR they want to be met before the script looks for entry conditions.
ADR Bias Filter:
- Compares the current bar ADR with the ADR (Defined by user):
- If the current ADR is higher, it indicates that volatility has increased compared to ADR (DbU).(⬆)
- If the current ADR is lower, it indicates that volatility has decreased compared to ADR (DbU).(⬇)
Calculations:
1. Calculate ADR:
- Average the high prices over the specified period.
- Average the low prices over the same period.
- Find the difference between these average values in %.
2. Current ADR vs. ADR (DbU):
- Calculate the ADR for the current bar.
- Calculate the ADR (DbU).
- Compare the two values to determine if volatility has increased or decreased.
By using the ADR filter, the strategy ensures that trades are only taken in favorable market conditions where volatility meets the user's defined threshold, thus optimizing entry conditions and potentially improving the overall performance of the strategy.
>: Minimum required ADR for entry | %: Current ADR comparison to ADR of 14 days ago.
-----
What's the probability filter? What are the underlying calculations?
The probability filter is designed to enhance trade entries by using buyside liquidity and probability analysis to filter out unfavorable conditions.
This filter helps in identifying optimal entry points where the likelihood of a profitable trade is higher.
Calculations:
1. Understanding Swing highs and Swing Lows
Swing High: A Swing High is formed when there is a high with 2 lower highs to the left and right.
Swing Low: A Swing Low is formed when there is a low with 2 higher lows to the left and right.
2. Understanding the purpose and the underlying calculations behind Buyside, Sellside and Equilibrium levels.
3. Understanding probability calculations
1. Upon the formation of a new range, the script waits for the price to reach and tap into equilibrium or the 50% level. Status: "⏸" - Inactive
2. Once equilibrium is tapped into, the equilibrium status becomes activated and it waits for either liquidity side to be hit. Status: "▶" - Active
3. If the buyside liquidity is hit, the script adds to the count of successful buyside liquidity occurrences. Similarly, if the sellside is tapped, it records successful sellside liquidity occurrences.
5. Finally, the number of successful occurrences for each side is divided by the overall count individually to calculate the range probabilities.
Note: The calculations are performed independently for each directional range. A range is considered bearish if the previous breakout was through a sellside liquidity. Conversely, a range is considered bullish if the most recent breakout was through a buyside liquidity.
Example - BSL > 50%
-----
What's the sentiment Filter? What are the underlying calculations?
Sentiment filter aims to calculate the percentage level of bullish or bearish fluctuations within equally divided price sections, in the latest price range.
Calculations:
This filter calculates the current sentiment by identifying the highest swing high and the lowest swing low, then evenly dividing the distance between them into percentage amounts. If the price is above the 50% mark, it indicates bullishness, whereas if it's below 50%, it suggests bearishness.
Sentiment Bias Identification:
Bullish Bias: The current price is trading above the 50% daily range.
Bearish Bias: The current price is trading below the 50% daily range.
Example - Sentiment Enabled | Bullish degree above 50% | Bullish sentimental bias
>: Minimum required sentiment for entry | %: Current sentimental degree in a (Bullish/Bearish) sentimental bias
-----
What's the range length Filter? What are the underlying calculations?
The range length filter identifies the price distance between buyside and sellside liquidity levels in percentage terms. When enabled, the script only looks for entries when the minimum range length is met. This helps ensure that trades are taken in markets with sufficient price movement.
Calculations:
Range Length (%) = ( ( Buyside Level − Sellside Level ) / Current Price ) ×100
Range Bias Identification:
Bullish Bias: The current range price has broken above the previous external swing high.
Bearish Bias: The current range price has broken below the previous external swing low.
Example - Range length filter is enabled | Range must be above 5% | Price must be in a bearish range
>: Minimum required range length for entry | %: Current range length percentage in a (Bullish/Bearish) range
-----
What's the day filter Filter, what does it do?
The day filter allows users to customize the session time and choose the specific days they want to include in the strategy session. This helps traders tailor their strategies to particular trading sessions or days of the week when they believe the market conditions are more favorable for their trading style.
Customize Session Time:
Users can define the start and end times for the trading session.
This allows the strategy to only consider trades within the specified time window, focusing on periods of higher market activity or preferred trading hours.
Select Days:
Users can select which days of the week to include in the strategy.
This feature is useful for excluding days with historically lower volatility or unfavorable trading conditions (e.g., Mondays or Fridays).
Benefits:
Focus on Optimal Trading Periods:
By customizing session times and days, traders can focus on periods when the market is more likely to present profitable opportunities.
Avoid Unfavorable Conditions:
Excluding specific days or times can help avoid trading during periods of low liquidity or high unpredictability, such as major news events or holidays.
Increased Flexibility: The filter provides increased flexibility, allowing traders to adapt the strategy to their specific needs and preferences.
Example - Day filter | Session Filter
θ: Session time | Exchange time-zone
-----
What tables are available in this script?
Table Type:
- Summary: Provides a general overview, displaying key performance parameters such as Net Profit, Profit Factor, Max Drawdown, Average Trade, Closed Trades, Compound Annual Growth Rate (CAGR), MAR and more.
CAGR: It calculates the 'Compound Annual Growth Rate' first and last taken trades on your chart. The CAGR is a notional, annualized growth rate that assumes all profits are reinvested. It only takes into account the prices of the two end points — not drawdowns, so it does not calculate risk. It can be used as a yardstick to compare the performance of two strategies. Since it annualizes values, it requires a minimum 4H timeframe to display the CAGR value. annualizing returns over smaller periods of times doesn't produce very meaningful figures.
MAR: Measure of return adjusted for risk: CAGR divided by Max Drawdown. Indicates how comfortable the system might be to trade. Higher than 0.5 is ideal, 1.0 and above is very good, and anything above 3.0 should be considered suspicious and you need to make sure the total number of trades are high enough by running a Deep Backtest in strategy tester. (available for TradingView Premium users.)
Avg Trade: The sum of money gained or lost by the average trade generated by a strategy. Calculated by dividing the Net Profit by the overall number of closed trades. An important value since it must be large enough to cover the commission and slippage costs of trading the strategy and still bring a profit.
MaxDD: Displays the largest drawdown of losses, i.e., the maximum possible loss that the strategy could have incurred among all of the trades it has made. This value is calculated separately for every bar that the strategy spends with an open position.
Profit Factor: The amount of money a trading strategy made for every unit of money it lost (in the selected currency). This value is calculated by dividing gross profits by gross losses.
Avg RR: This is calculated by dividing the average winning trade by the average losing trade. This field is not a very meaningful value by itself because it does not take into account the ratio of the number of winning vs losing trades, and strategies can have different approaches to profitability. A strategy may trade at every possibility in order to capture many small profits, yet have an average losing trade greater than the average winning trade. The higher this value is, the better, but it should be considered together with the percentage of winning trades and the net profit.
Winrate: The percentage of winning trades generated by a strategy. Calculated by dividing the number of winning trades by the total number of closed trades generated by a strategy. Percent profitable is not a very reliable measure by itself. A strategy could have many small winning trades, making the percent profitable high with a small average winning trade, or a few big winning trades accounting for a low percent profitable and a big average winning trade. Most trend-following successful strategies have a percent profitability of 15-40% but are profitable due to risk management control.
BE Trades: Number of break-even trades, excluding commission/slippage.
Losing Trades: The total number of losing trades generated by the strategy.
Winning Trades: The total number of winning trades generated by the strategy.
Total Trades: Total number of taken traders visible your charts.
Net Profit: The overall profit or loss (in the selected currency) achieved by the trading strategy in the test period. The value is the sum of all values from the Profit column (on the List of Trades tab), taking into account the sign.
- Monthly: Displays performance data on a month-by-month basis, allowing users to analyze performance trends over each month.
- Weekly: Displays performance data on a week-by-week basis, helping users to understand weekly performance variations.
- OFF: Hides the performance table.
Labels:
- OFF: Hides labels in the performance table.
- PnL: Shows the profit and loss of each trade individually, providing detailed insights into the performance of each trade.
- Range: Shows the range length and Average Day Range (ADR), offering additional context about market conditions during each trade.
Profit Color:
- Allows users to set the color for representing profit in the performance table, helping to quickly distinguish profitable periods.
Loss Color:
- Allows users to set the color for representing loss in the performance table, helping to quickly identify loss-making periods.
These customizable tables provide traders with flexible and detailed performance analysis, aiding in better strategy evaluation and optimization.
-----
User-input styles and customizations:
To facilitate studying historical data, all conditions and rules can be applied to your charts. By plotting background colors on your charts, you'll be able to identify what worked and what didn't in certain market conditions.
Please note that all background colors in the style are disabled by default to enhance visualization.
-----
How to Use This Algobuilder to Create a Profitable Edge and System:
Choose Your Strategy mode:
- Decide whether you are creating an investing strategy or a trading strategy.
Select a Market:
- Choose a one-sided market such as stocks, indices, or cryptocurrencies.
Historical Data:
- Ensure the historical data covers at least 10 years of price action for robust backtesting.
Timeframe Selection:
- Choose the timeframe you are comfortable trading with. It is strongly recommended to use a timeframe above 15 minutes to minimize the impact of commissions on your profits.
Set Commission and Slippage:
- Properly set the commission and slippage in the strategy properties according to your broker or prop firm specifications.
Parameter Optimization:
- Use trial and error to test different parameters until you find the performance results you are looking for in the summary table or, preferably, through deep backtesting using the strategy tester.
Trade Count:
- Ensure the number of trades is 100 or more; the higher, the better for statistical significance.
Positive Average Trade:
- Make sure the average trade value is above zero.
(An important value since it must be large enough to cover the commission and slippage costs of trading the strategy and still bring a profit.)
Performance Metrics:
- Look for a high profit factor, MAR (Mar Ratio), CAGR (Compound Annual Growth Rate), and net profit with minimum drawdown. Ideally, aim for a drawdown under 20-30%, depending on your risk tolerance.
Refinement and Optimization:
- Try out different markets and timeframes.
- Continue working on refining your edge using the available filters and components to further optimize your strategy.
Automation:
- Once you’re confident in your strategy, you can use the automation section to connect the algorithm to your broker or prop firm.
- Trade a fully automated and backtested trading strategy, allowing for hands-free execution and management.
-----
What makes this strategy original?
1. Incorporating direct integration of probabilities into the strategy.
2. Leveraging market sentiment to construct a profitable approach.
3. Utilizing built-in market structure-based trailing stop-loss mechanisms across various timeframes.
4. Offering both investing and trading strategies, facilitating optimization from different perspectives.
5. Automation for efficient execution.
6. Providing a summary table for instant access to key parameters of the strategy.
-----
How to use automation?
For Traders:
1. Ensure the strategy parameters are properly set based on your optimized parameters.
2. Enter your PineConnector License ID in the designated field.
3. Specify the desired risk level.
4. Provide the Metatrader symbol.
5. Check for chart updates to ensure the automation table appears on the top right corner, displaying your License ID, risk, and symbol.
6. Set up an alert with the strategy selected as Condition and the Message as {{strategy.order.alert_message}}.
7. Activate the Webhook URL in the Notifications section, setting it as the official PineConnector webhook address.
8. Double-check all settings on PineConnector to ensure the connection is successful.
9. Create the alert for entry/exit automation.
For Investors:
1. Ensure the strategy parameters are properly set based on your optimized parameters.
2. Choose "Investing" in the user-input settings.
3. Create an alert with a specified name.
4. Customize the notifications tab to receive alerts via email.
5. Buying/selling alerts will be triggered instantly upon entry or exit order execution.
----
Strategy Properties
This script backtest is done on 4H COINBASE:BTCUSD , using the following backtesting properties:
Balance: $5000
Order Size: 10% of the equity
Risk % per trade: 1%
Commission: 0.04% (Default commission percentage according to TradingView competitions rules)
Slippage: 75 ticks
Pyramiding: 2
-----
Terms and Conditions | Disclaimer
Our charting tools are provided for informational and educational purposes only and should not be construed as financial, investment, or trading advice. They are not intended to forecast market movements or offer specific recommendations. Users should understand that past performance does not guarantee future results and should not base financial decisions solely on historical data.
Built-in components, features, and functionalities of our charting tools are the intellectual property of @Fractalyst Unauthorized use, reproduction, or distribution of these proprietary elements is prohibited.
By continuing to use our charting tools, the user acknowledges and accepts the Terms and Conditions outlined in this legal disclaimer and agrees to respect our intellectual property rights and comply with all applicable laws and regulations.
BotDCA | Algorithmic Smart DCA Bot🌌 What the script does, how it does ?
At the heart of its algorithm, this script incorporates the concept of Dollar Cost Averaging (DCA), a method of periodically allocating funds to an asset to mitigate the effects of market volatility.
Before we start, it's important to clarify that the script is adapted for the cryptocurrency market on USDT & USDC pairs in Spot, and on the Daily timeframe (D).
For this reason, and to optimize profits, the script will generate very few buy and sell positions.
Please also note that the script does not repaint.
Essentially, BotDCA generates buy and sell orders.
These buy and sell orders are generated using the following logic :
BUYING LOGIC :
• Volume : Current volume is compared with a linear percentile of volume over a short period.
This means that if current volume is higher than observed volumes over this period, the volume criteria is considered valid.
• Momentum & Volatility : The Average True Range (ATR) indicator adjusted by a square root is used as a measure of volatility.
Momentum is then calculated as the difference between the current closing price and a short moving average, normalized by this adjusted volatility.
The oversold condition is validated when momentum exceeds a specific level.
For the buy order to be triggered, the volume, momentum and volatility criteria must be validated.
SELLING LOGIC :
• Volume : Similar to the buy logic, the volume criteria is validated when current volume is higher than previous volumes.
• Momentum & Volatility : Volatility is measured using the adjusted ATR indicator, similar to the buy logic.
An overbought condition is validated when normalized momentum, calculated as the difference between the current closing price and a volatility-adjusted short-period moving average, exceeds a specific level.
• Trend : The general market trend is considered for the sell logic.
The trend criteria is validated when the current moving average is higher than that of the previous period.
For the sell order to be triggered, the volume, momentum, volatility and trend criteria must be validated.
These orders are also adjusted according to what the user defines as buy and sell settings :
🔵 Buying settings
• Quantity per order ($) : Defines the amount in stable coins to be invested for each buy order.
• └> Mult. quantity (x) : Multiplication factor applied to the buy quantity for successive orders, enabling the investment to be increased in the event of a price fall.
Example : If Quantity per order is $200 and Mult. quantity is x2, then the second buy order will be $400, the third buy order will be $800, the fourth buy order will be $1600 ...
After a sell order, the multiplier is cancelled.
Note : If value is set to 1 : Disabled
• └> Max. quantity (x) : Sets a maximum purchase quantity limit, preventing orders from exceeding this amount.
Example : If Quantity per order is $200, Mult. quantity is x2, and Max. quantity is $700, then the second buy order will be $400, the third buy order will be $700, the fourth buy order will be $700 ...
Note : If value is less than Quantity or is set to 0 : Disabled
• └> If Price > Average price : Enable or disable quantity multiplier when current price exceeds average price.
• Min. delay (in days) : Establishes a minimum interval in days between two successive purchases to avoid investing too close together.
Example : By default the time interval for the bot is set to D, so if you set 20 as the value, the bot will wait at least 20 days between buy orders before entering a position.
Note : If value is set to 0 : Disabled
• └> Min. deviation (%) : Defines the minimum price difference in percent to trigger a new purchase after the first.
Note : If value is set to 0 : Disabled
• └> Mult. deviation (x) : Apply a multiplication factor to the price differential for successive buys, progressively increasing the purchase interval.
Example : If Mult. deviation is 10% and Min. deviation is x2, then between the first and second buy orders the minimum deviation will be 10%, between the second and third buy orders the minimum deviation will be 20%, between the third and fourth buy orders the minimum deviation will be 40%...
After a sell order, the multiplier is cancelled.
Note : If value is set to 1 : Disabled
• Display help for these settings : On chart, displays help text about buying settings.
🟢 Selling settings
• Quantity (% position) : Percentage of the position to be sold in each sell order.
Example : If the first buy order is 0.1 BTC and the second buy order is 0.2 BTC, then the position is 0.3 BTC.
If Quantity (% position) is set to 20, then the first sell order will be 0.06 BTC (20% of 0.3 BTC), the second sell order will be 0.048 BTC (20% of 0.24 BTC) ...
(Auto ?) : If this option is enabled, the bot will automatically sell part of your position.
The quantity sold depends on the volatility of the last 30 days : the higher the volatility, the more it sells, and the lower the volatility, the less it sells.
The minimum sale defined is 10%, while the maximum sale will not exceed 50%.
• └> Min. deviation (%) : Minimum percentage of price deviation to trigger a sale.
Example : If Average price of BTC is 30 000 USDT and Min. deviation is 10%, then the first sell order will be at least 33 000 USDT, the second sell order will be at least 36 300 USDT ...
Note : If value is set to 0 : Disabled
(Auto ?) : If this option is activated, the bot automatically determines the sell minimum deviation percentage.
The deviation set depends on the volatility of the last 30 days : the higher the volatility, the higher the deviation, and the lower the volatility, the lower the deviation.
A start and end date defines when the script should generate buy and sell positions :
📆 Date settings
• Start date : Indicate the script launch date (If it’s a new launch, you must choose today’s date before creating your TradingView alert).
• End date : Enter the date on which you want the script to stop.
Other parameters can be configured to fine-tune buys and sells :
⏲️ Trading session settings
• Days : Allows you to select the specific days on which the script will be active, offering the possibility of excluding certain days.
🏛️ Exchange settings
• Fees (%) : Indicate the percentage fee applied by the exchange platform on each transaction.
• Price spread (%) : Specifies the price spread to be considered for realistic order adjustment.
🤖 Bot settings
• Add to Position ? : Allows tokens to be manually added to the position when the script is launched.
• └> How much ? (Base) : Number of tokens to add.
• └> Cost ? ($) : Stable coins amount of addition to position.
These settings are included in the calculation when an order is triggered.
Advanced visual customization options can be modified :
🎨 Visual settings
• TradingView Theme : Choose between a light or dark theme for the bot interface.
• Panel : Enables or disables the display of the information panel on the graph, and modifies its size and alignment.
• Positions : Show or hide buy and sell position labels on the chart, and modify their size and appearance (several display modes : basic, simple, advanced).
• Average price : Enables or disables the display of the average price line and modifies its size and color.
• Simulator : Enables or disables the ATH percentage-based simulator line and modifies its size and color.
• Trading session : Displays or hides the background of specified trading sessions.
• Hide warning messages ? : Hide or show warning messages on graph.
A profit simulator can be configured :
🕹️ Simulator settings
• Price (% ATH) : Determines a percentage of the token's ATH to simulate potential gains if the token reaches this price level again.
Users can also activate buying and selling alerts in the settings :
🤖 Bot settings
• START THE BOT ? » ALERTS ON : REAL MODE : Enable or disable the bot to execute real orders based on alerts.
• Mode FULL Auto ? : Enables the Mode FULL Auto, requiring additional configuration for connection to exchange APIs.
• └> Password FULL Auto : Password required to activate the Mode FULL Auto.
By activating FULL Auto Mode with TradingView's webhook system, the user can connect the script to the APIs of compatible exchanges, and receive notifications of buy and sell orders by e-mail, Telegram or Discord.
On the chart, a panel displays a variety of information, and also a backtesting / result of the script.
Here is a list of elements displayed by the panel :
💻 Informations panel
General :
• Pair
• Exchange
• └> Fees
• └> Price spread
• Period
• Start date
• End date
• Trading days
Buying
• Quantity per order
• └> Mult. quantity
• └> Max. quantity
• └> If Price > Average price
• └> Min. deviation
• └> Mult. deviation
• Min. delay (in days)
Selling
• Quantity (% position)
• └> Min. deviation
Exchange
• Next buy
• Next sell
Backtesting / Results
• No. of buys
• No. of sells
• Average price
• Actual position
• Actual net profit
• └> Simulator
• Last buy
• Last sell
🌌 About default settings
Default settings are defined as an example.
Above in the description, you will find details of each setting.
Here's a description of how user-defined setting categories affect the script's buy and sell positions :
📆 Date : Determines between which time ranges buy and sell positions are generated.
⏲️ Trading session : Exclude selected days disables buy positions on deselected days.
🕹️ Simulator : Does not affect buying and selling. It is for information purposes only.
🏛️ Exchange : Fees should be as close as possible to your exchange and price spread depends on your tolerance. This affects buy and sell position.
🔵 Buy : Depending on your investment capacity and risk management, these settings have an impact on buy positions.
🟢 Sell : These settings determine profit-taking. This has an impact on sell positions.
🎨 Visual : Does not affect buy and sell positions. For information only.
🤖 Bot : This part is mainly used to use the script with TradingView alerts. Only the 'Add to position' option affects buy and sell positions.
Once you've set all your settings for the script, you can view the backtesting displayed in the panel on the chart.
🌌 How to use it ?
To summarize how to use this script successfully, please follow these steps :
1. First, choose a cryptocurrency pair (e.g. BTC/USDT).
2. Set a start date (preferably today's date if it's your first launch) and an end date.
3. According on your preferences, you can choose specific trading days, or default to all days of the week.
4. Depending on your exchange, you can set fees and a price spread.
5. Then, based on your portfolio management and investment capabilities, define buy and sell parameters.
6. You can set the bot's appearance on the chart.
7. Once you have configured your settings, you can choose a simulation price.
8. Finally, to activate TradingView Alerts, check the box START THE BOT ? ALERTS ON : REAL MODE.
🌌 Overview
Here's a preview of the script with a few screenshots :
BTC/USDT • Basic display
SOL/USDT • Simple display
XRP/USDT • Advanced display
MATIC/USDT • Light theme
Script settings
🌌 Why do I have to pay ?
BotDCA uses advanced indicators and complex calculations to identify buying and selling opportunities.
With TradingView's alert system, it automates your investment strategy, eliminating the need for constant manual analysis and constant market monitoring.
This saves you precious time.
With adjustable buy and sell settings, you can customize the script to suit your risk tolerance and investment objectives.
This flexibility adds considerable value, allowing you to optimize the script to suit your situation.
Paid access ensures that you benefit from ongoing support and updates, which are essential for maintaining the script's effectiveness.
🌌 Disclaimer
This script is provided for educational purposes only and should not be construed as investment advice.
Users should be aware that trading in the financial markets involves risks, and that past performance of a script does not guarantee future results.
It is strongly recommended that you carry out a detailed analysis and consider your financial situation and risk tolerance before committing yourself to trading/investing.
[blackcat] L5 Alchemy Gold (ALGOLD)" L5 Alchemy Gold (ALGOLD)" indicator is a trend-following indicator that blends volume and price data to create a MACD-like oscillator, aiming to address the lagging issue typical in price-only indicators. The integration of leading volume information with lagging price data is a smart approach to create more timely signals. Additionally, incorporating a volatility filter to reduce false signals during sideways markets is a thoughtful enhancement.
It is shaping up to be quite comprehensive. It includes:
- An adaptive filter for smoothing price and volume data.
- A volatility filter based on Average True Range (ATR).
- A trigger moving average for generating smoothed price information.
- An ALMA (Arnaud Legoux Moving Average) for further filtering of price and volume.
- A divergence detector to identify potential trend reversals.
Entry Criteria : A composite crossover and crossunder of the fast and slow lines of the ALGOLD oscillator.
Exit Criteria : A crossover and crossunder of the fast and slow lines of the ALGOLD oscillator, but using a lower time frame for more sensitivity.
The input parameters of " L5 Alchemy Gold (ALGOLD)" indicator, are categorized into three groups:
Group 1, Alchemy Setting:
Alchemy Sharpness (Default: 7) - Controls the sharpness of the adaptive filter.
Alchemy Period (Default: 55) - Determines the smoothness of the oscillator.
Group 2, DVATAR Setting:
DVATR Length (Default: 11) - Sets the period length for the DVATR, similar to ATR's Length.
DVATR Threshold (Default: 0.07) - Adjusts sensitivity for sideways market detection.
Smooth Length (Default: 21) - Smoothens the DVATR output, balancing with volatility detection.
Group 3, Divergence Setting:
Parameters like Pivot Lookback, Max/Min of Lookback Range - Sets the sensitivity for divergence detection.
Options to enable or disable plots for various types of divergence (Bullish, Hidden Bullish, Bearish, Hidden Bearish).
" L5 Alchemy Gold (ALGOLD)" indicator are vivid and intuitive:
Candle Bar Color :
Gradient color changes to indicate trend strength, with warmer colors for bullish and cooler colors for bearish trends.
Line Colors and Shapes :
Green color represents the fast line, red for the slow line.
Crosses of these lines signal entries (triangles) and exits (cross shapes).
A band is created between these lines, filled with green for uptrends and red for downtrends.
Histogram :
Red histogram for above 0 and uptrend.
Blue histogram for above 0 and retracement.
Green histogram for below 0 and downtrend.
Yellow histogram for below 0 and bounce-up.
YinYang MomentumOverview:
YinYang Momentum is a Price, Volume and Momentum Oscillator. Its job is to help you see swings in momentum and the strength of it. It also creates signals (Blood Diamond (Bear) and Support Cross (Bull)) where these momentum swings may occur. YinYang Momentum features 3 Price and 3 Volume 'Mountains with Ice'. There are Predictive, Regular and Confirming Mountains. You have the ability to overlay them on top of each other which helps to decipher momentum swings. The Volume Mountains are very important for showing the strength behind the Price Mountains and their Signals. If you look, you'll notice, as the 'Ice' starts to curve into the 'Mountains' it signals a potential shift in Momentum. The green Mountain is the Predictive, the Blue is the Regular and the Purple is the Confirming. You'll also notice that the Predictive Mountains movements happen first and move much more drastically. When you notice the regular starts to follow suit, there is a potential for a momentum shift. Shortly after, a signal will occur if this shift is actually happening. You can also check the Confirming Mountain for more confirmation (however, leaving the Confirming Mountain active can be a little confusing and make it harder to read signals). YinYang Momentum also features Information Tables. These tables display how the Blood Diamonds and Support Cross' are fairing on different Timeframes. This way, you'll be able to see if it's in a Bullish or Bearish state on critical Time Frames no matter what Timeframe you're trading on.
Before we move onto the tutorial, let's discuss what each of these Mountains and Ice are and how they work. All of our Mountains and Ice are calculated using the same algorithm but with varying sources, lengths and multipliers. We are essentially calculating differences in movement and then sending those differences into an EMA for the Mountain Base and SMA for the mountain Ice. The values we use for the Predictive are much lower and therefore occur much quicker as they aren’t averaged out on longer lengths/time frames; this helps to make it more of a leading Indicator which may predict momentum changes. Our Regular is over a medium length and multipliers that result in a smooth but generally also gradual movement that helps reliability; this helps it act as more of an ‘in the now’ Indication of momentum changes. Our Confirming uses lengths and multipliers that are of a higher value and longer span; this makes it more difficult to use for determining entry / exit locations as it's more of a lagging indicator, but it helps to add confirmation as to whether the momentum change has occurred and wasn't a false signal.
Tutorial:
YinYang Momentum may look like a lot is going on.. And well that’s cause there is.. But that doesn’t mean it's confusing or hard to read once you know what you’re looking for!
To make this tutorial a little easier to understand, let's turn off a few settings and dissect this indicator one thing at a time. YinYang Momentum features Price and Volume mountains. Currently in the photo above we have 2 Price Mountains and 1 Volume Mountain turned on (this is how it's set by default and how we recommend using it), however there are 3 Mountains available for both Price and Volume:
Predictive
Regular
Confirming
We are going to deactivate everything so it's the Regular Price Mountain + Ice enabled.
Now that it is just the Regular Price Mountain and Ice it is much easier to teach and understand. As you can see there are two different colors on the mountain. The dark blue is the Mountain and the light blue is the Ice.
The Ice moves before the mountain does and when the momentum happens it is larger than it (below or above). When the momentum starts to change however, the Ice curves inside of the mountain. As you can see here, where the BUY signal (red cross) is, the Ice curves into the mountain; also where the SELL signal (red circle) is, the Ice curves into the mountain. The Ice curving into the mountain is a very important leading indication that momentum is changing and the Signals (crosses and diamonds) help solidify this momentum change.
The Index levels for YinYang Momentum is a little different than most oscillators that range from 0-100. Instead YinYang Momentum’s neutral level is 0 and it ranges from -100 to 100. For these reasons, the Viable Range for Buying is -40 to -70 and the Optimal Range for Buying is -70 to -100. For Selling, the Viable Range is 40 to 70 and the Optimal Range is 70 to 100.
If you look at the example above, you can see whenever it has been in the optimal range and the signal occurred, it may potentially be an amazing time to buy or sell. However, when it is within the Viable Range it can be hit or miss. The reason for this is because we are only looking at the Regular Price Mountain and Ice. Once we turn on the Predictive Price and Regular Volume we will have a much clearer idea as to what is noise and what is a true purchase signal. Why don’t we turn on Predictive Price Mountains and Ice so you can see what we’re talking about:
So there are 2 big things that changed when we added the predictive price mountains + ice.
We can see that where the orange circle is, is just noise, it isn’t a viable buy signal.
We can see that where the red circle is, is actually a better spot to sell than the previous marked white circle slightly to the right of it.
We will explain why both above are true, but first let's explain how we were able to deduce this information.
There are 5 rules when deciphering if the signal is a true signal or just noise.
You want the predictive mountain to be decently spaced out from the regular mountain. Refer to the example above how that should look. Remember it's predictive so with parabolic movements it will get quite spaced out. If the price went up but slowly, it generally won’t be as spaced and isn’t as strong of a signal predictor.
You want the Ice to be of a decent size and to curve in on both the Predictive and Regular Mountains. Both arrows (red and white circle arrows) are pointing to Ice that does just that. The Predictive mountain is of decent size and spaced out and the Ice curves in sharply on the Predictive, before curving in sharply on the Regular and then we get both Predictive and Regular Support Cross on the Same Bar.
When you get the Signals (Predictive and Regular) the amount of bars between them matters a lot! On the same Bar is ideal, however 1-2, max 3 bars between them is acceptable. Any more than 3 bars spacing and it's too risky of a signal because that means momentum change was happening but then stopped before picking back up. This doesn’t mean it can’t be a good signal, it just means it is much more risky and we don’t recommend it.
You don’t want Signal Clustering. You can see an example of this from the picture above. Signal Clustering is where signals are back to back over and over. During this time the momentum is in a consolidation phase and easily swaps back and forth between signals. These signals are not reliable and should not be traded on. We only want to act on clear momentum based signals.
Last but certainly not least, actually, the most important! Ensure that the Mountain + Ice for both the Predictive and Regular is at the bare minimum touching (preferably inside) the Viable Range. The Optimal range is best, but most mountains don’t make it that far. Viable Range is where you will make most of your trades from. Sometimes a great signal happens with all 5 of these rules but it is only touching the Viable Range right at 40 or -40. This CAN be okay, but is also much more risky than if it was at 50 to 60 or -50 to -60.
Based on the 5 rules mentioned, take a second and look back at the photo where we initially added the Predictive Price mountains and Ice, can you decipher why the orange circle is just noise, and can you see why the red circle is a better sell location than the white circle slightly to the right of it?
Let’s bring that photo back up now and let’s discuss this:
Let's start with the orange circle:
This orange circle, without the predictive, was hard to tell if it was a good location to buy or not, but the second we turned it on we could clearly see it was just noise.
The spacing between the Predictive mountains and the Regular is almost non-existent.
There was signal clustering shortly before this signal.
Remember, there doesn’t have to be many rules broken for a signal to be either too risky or not valid at all. The safest trades are ones where it meets the requirements of all 5 rules (6 once we talk about volume, but 5 price rules).
Now, let's discuss the red circle:
This red circle, although it could have been chosen with just the regular, was much more noticeable with the predictive added on top.
It has a perfect spacing between the Predictive and the Regular all the way to the peak.
The Ice is large and both curve in very nicely towards the mountains.
The signals are within 2 bars apart from each other.
There is no signal clustering.
The Predictive is within the Viable Range and the Regular is just touching it.
For these reasons, the red circle actually would have been where you sold and not the white circle beside it.
This pretty much covers the Price Mountains, but wait! The most important Cherry on Top to your decision making process is coming next!
We have just enabled our Regular Volume Mountains and Ice (which are the black mountains + ice). As you can see, we have circled what we call the ‘Perfect Combo’. This Perfect combo is when you have all 5 Price rules met COMBINED with a high volume mountain. The Volume Mountain and Ice act as strength. They aren’t biased towards bulls or bears, they simply show strength to whatever signal is present with it.
For example, if all 5 rules are met with Price on a Blood Diamond (Bear) Signal and there is a High Volume Mountain then this is also a ‘Perfect Combo’. That Blood Diamond signal will potentially have great strength behind it. The Viable and Optimal Ranges don’t apply to volume mountains. Any volume mountain, even close to the Viable Range, is considered to be a very high mountain. High volume is when the mountain is above 0 and low volume is when it's below 0. Any signal with low volume has less of a chance of being correct, regardless of whether it abides by all 5 price rules.
You can see here that the 5 Price rules are achieved but the volume mountain is low. It is at -25. Since the 5 Price rules are right, there is still a decent amount of accuracy to this signal and the price did plummet after, but not nearly as much as it would have if the volume mountain was high with it.
We have turned our Confirming Price Mountain on here so you can get an idea of what it looks like and how it’s used. If you refer to the Support Crosses and Blood Diamonds circled in white, you’ll see that although they both received their signals on the Predictive and Regular, neither of them received it on the Confirming. This shows that these signals lost momentum shortly after. However if you look at both the red and green circles, you’ll see that they both received their confirming signals and that it helped give those signals momentum. The Confirming Price Mountain is meant to help confirm if the momentum change is still on track and the max 3 bars from the regular signal rule still applies to it. However its height within the viable and optimal range is important, just not as relevant
Before we move on to our Information Tables we want to take a second just to discuss our Volume Mountains and Ice. We haven’t had a chance yet to discuss the Predictive or Confirming Volume. When it comes to our Volume Mountains + Ice, we don’t recommend having more than 1 on at a time. The reason we have included the Predictive and Confirming is in case you find they suit your Trading Style best, not necessarily to be used the same way the Price Mountains and Ice are. The main reason for this is due to the fact that the Volume Mountains are much smaller and when overlaid on top of each other can make a confusing blur that is hard to decipher.
In this example above we have enabled both Predictive and Regular Volume just so you can understand what we are talking about. The two together can be rather confusing and actually interfere with your decision making process. For this reason, we highly recommend finding the Volume Mountain that suits your trading style best and solely sticking to that.
Our Predictive Volume Mountains and Ice may help sense volume changes before they’ve even happened. This can be very useful if your Trading Style revolves around heavy volume changes.
Our Confirming Volume Mountains and Ice are much slower and smaller, but they help show the movement of volume that has occurred already. This can be used to help see the movement of volume without fearing it may or may not happen.
Our Information Tables are there to show you valuable information on whether it is in a state of Support Cross or Blood Diamond on 6 different Time Frames at the same time. The % it shows you displays how much of a price change has occurred since that signal has happened. It is important to note, if for instance you see it is in a state of Support Cross but the % is negative, this generally means it is going to switch to Blood Diamond soon and vice versa. Therefore if you are in a trade, especially on a lower Time Frame and you are watching the 1 Day or a higher Time Frame and notice that the % is getting less and less, it may be a good time to get out.
We will conclude our Tutorial here. If you have any Questions, Concerns, Suggestions or Comments please don’t hesitate to contact us.
Settings:
1. Show Predictive to Confirmed Trendline:
The Predictive to Confirmed Trendline is very useful for seeing when the predictive (Support Cross or Blood Diamond) has hit the confirmed (It’s a strong confirmation that the trend may be shifting). This trendline also features a Moving Average which helps give you a solid marker for when the Regular / Predictive mountains cross under or over it that a momentum swing may occur. Somewhat like when the RSI crosses above/below its Moving Average it dictates momentum change, that is likewise how to interpret when it happens with the mountains and this trendline.
2. Show Price Ice and Mountains based on:
The Price Ice and Mountains are very important when it comes to deciphering signal strength. For example, When the mountains are very low (regular and predictive) and are between the 2 red line (undervalued) or even possibly below the bottom red line, and the Ice on the mountains starts to curve into the mountains and then the Predictive and Regular Support Cross occur; this is a very strong Bullish Signal. But wait, that's not all, the cherry on top is when the volume mountain (black) is ALSO high while this occurs; the Volume Mountain adds Strength to the signal. When the volume mountain is high too during this ‘Perfect Combo’ this may potentially lead to very bullish price movement occurring soon. Here is an overview of each mountain:
2.1. Predictive: Are the least reliable, but they move first and nothing will move without the predictive moving first, and getting you ready.
2.2. Regular: Are the most accurate, they don't signify strength on its own, but they sure show some momentum.
2.3. Confirming: Are slightly behind when it comes to displaying data, and therefore shouldn't be used for entry / exit, but rather to show if the trend movement has truly been confirmed or not.
When the Ice starts to curve into the Mountain, (either upward or below) it signifies possible momentum change. There are Crosses (Bull), and Diamonds (Bear) to show when they've crossed. Cross' and Diamonds balance each other out and therefore there can never be more than 1 in a row (of the same type). When the Ice and Mountain size is very large (between 40 and 70), and the predictive Ice starts to curve into its mountain, and then the predictive curves into the Regular, and the Regular Ice is curving into its Mountain, then it may have some strong weight behind that signal.\nIMPORTANT: refer to Volume tooltip below for how to increase the signal strength even more.
3. Show Volume Ice and Mountains based on:
The Volume Ice and Mountains are for giving strength to the Price's signals and Size. When there is the perfect combo (described above) AND the Volume Ice + Mountain is high, then there may be a lot of strength to that Price signals (whether it is Cross (Bull), or Diamond (Bear)).
IMPORTANT: High volume mountains, unlike Price, don't mean good or bad. Volume shows strength to the Price, and therefore if there are high Volume mountains during a Diamond (Bearish), then there may be a lot of strength to that signal and vice versa.
4. Show Information Tables:
Information tables are used to display 6 different Time Frames and whether or not each time frame is in a state of Blood Diamond (red) or Support Cross (green). They also show how much % in price has changed since the current signal happened. These are very useful for seeing how the price is fairing on different Time Frames without having to constantly change your timeframe. For instance, maybe you base your entry off the 1 day time frame but then you swing trade on the 15 minute. Well, after you’ve confirmed your entry position and are sitting on the 15 minute, you can stay on the 15 minute and see how it is fairing on the 1 day, 5 minute or whatever time frame you choose. This way you aren’t distracted from the trade at hand. All of these Time Frames can be adjusted in the Settings (GUI) to whatever resolution you wish.
5. Res1 / Res2/ Res3 / Res4 / Res5 / Res6:
These represent the different resolutions (Time Frames) being used in your information tables and can be modified to display whatever resolution works best for your trading style. By default they are:
Res1: Current Timeframe
Res2: 15 Minute
Res3: 1 Hour
Res4: 4 Hour
Res5: 1 Day
Res6: 1 Week
Backup Res (not changeable): 5 Minute (this is only used if your Current Timeframe in Res1 is a duplicate of one of the other resolutions)
HAPPY TRADING!
SOFEX High-End Indicators + BacktestingBINANCE:BTCUSDT.P BINANCE:ETHUSDT.P
Introducing the first publicly available suite of indicators for Bitcoin and Ethereum by Sofex - the High-End Indicators & Backtesting System.
🔬 Trading Philosophy
The High-End Indicators & Backtesting system offers both trend-following and mean-reversal algorithms to provide traders with a deep insight into the highly volatile cryptocurrency markets, known for their market noise and vulnerability to manipulation.
With these factors in mind, our indicators are designed to sidestep most potentially false signals. This is facilitated further by the "middle-ground" time frame (1 Hour) we use. Our focus is on the two largest cryptocurrencies: Bitcoin and Ethereum , which provide high liquidity, necessary for reliable trading.
Therefore, we recommend using our suite on these markets.
The backtesting version of the Sofex High-End Indicators includes mainly trend-following indicators. This is because our trading vision is that volatility in cryptocurrency markets is a tool that should be used carefully, and many times avoided. Furthermore, mean-reversal trading can lead to short-term profits, but we have found it less than ideal for long-term trading.
The script does not aim to make a lot of trades, or to always remain in a position and switch from long to short. Many times there is no direction and the market is in "random walk mode", and chasing trades is futile.
Based on our experience, it is preferable if traders remain neutral the majority of the time and only enter trades that can be exited in the foreseeable future. Trading just for the sake of it ultimately leads to loss in the long-run.
Expectations of performance should be realistic.
We also focus on a balanced take-profit to stop-loss ratio. In the default set-up of the script, that is a 2% : 2% (1:1) ratio. A relatively low stop loss and take profit build onto our idea that positions should be exited promptly. There are many options to edit these values, including enabling trailing take profit and stop loss. Traders can also completely turn off TP and SL levels, and rely on opposing signals to exit and enter new trades.
Extreme scenarios can happen on the cryptocurrency markets, and disabling stop-loss levels completely is not recommended. The position size should be monitored since all of it is at risk with no stop-loss.
We take pride in presenting this comprehensive suite of trading indicators, designed for both manual and automated use. Although automated use leads to increased efficiency, traders are free to incorporate any of our indicators into their own manual trading strategy.
⚙️ Indicators
By default, all indicators are enabled for both Long and Short trades.
Extreme Trend Breakouts
The Extreme Trend Breakouts indicator seeks to follow breakouts of support and resistance levels, while also accounting for the unfortunate fact that false signals can be generated on these levels. The indicator combines trend-breakout strategies with various other volatility and direction measurements. It works best in the beginning of trends.
Underpinning this indicator are renowned Perry Kaufman's Adaptive Moving Averages (PKAMA) alongside our proprietary adaptive moving averages. These dynamic indicators adjust their parameters based on recent price movements, attempting to catch trends while maintaining consistent performance in the long run.
In addition, our modification of the TTM Squeeze indicator further enhances the Extreme Trend Breakouts indicator, making it more responsive, especially during the initial stages of trends and filtering of "flat" markets.
High-Volatility Trend Follower
The High-Volatility Trend Follower indicator is based around the logic of evading market conditions where volatility is low (choppy markets) and aggressively following confirmed trends. The indicator works best during strong trends, however, it has the downside of entering trades at trend tops or bottoms.
This indicator also leverages our proprietary adaptive moving averages to identify and follow high-volatility trends effectively. Furthermore, it uses the Average Directional Index, Aroon Oscillator, ATR and a modified version of VWAP, to categorize trends into weak or strong ones. The VWAP indicator is used to identify the monetary (volume) inflow into a given trend, further helping to avoid short-term manipulations.
Low-Volatility Reversal
The Low-Volatility Reversal aims at plugging the holes that trend-following indicators ignore. It specifically looks for choppy markets. Using proven concepts such as Relative Strength Index and volume measurements, among others, this indicator finds local tops and bottoms with good accuracy. It works best in choppy markets with low to medium volatility. It has a downside that all reversals have, losing trades at the end of choppy markets and in the beginning of big trends.
This indicator, like the others, employs PKAMA in conjunction with our proprietary adaptive moving averages, and an Average PSAR indicator to seek out "sideways" markets. Furthermore, Bollinger Bands with an adaptive basis line is used, with the idea of trading against the short-term trends by looking at big deviations in price movement. The above mentioned indicators attempt to catch local tops and bottoms in markets.
Adaptive Trend Convergence
The Adaptive Trend Convergence aims at following trends while avoiding entering positions at local bottoms and tops. It does so by comparing a number of adaptive moving averages and looking for convergence among them. Adaptive filtering techniques for avoiding choppy markets are also used.
This indicator utilizes our proprietary adaptive moving averages, and an Average Price Range indicator to identify trend convergence and divergence effectively, preventing false signals during volatile market phases. It also makes use of Bollinger Bands with an adaptive moving average basis line and price-action adjusted deviation. Contrasting to the Low-Volatility Reversal condition described above, the Bollinger Bands used here attempt to follow breakouts outside of the lower and upper bands.
Double-Filtered Channel Breakouts
The Double-Filtered Channel Breakouts indicator is made out of adaptive channel-identifying indicators. The indicator then follows trends that significantly diverge from the established channels. This aims at following extreme trends, where rapid, continuous movements in either direction occur. This indicator works best in very strong trends and follows them relentlessly. However, these strong trends can end in strong reversals, and the indicator can be stopped out on the last trade.
Our Double-Filtered Channel Breakouts indicator is built on a foundation of adaptive channel indicators. We've harnessed the power of Keltner Channels and Bollinger Band Channels, with a similar approach used in the Adaptive Trend Convergence indicator. The basis and upper/lower bands of the channels do not rely on fixed deviation parameters, rather on adaptive ones, based on price action and volatility. This combination seeks to identify and follows extreme trends.
Direction Tracker
The Direction Tracker indicator is made out of a central slower, adaptive moving average that clearly recognizes global, long-term trends. Combined with direction and range indicators, among others, this indicator excels at finding the long-term trend and ignoring temporary pullbacks in the opposite direction. It works best at the beginning and middle of long and strong trends. It can fail at the end of trends and on very strong historical resistance lines (where sharp reversals are common).
Our Direction Tracker indicator integrates an adaptive SuperTrend indicator into its core, alongside our proprietary adaptive moving averages, to accurately identify and track long-term trends while mitigating temporary pullbacks. Furthermore, it uses Average True Range, ADX and other volatility indicators to attempt to catch unusual moves on the market early-on.
📟 Parameters Menu
To offer traders flexibility, our system comes with a comprehensive parameter menu:
Preset Selection : Choose between Bitcoin or Ethereum presets to tailor the indicators to your preferred cryptocurrency market.
Global Signal Direction: Set the global signal direction as Long, Short, or Both, depending on your trading strategy.
Global Sensitivity Parameter : Adjust the system's sensitivity to adapt to different trend-following conditions, particularly beneficial during higher-strength trends.
Source of Signals : Toggle individual indicators on or off according to your preference. By default, all indicators are enabled. Customize the indicators to trade Long, Short, or Both, aligning them with your desired market exposure.
Confirmation of Signals : Set the minimum number of confirmed signals on the same bar, ensuring signals are generated only when specific confirmation criteria are met. The default value is one, and it can be adjusted for both Long and Short signals.
Exit of Signals : You have options regarding Take-Profit (TP) and Stop-Loss (SL) levels. Enable TP/SL levels to exit trades at predetermined levels, or disable them to rely on direction changes for exits. Be aware that removing stop losses can introduce additional risk, and position sizing should be carefully monitored.
By enabling Trailing TP/SL, the system switches to a trailing approach, allowing you to:
- Place an initial customizable SL.
- Specify a level (%) for the Trailing SL to become active.
- When the activation level is reached, the system moves the trailing stop by a given Offset (%).
Additionally, you can enable exit at break-even, where the system places an exit order when the trail activation level is reached, accounting for fees and slippage.
Alert Messages : Define the fields for alert messages based on specific conditions. You can set up alerts to receive email, SMS, and in-app notifications. If you use webhooks for alerts, exercise caution, as these alerts can potentially execute trades without human supervision.
Backtesting : Default backtesting parameters are set to provide realistic backtesting performance:
- 0.04% Commission per trade (for both entries and exits)
- 3 ticks Slippage (highly dependent on exchange)
- Initial capital of $1000
- Order size of $1000
While the order size is equal to the initial capital, the script employs a 2% stop-loss order to limit losses and attempts to prevent risky trades from creating big losses. The order size is a set dollar value, so that the backtesting performance is linear, instead of using % of capital which may result in unrealistic backtesting performance.
Risk Disclaimer
Please be aware that backtesting results, while valuable for statistical overview, do not guarantee future performance in any way. Cryptocurrency markets are inherently volatile and risky. Always trade responsibly and do not risk more than you can afford to lose.
[Volume Profile] Signal Clean Up Analysis with Backtest (TSO) This is a full-cycle trading system indicator, which uses Volume Profile for generating signals using a custom developed algorithm, TP (Take Profit) and SL (Stop Loss) levels. There are 2 SOURCES for signals (each can be used separately or both can be used at the same time, each signal SOURCE is using Volume Profile levels to open optimal trade direction) with chained (NOTE: You can select several or ALL of the features, this is not limited to either one) signal cleanup and analysis approach with scheduling and alerting capabilities. Works with most popular timeframes: 1M, 5M, 15M, 1H, 4H, D, great for intraday trading!
NOTE: Every calculation is done on a confirmed closed candle bar state, so the indicator will never repaint!
===========================================================================
Explanation of all the Features | Configuration Guide | Indicator Settings | Signal Cleanup Analysis
---------------------------------------------------------------------------
>>> Customizable Backtesting for a specific date range, results via TradingView strategy, which includes “Deep Backtesting” for largest amounts of data on trading results.
>>> Trading Schedule with customizable trading daily time range, automatic closing/alert trades before Power Hour or right before market closes or leave it open until next day.
>>> 3 Trading Systems.
>>> Multiple Signal SOURCEs for opening trades, either SOURCE can be used or both at the same time!
>>> Static/Dynamic Stop-Loss setups (HIGHLIGHT: Stop-Loss will be moved to Entry after TP1 is taken, which minimizes risk).
>>> Single or Multiple profit targets (up to 3).
>>> Take-Profit customizable offset feature (set your Take-Profit targets slightly before everyone is expecting it!).
>>> Candle bar signal analysis (matching candle color, skip opposite structured and/or doji candle uncertain signals).
>>> Additional analysis of VWAP/EMA/ATR/EWO (Elliot Wave Oscillator)/Divergence MACD+RSI/Volume signal confirmation (clean up your chart with indicator showing only the best potential signals!).
>>> Advanced Alerts setup, which can be potentially setup with a trading bot over TradingView Webhook (NOTE: This will require advanced programming knowledge).
===========================================================================
Labels, plots, colors explanations:
---------------------------------------------------------------------------
>>>>> Signal SOURCE(s): Green/Red arrows, which will be shown unconditionally, outside of trade engine and can be hidden if desired.
>>>>> LONG open: green "house" looking arrow below candle bar.
>>>>> SHORT open: red "house" looking arrow above candle bar.
>>>>> LONG/SHORT take-profit target: green/red circles (multi-profit > TP2/3/4/5 smaller circles).
>>>>> LONG/SHORT take-profit hits: green/red diamonds.
>>>>> LONG/SHORT stop-loss target: green/red + crosses.
>>>>> LONG/SHORT stop-loss hits: green/red X-crosses.
>>>>> LONG/SHORT EOD close (profitable trade): green/red squares.
>>>>> LONG/SHORT EOD close (loss trade): green/red PLUS(+)-crosses.
===========================================================================
Date Range and Trading Schedule Settings
---------------------------------------------------------------------------
>>>>> Date Range: Select your start and/or end dates (uncheck “End” for indicator to show results up to the very moment and to use for LIVE trading) for backtesting results, if not using backtesting – uncheck “Start”/“End” to turn it off.
>>>>> Use TradingView “Strategy Tester” to see backtesting results
NOTE: If Strategy Tester does not show any results with Date Ranged fully unchecked, there may be an issue where a script opens a trade, but there is not enough TradingView power to set the Take-Profit and Stop-Loss and somehow an open trade gets stuck and never closes, so there are “no trades present”. In such case you will need to manually check “Start”/“End” dates or use “Depp Backtesting” feature!
>>>>> Trading Schedule: This is where you can setup Intraday Session or any custom session schedule you wish. Turn it ON. Select trading hours. Select EOD (End of Day) setting (NOTE: If it will be OFF, the indicator will assume you are holding your position open until next day!).
>>> Trading Systems: 1) "Open Until Closed by TP or SL": the signal will only open a trade if no trades are currently open/trunning, a trade can only be closed by Take Profit, Stop Loss or End of Day close (if turned on) | 2) "Open Until Closed by TP or SL + OCA": Same as 1), but if there is an opposite signal to the trade which is currently open > it will immediately be closed with new trade open or End of Day close (if turned on) | 3) "OCA (no TP or SL)": There are is Take Profit or Stop Loss, only an opposite signal will close current trade and open an opposite one or End of Day close (if turned on)
>>>>> MULTIPROFIT | TP (Take-Profit) System: Once the trade is open, all Take-Profit target(s) are immediately calculated and set for the trade > once the target(s) is hit > trade will be partially closed (if candle bar closes beyond several Take-Profit targets > trade will be reduced accordingly to the amount of how many Take-Profit targets were hit)
>>>>> MULTIPROFIT | SL (Stop-Loss) System: 1) Static – Once the trade is open, Stop-Loss is calculated and set for the remaining of the trade ||| 2) Dynamic – At trade open, Stop-Loss is calculated and set the same way, however once 1st Take-Profit is taken > Stop-Loss is moved to Entry, reducing the risk.
>>>>> # of TPs (number of take profit targets): Just like it is named, this is where you select the number of Take-Profit targets for your trading system (NOTE: If "OCA (no TP or SL)" Trading System is selected, this setting won’t do anything, since there are no TP or SLs for that system).
>>>>> TP(s) offset: This is a special feature for all Take-Profit targets, where you can turn on a customizable offset, so that if the price is almost hitting the Take-Profit target, but never actually touches it > you will capture it. This is good to use with HHLL (Highest High Lowest Low), which is pretty much a Support/Resistance as often the price will nearly touch these strong areas and turn around…
===========================================================================
Take-Profit and Stop-Loss visual example:
---------------------------------------------------------------------------
1) A simply nice intraday trading day for SPY (S&P500 ETF TRUST) with a single Take-Profit target on each trade.
See how Take-Profit distances increase with price momentum and how Stop-Loss is following the trade reducing the risk!
2) Same intraday trading day for SPY (S&P500 ETF TRUST) with 3 Take-Profit targets with static Stop-Loss.
3) Same intraday trading day for SPY (S&P500 ETF TRUST) with 3 Take-Profit targets with dynamic Stop-Loss.
You can see how Stop-Loss was moved once TP1 is taken!
===========================================================================
Trade Analysis and Cleanup Settings
---------------------------------------------------------------------------
>>>>> Candle Analysis | Candle Color signal confirmation: If closed candle bar color does not match the signal direction > no trade will be open.
>>>>> Candle Analysis | Skip opposite candle signals: If closed candle bar color will match the signal direction, but candle structure will be opposite (for example: bearish green hammer, long high stick on top of a small green square) > no trade will be open.
>>>>> Candle Analysis | Skip doji candle signals: If closed candle bar will be the uncertain doji > no trade will be open.
>>>>> Divergence/Oscillator Analysis | EWO (Elliot Wave Oscillator) signal confirmation: LONG will only be open if at signal, EWO is green or will be at bullish slope (you can select which setting you desire), SHORT if EWO is red or will be at bearish slope.
>>>>> Divergence/Oscillator Analysis | VWAP signal confirmation: LONG will only be open if at signal, the price will be above VWAP, SHORT if below.
>>>>> Divergence/Oscillator Analysis | Moving Average signal confirmation: LONG will only be open if at signal, the price will be above selected Moving Average, SHORT if below.
>>>>> Divergence/Oscillator Analysis | ATR signal confirmation: LONG will only be open if at signal, the price will be above ATR, SHORT if below.
>>>>> Divergence/Oscillator Analysis | RSI + MACD signal confirmation: LONG will only be open if at signal, RSI + MACD will be bullish, SHORT if RSI + MACD will be bearish.
>>>>> Volume signal confirmation: LONG/SHORT will only be open if closing candle volume is 150% above average Volume based on the Volume Length.
===========================================================================
Alert Settings (you don’t have to touch this section unless you will be using TradingView alerts through a Webhook to use with trading bot)
---------------------------------------------------------------------------
Here is how a LONG OPEN alert looks like (each label is customizable + I can add up more items/labels if needed):
COIN: BTCUSD
TIMEFRAME: 15M
LONG: OPEN
ENTRY: 20000
TP1: 20500
TP2: 21000
TP3: 21500
SL: 19000
Leverage: 0
===========================================================================
Adding Alerts in TradngView
---------------------------------------------------------------------------
-Right-click anywhere on the TradingView chart
-Click on Add alert
-Condition: Select this indicator by it’s name
-Alert name: Whatever you want
-Hit “Create”
-Note: If you change ANY Settings within the indicator – you must DELETE the current alert and create a new one per steps above, otherwise it will continue triggering alerts per old Settings!
===========================================================================
If you have any questions or issues with the indicator, please message me directly via TradingView.
---------------------------------------------------------------------------
Good Luck! (NOTE: Trading is very risky, past performance is not necessarily indicative of future results, so please trade responsibly!)
METRIC-TREND-TRADERThis script is a Fully Automated trading script meant to be used with "Oanda" broker and the plug-ins for algorithmic trading automation.( FOREX ONLY)
This script is meant to capture "TREND FOLLOWING " for intraday charts (1hour) preferably and will hold for days / weeks .trading on forex markets.
(The combination of indicators includes a short high and low price channel and a longer term high and low price channel)
This script is original in description as being automated to try and capture dynamic trending markets with both long and short fractal price channels. although trend trading is not an original concept. trend trading with this dynamic indicator allows the user visualize both short term and longer term price action at the same time, helping to make better trading decisions. the channels are designed to buy breakouts in the direction of the longer term trend while trailing stop a built-in stop loss that allows normal market movement while attempting to lock in flexible profits.
The concept of this indicator is be able to quickly visualize trends by high lighting the large green areas beneath price "when trending long" which is the difference between the (user defined) short term lows and the (user defined) Long period price lows.
For "down trending" markets a large red area above price will be displayed and this is the difference between the (user defined) short term highs and the (user defined) long term highs.
This strategy uses a lower than reward profile to jump in direction of market moves for continuation,
(1 risk to 4 reward)
in the likelihood the instrument will continue (example) 200 pips before it reverts 50 pips in the counter direction.
This strategy should only be used in markets that you believe are "TRENDING" at the time of trading otherwise you risk trend trading a range market.
This script uses a (user defined period) of short term high and low price ( green/red color) and (user defined period) Long Term high and low price (green/red) chosen in the indicator settings menu.
The default parameters are 10 with a (minimum of 1 and maximum of 10000) for the short term channel and 50 with a (minimum of 1 and maximum of 10000) for the long term price channel , the default parameters = roughly 2 days "long term" and 10 hours "short term" of price action on the (1 hour) chart.
Strategy entries and exits , for Long trades the trade will be entered if the short term high crosses above the Long Term high and the Short term low is not equal to the Long term low . the trade will exit if profit or stop loss are hit or if the Short term low crosses under the long term low.
For Short trades the trade will enter short if , the short term low crosses under the long term low and the short term high is not equal to the long term high. the trade will exit if profit or stop loss are hit or the short term high crosses over the long term high
"The default parameters should be kept unless you fully understand the complete strategy"
There are two very important inputs to be selected at the user setting menu "Long Only " and "Short Only" if you are looking to place long trades only select "Long Only" or for short trades select " Short Only" it is not recommended to keep both selected as it will trade both sides!
When the trade is entered a red , a blue and green horizontal dotted line will appear on the chart.
the blue line is the strategy entry price , the red line is the stop loss price , and the green line is the take profit price . the colors will invert if the trade is long or short.
(Setting alerts should be done in the indicator settings menu, and the parameters you chose will determine the stop loss/target and the amount of "units = (position size)" you wish to trade for the (forex only) markets. using "alert() function calls only" is the only alert that should be used with this strategy.
(note : when "alert() function calls only" is set two messages will be sent, one closing any open position in the opposite direction and one placing the new order regardless if you are currently in a trade or not)
Trade targets , stoploss and trade position size are a user defined variables entered in the indicator settings menu. (target pips minimum 0 and a maximum of 1000)(stop pips minimum of 0 and maximum of 1000)
Back test date range is included in the script for back testing different data periods.
the back ground will be colored a transparent navy blue if the period you are looking trading is with in the date range( note: to place live trades the end date will need to be in the future)
this is also adjustable in the settings menu
The avoid spread filter is a user defined time in which the spread is typically higher than average, applying this filter avoids trades in the specified time. When this filter is applied there will be a transparent red back ground color in the specified time.
Back test default setting are equivocal to OANDA:USDJPY
at the time of this publication placing trades with the "Oanda" broker are as follows , USD units = 2000 equal 2000 USD position size . "Oanda" current leverage is 20 to 1 for this particular pair and commission is paid in spread (1.4) pips = 0.19 USD per trade , Margin required for the trade is 100.0 USD , Position sizing = 10% of a 1000 USD account.
OANDA:USDJPY
BE - Volume Scalping ProDear Traders,
Here with presenting the new Indicator (Strategy) for scalping which is primarily built based on the the Volume Analysis.
Idea behind this Indicator: I am sure every trader would agree that Volume is one of the Leading indicator along with Price, and hence thought to use the same for scalping the trades. There is a direct co-relation between the price and volume and thereby used this as a base for arriving at strength of the volume pumped in. Indicator is working on the Logic of "What is the ROC in price for the volume dumped in and does ROC quantify the same which is happened in the recent past of x candles." In order to be successful in scalping trade, Accuracy, Risk to reward and Money Management is very much crucial and hence thought so much on this to make it happen.
Note: Accuracy here being profitable in the trade and not hitting the bulls eye all the time.
What this indicator is providing:
Based on the volume, ROC & Candle Thresholds and using the inputs provided for RISK and Money Management options, Indicator continuously scans for trading opportunities and provides alerts for possible trades.
Alerts & Notifications:
There are basically 3 types of Alerts provided one with General Notification and Other with Dhan HQ notifications to support Algo Trades and AlgoJi for supporting Algo trades too.
Self Declaration:
I have been testing the performance in 30 seconds and 1 min chart and I haven't faced any issues yet. I strongly recommend users to use the same in timeframe less than 10 Min only.
Enjoy!
DISCLAIMER: No sharing, copying, reselling, modifying, or any other forms of use are authorized for our documents, script / strategy, and the information published with them. This informational planning script / strategy is strictly for individual use and educational purposes only. This is not financial or investment advice. Investments are always made at your own risk and are based on your personal judgement. I am not responsible for any losses you may incur. Please invest wisely.
Happy to receive suggestions and feedback in order to improve the performance of the indicator better.
Ratings AlgoThe ratings algo is my discount version of the many paid-for algorithms put out by numerous different companies. A technical "rating" (by default between -10 and 10) is produced for each candle, telling the user when to buy, sell, or hold. I took 11 of my personal favorite indicators to develop a rating system. They are:
50/200 SMA crossover
10/20 SMA crossover
10/20 LSMA crossover
10/20 EMA crossover
"Arnold" a rate-of-change analysis of a smoothed LSMA
PVT and OBV momentum
MACD
RSI
DMI
Fisher Transform
The ratings system is very basic (a more complex, detailed version will be coming in the future!) where each indicator returns -1, 0, or 1, and the MAs and Oscillators are stratified with a user-defined weighting. The total calculation is based on the function:
maweight * (average of MA ratings) + oscillator weight * (average of osc ratings)
If the total value > user-defined threshold, the bar is teal, and if > 2.5 * threshold, is green, and vice versa for orange/red respectively. Purple is given if the total value is close to zero.
"Strong" signals are printed if the bar changes to either green or red and exits are printed if the bars change from green/red to any other color.
A table is also produced showing what each indicator is indicating, either "Buy" "Sell" or "Hold.
Reversal Bands are printed, intended to be used as areas where a trade might be exited if the market is sideways. If a Strong Buy signal is produced, it may be a good idea to enter the trade, and hold until the price enters the reversal bands, then hold until a candle closes outside the band for the first time.
This indicator truly shines in trending markets (like most indicators), but with very fast-acting exit signals and reversal zones, will facilitate minimal losses and possibly even profits in sideways markets.
Bot go_up DD_long/shortHello!
This strategy is based on the double bottom pattern - for entering a long position / double top-short
A double bottom pattern is formed when two price bottoms are relatively at the same level and the top acts as resistance. This pattern appears at the end of a downtrend and signals a reversal.
A double top is a bearish reversal pattern that signals the end of an uptrend. It is formed by two price highs forming at the same level and a notch line that acts as local support.
As history and practice show, the double bottom pattern works better. Moreover, in a bull market.
You can include only long or only short. BUT while there is a long, a short position will not be opened, in fact, with a long as well.
You can use reverse trade, one coin at a time.
DESCRIPTION:
// LOGIC ENTRY:
Period for short and long positions-to search for double bottom as well as double top. the more, the less false.
Change liong and short-channel width for pattern search separately for long and short.
General shift-the overall width of the channel, which changes equally at once for long and short
By default, quiet settings for tf 5 minutes are applied!
You can choose the settings you like.
// AMOUNT(USDT) FIRST ORDER AND > % NEXT
In the first column, indicate the amount, in the second, how many percent the next order will be more than the previous one.
// EXIT SETTINGS
Closing a trade by RSI when it reaches the level specified in the settings (but in the negative, the trade will never be closed, even if the condition is triggered)
Using a percentage to exit a trade + stop loss. (Put a stop order 1000+ on the market can be anything, especially if you use spot trading)
PS: in order to use the RSI output at a certain level, put a checkmark on the desired one, and also check the percentage box and indicate a take on the percentage 10-20 +)
// MARTINGALE GRID
If there is a check mark, then the grid is used.
Use all signals?
If yes, then there will be no limit on inputs from logic
If the checkbox is not checked, then you can limit the entries from the strategy logic by the specified percentage.
Grid, the next order, when decreasing by a certain percentage, an order when decreasing by the percentage that will be specified (after entering from the logic, when the next signal appears, the grid will be counted from the beginning)
PS: orders are not automatically placed, if the conditions are triggered, then the entry is only at the next bar (within the TV, it is not possible to add orders immediately, but most often, in case of straits, for the better)
// FILTER SETTINGS
The filter consists of a series of popular, averaged oscillators
//DATA RANGE
You can see the results for the selected period
//
CALCULATION OF ORDERS AND MARGIN (FOR INFO ONLY)
The number of orders is the number of entries (you must always have the same number of orders in the arguments and in the properties !!)
- in the aruments for understanding, in the properties - it does not matter how much it will cost there, so many inputs will be!)
-leverage is created to calculate the margin
When you change these parameters, you will understand how much money is required in general and what maximum drawdown can be allowed
Green line-take, lower-stop-order.
To use algo trading, in fact, you need to use a script, in the service through which you will transmit a signal through webhooks, you need to select the amount.
{{strategy.order.contracts}}
ОПИСАНИЕ НА РУССКОМ
//ЛОГИКА ВХОДА:
Период для шорт и лонг позиций, сдвиг для шорта лонга, также общий
По умолчанию применены спокойные настройки для тф. 5 минут.
Вы можете самостоятельно подбирать настройки, основываясь на прошлые результаты
//СУММА ВХОДА В ЮЗДТ +МАРТИНГЕЙЛ:
В первой графе указываете сумму , во второй -на сколько процентов следующий ордер будет больше предыдущего.
//НАСТРОЙКИ ВЫХОДА ИЗ СДЕЛКИ
Закрытие сделки по RSI, когда достигнет уровня, указанного в настройках ( но в минус сделка не будет закрыта никогда, даже если условие сработало)
Использование процента для выхода из сделки+ стоп приказ.( Ставьте стоп-приказ 1000+ на рынке может быть всякое, тем более, если используете спотовую торговлю)
ПС: для того, чтобы использовать выход по RSI по определенному уровню, поставьте галочку на нужный , а также поставьте галочку по проценту и укажите тейк по проценту 10-20+)
//НАСТРОЙКИ СЕТКИ
Если стоит галочка-то сетка используется.
Использовать все сигналы?
Если да, то лимита по входам от логики не будет
Если не стоит галочка, то можно ограничить входы от логики стратегии, на указанный процент.
Сетка, следующий ордер, при снижении на определенный процент-след ордер при снижении на тот процент, который будет указан ( после входа от логики , при появлении следующего сигнала сетка будет считаться с начала)
ПС: ордера автоматически не ставятся, если сработали условия, то вход, только на следующем баре ( в рамках ТВ, нет возможности добавить сразу ордера, но чаще всего, при проливах-к лучшему)
//НАСТРОЙКИ ФИЛЬТРА
Фильтр состоит из серии популярных, усредненных осцилляторов.
//
БЭКТЕСТИНГ
Можете посмотреть результаты за выбранный промежуток
//
ПИРАМИДИНГ (исключительно для расчета)
Количество ордеров-это количество входов ( у вас всегда должно быть одинаковое количество ордеров в агрументах и в свойствах!!)
-в аргументах для понимания, в свойствах -важно, сколько там будет стоить-столько входов и будет!)
-плечо создано для расчета маржи
При изменение данных параметров Вы будете понимать сколько потребуется средств в общем и какую максимальную просадку можно допустить
Зеленая линия-тейк, нижняя-стоп-приказ.
Для использования алго-трейдинга, собственно так и нужно использовать скрипт, в сервисе, через который Вы будете передавать сигнал через веб-хуки , Вам нужно выбрать количество.
{{strategy.order.contracts}}
Удачных трейдов, друзья!
NVME Blackfire XNVME Blackfire X Indicator is a trend-confirmation indicator that includes Buy and Sell signals on the chart, Support & Resistance lines, Automatic Trendlines, Session Highs and Lows, Previous MTF Candle's Highs and Lows, Strategy Mode with Working Win/Loss Calculator, Built-In Position Size Calculator, Institutional Zones, Re-Entry Points and Filters, Customisable Market Dashboard and Alerts for Many Features.
The 2 main settings for the algorithm are 'Sensitivity' and 'Agility'. When you place Blackfire X onto your charts, you should be met automatically with the best settings we've found so far and don't worry if you are struggling to find settings because our system has an onboard system that provides you with an automatic "Best Settings" for the current pair that you are on. You can choose to enable this feature on the algorithm settings or simply see what is ideal on the dashboard too.
The 'Sensitivity' controls how quickly the algorithm responds to the market's trend changes. The higher the sensitivity, the less trades on the chart. The lower the sensitivity, the more trades you'll find on the chart.
The 'Agility' controls where the signals are placed within the trend change, a lower agility will give you signals closer to its reversal points and a higher agility will give you slower signals.
We also have the option to change the indicator to your trading style, there are four modes that heavily impacts the algorithm's calculations.
These are "default", "swing mode", "scalp mode", "strategy mode".
"Default" is our normal algorithm module that utilises the user's input to provide signals using a basic filtration system.
"Swing Mode" is our algorithm that has been modified to give signals that are more delayed for swing traders.
"Scalp Mode" is our algorithm that has been modified to give signals that are quick and fast for scalps.
"Strategy Mode" utilises our default mode but instead places the user in a mode where trades will only appear if a stop loss or a take profit area has been met by the price after the signal call.
Our third key option is our bar colour switches, there are multiple options such as "Cloud-Based", "Pivot Based", "S/R Based", "Change-Based" and "Two Colour Modes". NVME Blackfire X colours the candles in the direction of the trend and a green colour shows an uptrend, a purple colour shows an unconfirmed trend or often a ranging area and a red colour shows a downtrend.
We must let traders know that the signals should be used carefully and with a trader's strategy rather than following signals for the sake of it being printed there!
Since we want this algorithm to have necessary features and respond fast too, we have chosen only trend-following and analysis features that will be quick to use and easy to understand. We want this to be different from our Vanquisher X algorithm as that is a massive multi-tool full of features for traders to enjoy.
The first main feature is our 'Trend Cloud' system, it utilises two moving average plots that creates a cloud filling and with our algorithm you can customise both of the moving averages to any currently existing moving average in the PineScript Library.
The second feature is our 'Institutional Zones' system, which plots area of the market where the institutions have placed orders and these can be used as an extra support and resistance zone for trades. There is an input option that allows the user to get more or less zones and it is called "The Detection Strength", increasing this will show more zones whilst decreasing it will show less.
The third feature is our 'Automatic Trendlines' system, which utilises two input methods ('Trendline Period' and 'Trendline Detection Ratio'), the period controls how many bars of data to lookback to for the trend-lines and the detection ratio controls how many trend-lines are plotted onto the chart.
The fourth feature is our 'Session High and Lows' system, which plots the highest high and the lowest low of each session in the trading hours, these plots can be useful for breakout traders.
The fifth feature is our 'MTF Candle Info' system, which plots the candle's high and low or the candle's open and close for a timeframe and the previous candle of choice. This can also be used for breakout traders such as having a lower timeframe breakout for a higher timeframe plot.
The sixth feature is our 'Adaptive S/R Zones', which plots support and resistance zones into any market pair that are accurate points at which the market could react and reject from.
* Informative Market Dashboard *
Our simple panel on your chart displays the most relevant data from all of our features and calculations in real-time.
Confirmation
The confirmation simply tells the user what the previous signal was and this can be useful if the user may decide to have their signals turned off on the charts.
Market State
The market state informs the user the direction of the trend whether it be ranging, in an uptrend or downtrend, you'll see the emoji that corresponds to that.
Recommended Sensitivity
This feature will show the user what the recommended sensitivity is for the current pair that the user is on and the user may find this helpful if they don't know what settings to use.
Recommended Agility
This feature will show the user what the recommended agility is for the current pair that the user is on and the user may find this helpful if they don't know what settings to use.
Trend Control
The trend control feature calculates data using the user set bars back input and it determines all the factors within the trend to give you an informative response, an uptrend will have "Bulls by: " + percentage of control and a downtrend will have "Bears by" + percentage of control.
Pair Strength
The pair strength is measures the control of bulls or bears in the form of the market strength and it will give the same response as the trend control but the percentage will be based on the buying or selling pressure.
Pair's Change
The pairs change measures the change in price from point A to point B, if the change is greater than 0%, the dashboard will inform you that Bulls are in control, and if not the dashboard will inform you that Bears are in control.
Market Money
The market money measures the amount of volume and money that is going into the current asset and if the net change is greater than 0%, bulls will be in control, if not then bears are giving the market their money.
NVME Oscillator X
This is our very own oscillator that has been integrated into our dashboard, allowing the user to see the trend of our other indicator without having to fill their charts up with more noise. If the oscillator is in a downtrend then the dashboard will state that its in a downtrend and if it is in an uptrend then it will show an uptrend text.
Volatility
This feature measures the amount of volatility in any pair and provides user with the percentage value so they can see whether or not the market is extremely volatile at the current time.
Current Session
This feature will tell the user what session they are currently on such as London, Europe, New York, Asia, Australia.
MechaAlgoWhat is MechaAlgo?
MechaAlgo was created to assist any type of trader on a day to day basis. Our intelligent and accurate algorithms turn complex charts into profitable plays, minimizing losses and maximizing profits. We hope that you will find use in the tools and resources we provide, and we will continue to improve on our products in order to take your trading to new heights!
Any Time, Any Market
Our indicators work with real time data on any market. This means that any kind of trader will find our tools useful, regardless of what you are trading.
Feature List
Multiple Signal Modes
Numerous Candle Coloring Modes
Reversal Cloud Overlay
Auto Support & Resistance
Auto Trendlines
Auto Profit Targets
Real Time Informational Dashboard
Multi-Timeframe Trend Panel
Future Trend Projection
Many More Features to Come!
By using this script you acknowledge that MechaAlgo cannot guarantee you profit, and that this product was only created in attempt to benefit traders. You also acknowledge that past performance is not indicative of future results, and that the experience of other users or what you see online may not always be your experience.
SignalCAVE Strategy BuilderYou can create strategies without writing single line of Pine Script code!
Do backtesting, set alerts and explore algorithmic trading with using SignalCAVE Strategy Builder on TradingView.
SignalCAVE Strategy Builder for TradingView
SignalCAVE is a tool that help you to create strategies in TradingView. SignalCAVE offers flexible strategy builder panel enabling users to backtest and set alerts with custom conditions (selected indicators and parameters).
CAPABILITIES
You can define rules and conditions for “Long” and “Short” signals.
“Stop Loss” or “Take Profit” functions can be activated with providing percentage values.
“Only Long”, “Only Short” or both “Long and Short” signals can be used at the same time.
Available Indicators
EMA, SMA, WMA, HMA, RSI, MACD, Stochastic, Bollinger Bands, SuperTrend, Parabolic SAR, DMI, ATR, CCI, CMF, ROC, Ichimoku, OHLC Prices
How to Set Strategy Rules?
On SignalCAVE strategy settings screen, there are four types of input groups. You can populate these input boxes based on your strategy.
A: First indicator’s parameter and index value selection area
First Input: First indicator selection.
Second Input: First indicator’s parameter selection. If you want to use default parameters, select “Default Parameters”. If you want to use custom parameters, select “Custom Parameters”. If your selection was custom, then you need to fill “P:A” input boxes to assign your custom parameter.
Third Input: First indicator’s index selection. Default parameter is “0”, If you want to get previous value of indicator/price, you can type positive numbers.
?: Condition and Interval selection area.
You can select “Upper (>), Lower (<), Upper or Equal (>=), Lower or Equal (<=), CrossOver (⬆), CrossUnder (⬇)” conditions and time frame interval for calculation both first (A:) and second (B:) indicator.
B: Second indicator’s parameter and index value selection area
First Input: Second indicator selection.
Second Input: Second indicator’s parameter selection. You may use either default parameters, or custom parameters. If your selection was custom, then you need to fill “P:B” input boxes to assign your custom parameter.
Third Input: Second indicator’s index selection. Default parameter is “0”, If you want to get previous values of indicator/price, you can type positive numbers.
P:A First indicator’s custom parameter settings. If selected indicator has less then four parameters, you can fill unnecessary fields with “0” value.
P:B Second indicator’s custom parameter settings. If selected indicator has less then four parameters, you can fill unnecessary fields with “0” value.
DASHBOARD
After you build the strategy with SignalCAVE, you can see rules and conditions on dashboard with chart view screen.
Hint: By adding multiple times of SignalCAVE strategy on your chart screen, you can build more then one strategy.
STRATEGY TESTER / BACKTEST RESULTS
You can see strategy backtest results from “Strategy Tester” panel.
By changing parameters or strategy rules (strategy optimization), you may get better results. These results does not guarantee a success for future trades.
ALERT SETTINGS
If you want to get notify about your strategy outputs (Long Entry, Long Exit, Short Entry, Short Exit, Stop, Take Profit) you can set an “Alert”.
You can click “Alert” button to create a new alert. Make sure on “Conditions” selection must be “SignalCAVE” strategy.
Paste to “Message” field exactly the text below.
{{strategy.order.alert_message}}
Hint: By setting a single alarm, you can get notifications for all outputs.
Do your alerts modifies when you change the strategy conditions or parameters?
While the strategy got updated, its alerts still use the strategy’s state from the time when we made the alert (TradingView Wiki, 2018b).
This has the advantage that, once we made a script alert, we can change the script’s input options, change chart settings, or remove the script from to the chart. All of that won’t affect our existing alert. That gives a lot of flexibility to keep interacting with the chart and script.
But there’s also a disadvantage: if we do want our script’s alerts to change, we first need to remove the existing alerts. Then we have to create and configure new alerts based on the indicator’s updated code or settings.