OPEN-SOURCE SCRIPT

Enhanced Volume + Trend Strategy

This strategy combines trend-following using an Exponential Moving Average (EMA) with volume confirmation to identify high-probability trading opportunities. Here’s how it works:

1. Trend Detection Using EMA (Exponential Moving Average):
The strategy uses the EMA(20) to detect the market trend. The EMA is a popular tool for identifying the direction of the trend because it gives more weight to recent price data, making it more responsive to changes in price direction.
Long Condition (Buy Signal): A long trade is triggered when the price is above the EMA(20), indicating a bullish trend.
Short Condition (Sell Signal): A short trade is triggered when the price is below the EMA(20), indicating a bearish trend.
2. Volume Confirmation:
Volume is used as a filter to confirm the strength of the price movement.
The Volume Moving Average (SMA) with a length of 20 bars is used to determine the average volume over the last 20 bars.
Volume Condition: A trade is only triggered if the current volume is greater than the Volume Moving Average. This ensures that the trend is supported by strong market participation, which is a sign of higher probability for the trade's success.
3. Stop Loss and Take Profit Based on ATR (Average True Range):
ATR(14) is used to measure market volatility and to determine dynamic stop loss and take profit levels. The ATR indicator calculates the range between the high and low prices over a given period, helping to measure how much the price fluctuates on average.
Stop Loss: The stop loss is set at 1.5x ATR below the entry price for long trades and above the entry price for short trades. This gives enough space for the trade to move, accounting for typical market fluctuations.
Take Profit: The take profit is set at 2x ATR above the entry price for long trades and below the entry price for short trades. This aims to capture a larger price move while still managing risk.
4. Signal Visualization:
Buy Signals: When a long condition is met (price above EMA and volume above the moving average), a green Buy Signal is displayed below the bar on the chart.
Sell Signals: When a short condition is met (price below EMA and volume above the moving average), a red Sell Signal is displayed above the bar on the chart.
Summary:
This strategy looks for bullish trends when the price is above the EMA(20) and bearish trends when the price is below the EMA(20). However, it doesn’t enter a trade unless the current volume is above the average, ensuring that there is enough market participation to back up the price move. ATR is used to dynamically calculate stop loss and take profit levels, providing a flexible approach based on the volatility of the market.

By combining these elements, the strategy aims to capture strong price moves that are supported by volume and trend, while protecting the trades with sensible stop loss and take profit levels based on market volatility.

This strategy is simple but effective in markets where trends and volume are strong indicators of price movement. It’s suitable for active trading on various timeframes, such as the 4-hour chart, to capture medium-term price moves.
Exponential Moving Average (EMA)

オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

チャートでこのスクリプトを利用したいですか?

免責事項