Type/to search

Look-Up and Look-Down Strategy Based on Internal Price Channels

Cryptocurrency
Created: 2023-12-11 15:56:28
Last modified: 3 years ago
1
Follow
1778
Followers

img

Overview

This strategy utilizes internal price channels to determine future price trends and belongs to trend following strategies. When prices form a certain number of internal price fluctuation channels, it is judged as a trend reversal signal to make long or short entries. It also incorporates moving average filtering and stop-loss/take-profit to lock in profits and is a relatively common quantitative trading strategy.

Strategy Principle

The strategy determines the formation of internal channels according to the size relationship between the highest and lowest prices of the previous two candlesticks. When a certain number of candlesticks meet the condition that the highest price is lower than the highest price of the previous candlestick and the lowest price is higher than the lowest price of the previous candlestick, an internal price channel is identified.

When an internal channel is identified, the strategy also judges the direction of the channel. If it is a bullish internal channel, a long entry signal is generated. If it is a bearish internal channel, a short entry signal is generated. Therefore, this is a bidirectional trading strategy.

To filter false signals, a moving average indicator is also introduced. Actual trading signals are only generated when the price is above or below the moving average line. This can avoid erroneous trades to some extent in sideways markets.

After entry, stop-loss and take-profit points can also be set according to user’s choice. There are three available stop loss methods: fixed-point stop loss, ATR stop loss, previous highest/lowest stop loss. The take profit is set according to risk/reward ratio. This can lock in profits to some extent and control risks.

Advantage Analysis

The biggest advantage of this strategy is its strong ability to identify trend reversal points. When prices form a certain number of internal channels, it often signals that a relatively large price up/down movement is about to occur. This judgment is highly consistent with traditional technical analysis theories.

In addition, the configurability of the strategy itself is very strong. Users can freely select parameters such as the number of internal channels, moving average cycle, stop loss/take profit method, etc. This provides great flexibility for different products and trading styles.

Finally, the moving average filter and stop-loss/take-profit settings introduced in the strategy also greatly reduce trading risks. Making the strategy adaptable to trading in various market environments.

Risk Analysis

The biggest risk of this strategy is the relatively high probability of incorrect trend judgments. Internal channels cannot completely determine price reversals, there is a certain probability of misjudgment. If the determined quantity is insufficient, false signals may occur.

In addition, the strategy is completely useless in sideways or volatile markets. When prices fluctuate up and down without establishing a trend, the strategy will continuously generate incorrect signals. This is determined by the mechanism of the strategy.

Finally, if the stop loss is set too conservatively, the strategy may not be able to hold positions long enough to capture profits in major trends. This requires users to balance by themselves.

Optimization Directions

The optimization space of this strategy is still quite large. Some possible optimization directions include:

  1. Optimize the quantity and patterns of internal channels. Test trading effects under different quantities or different combination arrangements.

  2. Optimize the cycle parameter of the moving average to better determine the trend direction. The current default cycle may not be suitable for all products.

  3. Add other indicator filters. For example, introduce Bollinger Bands and only generate trading signals when prices break through the upper or lower rails of the Bands.

  4. Optimize stop loss/take profit parameters to allow the strategy to hold positions for longer. Thereby capturing profits in super trends.

In general, the existence of this strategy lies in the accuracy of its trend judgment. As long as the accuracy of the judgment can be ensured, combined with appropriate risk management settings, effective algorithmic trading can be carried out.

Conclusion

In summary, this strategy is a quantitative trading strategy that determines future price trends based on internal price channels. It combines trend following and trend reversal judgment methods and has certain advantages. But there is also room for optimization to meet specific products and trading environments. After parameter optimization, it can become one of the most ideal quantitative trading strategies.

Source
Pine
/*backtest
start: 2023-12-03 00:00:00
end: 2023-12-10 00:00:00
period: 3m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/

// From "Day Trading Cryptocurrency 
// Strategies, Tactics, Mindset, and Tools Required To Build Your 
Strategy parameters
Strategy parameters
Strategy Direction
-----------------Strategy Inputs-------------------
# Of Inside Bars in pattern
Only trade using complete bullish or bearish patterns
Use MA Trend Filter
MA Length
-----------------General Inputs-------------------
Use Stop Loss and Take Profit
Type Of Stop
Swing Point Lookback
Swing Point SL Perc Increment
ATR Length
ATR Multiple
Take Profit Risk Reward Ratio
Trailing Stop
Allow Direct Position Reverse
Reverse Trades
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)