OPEN-SOURCE SCRIPT

Script_Algo - High Low Range MA Crossover Strategy

439
🎯 Core Concept

This strategy uses modified moving averages crossover, built on maximum and minimum prices, to determine entry and exit points in the market. A key advantage of this strategy is that it avoids most false signals in trendless conditions, which is characteristic of traditional moving average crossover strategies. This makes it possible to improve the risk/reward ratio and, consequently, the strategy's profitability.

📊 How the Strategy Works

Main Mechanism
The strategy builds 4 moving averages:

Two senior MAs (on high and low) with a longer period

Two junior MAs (on high and low) with a shorter period

Buy signal 🟢: when the junior MA of lows crosses above the senior MA of highs

Sell signal 🔴: when the junior MA of highs crosses below the senior MA of lows

As seen on the chart, it was potentially possible to make 9X on the WIFUSDT cryptocurrency pair in just a year and a half. However, be careful—such results may not necessarily be repeated in the future.

Special Feature
Position closing priority ❗: if an opposite signal arrives while a position is open, the strategy first closes the current position and only then opens a new one

⚙️ Indicator Settings
Available Moving Average Types
EMA - Exponential MA

SMA - Simple MA

SSMA - Smoothed MA

WMA - Weighted MA

VWMA - Volume Weighted MA

RMA - Adaptive MA

DEMA - Double EMA

TEMA - Triple EMA

Adjustable Parameters
Senior MA Length - period for long-term moving averages

Junior MA Length - period for short-term moving averages

✅ Advantages of the Strategy

🛡️ False Signal Protection - using two pairs of modified MAs reduces the number of false entries

🔄 Configuration Flexibility - ability to choose MA type and calculation periods

⚡ Automatic Switching - the strategy automatically closes the current position when receiving an opposite signal

📈 Visual Clarity - all MAs are displayed on the chart in different colors

⚠️ Disadvantages and Risks

📉 Signal Lag - like all MA-based strategies, it may provide delayed signals during sharp movements

🔁 Frequent Switching - in sideways markets, it may lead to multiple consecutive position openings/closings

📊 Requires Optimization - optimal parameters need to be selected for different instruments and timeframes

💡 Usage Recommendations
Backtest - test the strategy's performance on historical data

Optimize Parameters - select MA periods suitable for the specific trading instrument

Use Filters - add additional filters to confirm signals

Manage Risks - always use stop-loss and take-profit orders.

You can safely connect to the exchange via webhook and enjoy trading.

Good luck and profits to everyone!!

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.