IsAlgo - Reverse Candle Strategy► Overview:
The Reverse Candle Strategy leverages a customizable moving average to identify the start of a trend. It utilizes the highest and lowest prices to define the trend and its corrections, executing trades based on custom candlestick patterns to capitalize on the main trend's continuation.
► Description:
The Reverse Candle Strategy is designed to effectively identify and trade market trends by combining moving averages and custom candlestick patterns. The core of the strategy is a single, customizable moving average, which helps determine the trend direction. When the market price crosses above the moving average, this signifies the beginning of an uptrend. The strategy then tracks the highest price reached during the uptrend and waits for a correction. A specific custom candlestick pattern signals the end of the correction, at which point the strategy executes a long trade.
In the case of a downtrend, the market price crossing below the moving average marks the trend’s start. The strategy monitors the lowest price during the downtrend and awaits a correction. The end of this correction is identified by another custom candlestick pattern, prompting the strategy to execute a short trade. This combination of a moving average with precise candlestick patterns ensures that trades are made at optimal moments, improving the likelihood of successful trades.
The integration of the moving average and candlestick patterns is critical. The moving average smooths out price data to highlight the trend direction, while the custom candlestick patterns provide specific entry signals after a correction, ensuring the trend’s resumption is genuine. This synergy enhances the strategy’s ability to filter out false signals and improve trade accuracy.
↑ Long Entry Example:
When the price is moving above the moving average and the highest price has been detected, the strategy will wait for the entry candle to execute the long trade.
↓ Short Entry Example:
When the price is moving below the moving average and the lowest price has been detected, the strategy will wait for the entry candle to execute the short trade.
✕ Exit Conditions:
To manage risk effectively, the strategy provides multiple stop-loss options. Traders can set stop-loss levels using fixed pips, ATR-based calculations, or the higher/lower price of past candles. Additionally, trades can be closed if a candle moves against the trade direction. Up to three take-profit levels can be set using fixed pips, ATR, or risk-to-reward ratios, allowing traders to secure profits at different stages. The trailing stop feature adjusts the stop loss as the trade moves into profit, locking in gains while allowing for continued potential upside. Furthermore, a break-even feature moves the stop loss to the entry price once a certain profit level is reached, protecting against losses. Trades can also be closed when the price crosses the moving average.
► Features & Settings:
⚙︎ Moving Average: Users can choose between various types of moving averages (e.g., SMA, EMA) to confirm the trend direction.
⚙︎ Trend & Corrections: Set minimum and maximum pips for trends and corrections, with an option to define correction percentages relative to the trend.
⚙︎ Entry Candle: Define the entry candle by specifying the minimum and maximum size of the candle's body and the ratio of the body to the entire candle size, ensuring significant breakouts trigger trades.
⚙︎ Trading Session: This feature allows users to define specific trading hours during which the strategy should operate, ensuring trades are executed only during preferred market periods.
⚙︎ Trading Days: Users can specify which days the strategy should be active, offering the flexibility to avoid trading on specific days of the week.
⚙︎ Backtesting: Enables a backtesting period during which the strategy can be tested over a selected start and end date. This feature can be deactivated if not needed.
⚙︎ Trades: Configure trade direction (long, short, or both), position sizing (fixed or percentage-based), maximum number of open trades, and daily trade limits.
⚙︎ Trades Exit: Various exit methods, such as setting profit or loss limits, trade duration, or closing trades on moving average crossings.
⚙︎ Stop Loss: Various stop-loss methods are available, including a fixed number of pips, ATR-based, or using the highest or lowest price points within a specified number of previous candles. Additionally, trades can be closed after a specific number of candles move in the opposite direction of the trade.
⚙︎ Break Even: This feature adjusts the stop loss to a break-even point once certain conditions are met, such as reaching predefined profit levels, to protect gains.
⚙︎ Trailing Stop: The trailing stop feature adjusts the stop loss as the trade moves into profit, securing gains while potentially capturing further upside.
⚙︎ Take Profit: up to three take-profit levels using fixed pips, ATR, or risk-to-reward ratios based on the stop loss. Alternatively, specify a set number of candles moving in the trade direction.
⚙︎ Alerts: The strategy includes a comprehensive alert system that informs the user of all significant actions, such as trade openings and closings. It supports placeholders for dynamic values like take-profit levels and stop-loss prices.
⚙︎ Dashboard: Visual display providing detailed information about ongoing and past trades on the chart, helping users monitor performance and make informed decisions.
► Backtesting Details:
Timeframe: 30-minute NAS100 chart
Initial Balance: $10,000
Order Size: 5 Units
Commission: $0.5 per contract
Slippage: 5 ticks
Stop Loss: MA Crossing or by break even
Trendcontinuation
DCA-Integrated Trend Continuation StrategyIntroducing the DCA-Integrated Trend Continuation Strategy 💼💰
The DCA-Integrated Trend Continuation Strategy represents a robust trading methodology that harnesses the potential of trend continuation opportunities while seamlessly incorporating the principles of Dollar Cost Averaging (DCA) as a risk management and backup mechanism. This strategy harmoniously blends these two concepts to potentially amplify profitability and optimize risk control across diverse market conditions.
This strategy is well-suited for both trending and ranging markets. During trending markets, it aims to capture and ride the momentum of the trend while optimizing entry points. In ranging markets or pullbacks, the DCA feature comes into play, allowing users to accumulate more assets at potentially lower prices and potentially increase profits when the market resumes its upward trend. This cohesive approach not only enhances the overall effectiveness of the strategy but also fosters a more resilient and adaptable trading approach in ever-changing market dynamics.
💎 How it Works:
▶️ The strategy incorporates a customizable entry signal based on candlestick patterns, enabling the identification of potential trend continuation opportunities. By focusing on consecutive bullish candles, it detects the presence of bullish momentum, indicating an optimal time to enter a long position.
To refine the precision of the signals, traders can set a specific percentage threshold for the closing price of the candle, ensuring it is above a certain percentage of its body. This condition verifies strong bullish momentum and confirms significant upward movement within the candle, thereby increasing the reliability of the signal.
In addition, the strategy offers further confirmation by examining the relationship between the closing price of the signal candle and its previous candles. If the closing price of the signal candle is higher than its preceding candles, it provides an additional layer of assurance before entering a position. This approach is particularly effective in detecting sharp movements and capturing significant price shifts, as it focuses on identifying instances where the closing price shows clear strength and outperforms the previous candle's price action. By prioritizing such occurrences, the strategy aims to capture robust trends and capitalize on notable market movements.
▶️ During market downturns, the strategy incorporates intelligent management of price drops, offering flexibility through fixed or customizable price drop percentages. This unique feature allows for additional entries at specified drop percentages, enabling traders to accumulate positions at more favorable prices.
By strategically adjusting the custom price drop percentages, you can optimize your entry points to potentially maximize profitability. Utilizing lower percentages for initial entries takes advantage of price fluctuations, potentially yielding higher returns. On the other hand, employing higher percentages for final entries adopts a more cautious approach during significant market downturns, emphasizing enhanced risk management. This adaptive approach ensures that the strategy effectively navigates challenging market conditions while seeking to optimize overall performance.
▶️ To enhance performance and mitigate risks, the strategy integrates average purchase price management. This feature dynamically adjusts the average buy price percentage decrease after each price drop, expediting the achievement of the target point even in challenging market conditions. By reducing recovery times and ensuring investment safety, this strategy optimizes outcomes for traders.
▶️ Risk management is at the core of this strategy, prioritizing the protection of capital. It incorporates an account balance validation mechanism that conducts automatic checks prior to each entry, ensuring alignment with available funds. This essential feature provides real-time insights into the affordability of price drops and the number of entries, enabling traders to make informed decisions and maintain optimal risk control.
▶️ Furthermore, the strategy offers take profit options, allowing traders to secure gains by setting fixed percentage profits from the average buy price or using a trailing target. Stop loss protection is also available, enabling traders to set a fixed percentage from the average purchase price to limit potential losses and preserve capital.
▶️ This strategy is fully compatible with third-party trading bots, allowing for easy connectivity to popular trading platforms. By leveraging the TradingView webhook functionality, you can effortlessly link the strategy to your preferred bot and receive accurate signals for position entry and exit. The strategy provides all the necessary alert message fields, ensuring a smooth and user-friendly trading experience. With this integration, you can automate the execution of trades, saving time and effort while enjoying the benefits of this powerful strategy.
🚀 How to Use:
To effectively utilize the DCA-Integrated Trend Continuation Strategy, follow these steps:
1. Choose your preferred DCA Mode - whether by quantity or by value - to determine how you want to size your positions.
2. Customize the entry conditions of the strategy to align with your trading preferences. Specify the number of consecutive bullish candles, set a desired percentage threshold for the close of the signal candle relative to its body, and determine the number of previous candles to compare with.
3. Adjust the pyramiding parameter to suit your risk tolerance and desired returns. Whether you prefer a more conservative approach with fewer pyramids or a more aggressive stance with multiple pyramids, this strategy offers flexibility.
4. Personalize the price drop percentages based on your risk appetite and trading strategy. Choose between fixed or custom percentages to optimize your entries in different market scenarios.
5. Configure the average purchase price management settings to control the percentage decrease in the average buy price after each price drop, ensuring it aligns with your risk tolerance and strategy.
6. Utilize the account balance validation feature to ensure the strategy's actions align with your available funds, enhancing risk management and preventing overexposure.
7. Set take profit options to secure your gains and implement stop loss protection to limit potential losses, providing an additional layer of risk management.
8. Use the date and time filtering feature to define the duration during which the strategy operates, allowing for specific backtesting periods or integration with a trading bot.
9. For automated trading, take advantage of the compatibility with third-party trading bots to seamlessly integrate the strategy with popular trading platforms.
By following these steps, traders can harness the power of the DCA-Integrated Trend Continuation Strategy to potentially maximize profitability and optimize their trading outcomes in both trending and ranging markets.
⚙️ User Settings:
To ensure the backtest result is representative of real-world trading conditions, particularly in the highly volatile Crypto market, the default strategy parameters have been carefully selected to produce realistic results with a conservative approach. However, you have the flexibility to customize these settings based on your risk tolerance and strategy preferences, whether you're focusing on short-term or long-term trading, allowing you to potentially achieve higher profits. The backtesting was conducted using the BTCUSDT pair in 15-minute timeframe on the Binance exchange. Users can configure the following options:
General Settings:
- Initial Capital (Default: $10,000)
- Currency (Default: USDT)
- Commission (Default: 0.1%)
- Slippage (Default: 5 ticks)
Order Size Management:
- DCA Mode (Default: Quantity)
- Order Size in Quantity (Default: 0.01)
- Order Size in Value (Default: $300)
Strategy's Entry Conditions:
- Number of Consecutive Bullish Candles (Default: 3)
- Close Over Candle Body % (Default: 50% - Disabled)
- Close Over Previous Candles Lookback (Default: 14 - Disabled)
- Pyramiding Number (Default: 30)
Price Drop Management:
- Enable Price Drop Calculations (Default: Enabled)
- Enable Current Balance Check (Default: Enabled)
- Price Drop Percentage Type (Default: Custom)
- Average Price Move Down Percentage % (Default: 50%)
- Fixed Price Drop Percentage % (Default: 0.5%)
- Custom Price Drop Percentage % (Defaults: 0.5, 0.5, 0.5, 1, 3, 5, 5, 10, 10, 10)
TP/SL:
- Take Profit % (Default: 3%)
- Stop Loss % (Default: 100%)
- Enable Trailing Target (Default: Enabled)
- Trailing Offset % (Default: 0.1%)
Backtest Table (Default: Enabled)
Date & Time:
- Date Range Filtering (Default: Disabled)
- Start Time
- End Time
Alert Message:
- Alert Message for Enter Long
- Alert Message for Exit Long
By providing these customizable settings, the strategy allows you to tailor it to your specific needs, enhancing the adaptability and effectiveness of your trading approach.
🔐 Source Code Protection:
The source code of the DCA-Integrated Trend Continuation Strategy is designed to be robust, reliable, and highly efficient. Its original and innovative implementation merits protecting the source code and limiting access, ensuring the exclusivity of this strategy. By safeguarding the code, the integrity and uniqueness of the strategy are preserved, giving users a competitive edge in their trading activities.
ATR Trend Run - Signals Alerts SL and TP by Tech Store OnThe script uses several ATR formulas for entering/exiting trades, support/resistance lines to take TP1 (take profit 1) and another ATR formula for TP2 (take profit 2). Everything is fully configurable to your preference, and you can back-test it via TradingView. You can also configure the indicator for signals during US trading sessions (with or without power hour), as well as taking profits/stop-loss session time(s), as well as to close a position at the end of the trading session no matter what. Also, you can turn all of that off, so there are no trading session/end of day limits and each trade will run until it either hits SL, TP1, TP1 > back to entry, TP2. Note: indicator is set to skip consecutive/opposite signals, while you currently have a trade open > if you hit a trend – ride it to the end!
For example: If you will be day trading SPY and you wish to close your positions no matter what right before the market closes (3:45PM ET > 15min before closes): Make sure to checkbox “Intraday – Close Position Before Market Closes” in the strategy/indicator Settings, so that you are alerted soon before the market closes, if you wish to continue holding the position – leave this checkbox unchecked.
SL: SL is set to be slightly above/below the signal candle, which is best suited for this strategy.
Strategy Take Profit Approach
While the initial position open and SL hit is always based on a closed candle bar (can’t do otherwise, as otherwise you will have 10s of fake signal alerts), there are 2 ways on trading this strategy in terms of TP1 and TP1 taken > back to Entry, which is based off Alert type.
You can switch this as you like within the indicator settings, “Checked: TP1 taken > back to Entry per Price Touch | Unchecked: per Candle Close”.
Candle Close vs Price Touch: with the Default method - Candle Close for an alert for TP1 or if price comes back to Entry after TP1 is taken will only be triggered once candle bar fully closes crossing the area, while Price Touch will alert when price touches the area before candle bar closes.
For example: your trade is running well, you grab TP1 and the price reverses and hits your trade Entry area. With Price Touch – you are immediately alerted to close your trade with no loss and with TP1 profit. With Candle Close - you will receive an alert only once candle bar fully closes on top of the Entry crossing it backwards, meaning it may lower your TP1 profit or even completely reverse the trade into loss in case it will be a huge candle bar for any reason. However, it may touch the Entry area, looking like the price is reversing, but then continue per initial trade direction, sometimes becoming a trend. So, while Price Touch seem like a more conservative approach, Candle Close can give you much bigger profits if you catch a trend, but you can always change it via the Settings.
Note: TradingView back-testing engine does not have a feature to open/close orders IMMEDIATELY via Price Touch trigger, but only when the candle closes after price touches the scripted area/line/etc., so you for the most accurate results, test your strategy out via Candle Close setting. Otherwise, decide yourself. I personally like more Candle Close since I can test it out via back-testing with the most accurate results.
TP2 is set per Candle Close as often the ATR trailing stop line will be hit and bounced off, so it’s best to wait until candle actually breaks it/closes through it.
Note: If you will be observing the strategy LIVE, during LIVE candle bar movement – it will look weird, like it’s placing an order after order during any trigger – this seem like a TradingView bug, but is only observational, once the candle bar is closed and you refresh TradingView it will all look correct.
Back-Testing
If you wish to do some back-testing, just modify the strategy/indicator Settings:
-----1) STRATEGY: This is for back-testing/experimenting with the script inputs.
----------a. You can setup a start date (date, month, year) from which it will start opening back-test trades, select a position size and select TP1 size, the idea here is to close half (or whatever you choose) portion of the trade once you hit your TP1, then to either close at small profit or to catch a trend and close the second portion of the position long way ahead from Entry, otherwise it will alert you to close the position at TP2, if price comes back to Entry, at reversal signal or at the end of US trading session if the option for it is checked. If you wish to close the whole position at TP1, just enter the same amount for TP1 to match backtest position size. Otherwise you can experiment with TP1 sizing – try it out!
-----2) Feel free to experiment with ATR settings and with S&R Left/Right bars, you may be amazed how results will differ and find some really cool combinations!
-----3) Make sure you select/de-select “Intraday – Close Position Before Market Closes” setting depending on what you are back-testing and on which conditions
-----4) Note: If you wish to do some deep back-testing (1+ years), use the “Deep Backtesting” feature within Strategy Tester on the TradingView as otherwise it may show wrong results or even fail to compute the results
Add the alerts
-----Right-click anywhere on the TradingView chart
-----Click on Add alert
-----Condition: ATR Trend Run - Signals Alerts SL and TP, by Tech Store On
----------o Right underneath the condition click on the drop-down menu and select “alert() function calls only”
-----Expiration time: Whatever you wish
-----Alert actions: Whatever notifications you wish
-----Alert name: DO NOT TOUCH THIS
-----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!
- Note: If you add the alert while the script is currently “In Position” it will not know that. So either wait when there will be no position open at all or close your position partially if the bot opens it twice bigger or so in case per script the bot will think it is already in position.
Note: Because of the slippage and the order processing time between TradingView, AutoView and the Broker (it’s usually about a second or so), it is suggested to not use a timeframe lower than 1min. The script is working really well with 1M/3M/5M/H1/H4 timeframes per my back-testing, but feel free to explore via Strategy Back-testing what’s best for the instrument you wish to trade.
If you wish to try this out for a week or so – please reach out and I will give you access.
Rate Of Change Trend Strategy (ROC)This is very simple trend following or momentum strategy. If the price change over the past number of bars is positive, we buy. If the price change over the past number of bars is negative, we sell. This is surprisingly robust, simple, and effective especially on trendy markets such as cryptos.
Works for many markets such as:
INDEX:BTCUSD
INDEX:ETHUSD
SP:SPX
NASDAQ:NDX
NASDAQ:TSLA
Market structure intraday ES futures strategy - BuySell ZonesThis market structure strategy for ES Mini Futures optimized for intraday market analysis ( RTH ).
Entry condition identified by bearish and bullish market structure.
Support level (Green Lines) is identified based on different variations of price fluctuations followed by the close above the range.
Resistance level (Red Lines) is identified based on different variations of price fluctuations followed by the close below the range.
The idea is to spot areas where market players were fighting for the best price and one side finally won.
Bullish trend is identified by consecutive series of support levels developing in upside direction.
Bearish trend is identified by consecutive series of resistance levels developing in downside direction.
When market develops bullish trend , strategy sets LONG limit order at fresh support level .
When market develops bearish trend , strategy sets SHORT limit order at fresh resistance level .
If there is an open position no new entries are performed.
For longs initial stop is set at previous support level adjusted by ATR.
For shorts stop is set at previous resistance level adjusted by ATR.
Stop trailing is also based on market structure.
If new support level is identified, stop moves to previous support level .
If new resistance level is identified, stop moves to previous resistance level .
There are no target. Strategy either gets stopped at current stop level or exits at session end.
Strategy calculates position size based on the previous market structure and ATR.
Strategy performs compounding position sizing so as account amount increases so does amount of traded contracts.
Usage:
Add script to your favorites and apply it on ES1! 1 minute time frame setting regular trading hours.
Script will print the limit order as well as stop levels according to the rules described above. As trade will progress, script will print levels to move the stop to.
Settings:
I added an option to disable the support and resistance lines printing if you prefer to have clean charts.
You can also change risk % to best fit your trading style.
If you just want to use the support and resistance levels as indicator you can also disable the strategy execution.
Support and Resistance indicator itself is universal and can be used on any market or timeframe.
If you want the strategy to be optimized for other markets or timeframes or have other rule set in mind feel free PM me, we will create the solution that best fits your needs and styles.
Real life trading is not get rich scheme. It is continuous process that involves various steps and dedication. If you are willing to take this path please PM me to enable the strategy for you.
Enjoy!
ElanStrategy v2.0A trend-following strategy with a twist.
I worked on the premise that Bitcoin price swings can not be predicted properly, since it's such a heavily manipulated market. Therefore, I chose to work with following the trend instead of predicting reversals.
It uses a weighted average of short, medium, and long range MA's.
This is the second version (see link below for v1.0), The main difference is that this new version uses a less binary position - it will change the position more gradually.
This one will automatically correct for bar duration, and works well from 1 to 4 hour charts. (1 hour chart seems to have data going back to only 2018/01/01 at the moment of writing, so I recommend using the 2H chart or higher)
Previous version:
Adaptive Trend OscilatorAdaptive strategy for strong move starting points. When it capture signal stay in that direction until lost momentum or get a counter signal
Matrix Trend Reverse EngineeringSelling algorithms.
Contact me to code your own indicators or strategy.