OPEN-SOURCE SCRIPT

All Divergences with trend / SL - Uncle Sam

Thanks to the main inspiration behind this strategy and the hard work of:
"Divergence for many indicators v4 by LonesomeTheBlue"

The "All Divergence" strategy is a versatile approach for identifying and acting upon various divergences in the market. Divergences occur when price and an indicator move in opposite directions, often signaling potential reversals. This strategy incorporates both regular and hidden divergences across multiple indicators (MACD, Stochastics, CCI, etc.) for a comprehensive analysis.

Key Features:

Comprehensive Divergence Analysis: The strategy scans for regular and hidden divergences across a variety of indicators, increasing the probability of identifying potential trade setups.
Trend Filter: To enhance accuracy, a moving average (MA) trend filter is integrated. This ensures trades align with the overall market trend, reducing the risk of false signals.
Customizable Risk Management: Users can adjust parameters for long/short stop-loss and take-profit levels to match their individual risk tolerance.
Additional Risk Management (Optional): An experimental MA-based risk management feature can be enabled to close positions if the market shows consecutive closes against the trend.
Clear Visuals: The script plots pivot points, divergence lines, and stop-loss levels on the chart for easy reference.
Strategy Settings (Defaults):

Enable Long/Short Strategy: True
Long/Short Stop Loss %: 2%
Long/Short Take Profit %: 5%
Enable MA Trend: True
MA Type: HMA (Hull Moving Average)
MA Length: 500
Use MA Risk Management: False (Experimental)
MA Risk Exit Candles: 2 (If enabled)
Pivot Period: 9
Source for Pivot Points: Close
Backtest Details (Example):

The strategy has been backtested on XAUUSD 1H (Goold/USD 1 hour timeframe) with a starting capital of $1,000. The backtest period covers around 2 years. A commission of 0.02% per trade and a 0.1% slippage per trade were factored in to simulate real-world trading costs.

Disclaimer:

This strategy is for educational and informational purposes only. Backtested results are not indicative of future performance. Use this strategy at your own risk. Always conduct your own analysis and consider consulting a financial professional before making any trading decisions.

Important Notes:

The default settings are a good starting point, but feel free to experiment to find optimal parameters for your specific trading style and market.
The MA-based risk management is an experimental feature. Use it with caution and thoroughly test it before deploying in live trading.
Backtest results can vary depending on the market, timeframe, and specific settings used. Always consider slippage and commission fees when evaluating a strategy's potential profitability.
Candlestick analysis

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

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

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


他のメディア:

免責事項