Description: This strategy is based on EMA cross strategy and additional filters are used to get better results, a normalized ATR filter, and ADX control...
It aims to provide traders with a code base that generates signals for long positions based on market conditions defined by various indicators.
How it Works: 1. EMA: Uses short (8 periods) and long (20 periods) EMAs to identify crossovers. 2. ATR: Uses a 14-period ATR, normalized to its 20-period historical range, to filter out noise. 3. ADX: Uses a 14-period RMA to identify strong trends. 4. Volume: Filters trades based on a 14-period SMA of volume. 5. Super Trend: Uses a Super Trend indicator to identify the market direction.
How to Use: - Buy Signal: Generated when EMA short crosses above EMA long, and other conditions like ATR and market direction are met. - Sell Signal: Generated based on EMA crossunder and high ADX value.
Originality and Usefulness: This script combines EMA, ATR, ADX, and Super Trend indicators to filter out false signals and identify more reliable trading opportunities.
USD Strength in the code is not working, just simulated it as PSEUDO CODE: [close>EMA(50)]
Strategy Results: - Account Size: $1000 - Commission: Not considered - Slippage: Not considered - Risk: Manageable through parameters, now less than 5% per trade - Dataset: Aim for more than 100 trades for a sufficient sample size - Test Conditions: Test in 30 min chart for BTCUSDT
IMPORTANT NOTE: This script should be used for educational purposes and should not be considered as financial advice.
Chart: - The script's output is plotted as Buy and Sell signals on the chart. - No other scripts are included for clarity. - Have tested with 30mins period - You are encouraged to play with parameters, let me know if it helps you and/or if you can upgrade the code to a better level.
WHY DID I USE ATR AND ADX?
ATR filter is usually used for the following purposes. Market Volatility: ATR measures how volatile the market is. High ATR values indicate that the price is experiencing significant fluctuations. Filtering: Crossing a certain ATR threshold may indicate that the market is active enough to present trading opportunities. Risk Management: ATR can also be used to set stop-loss and take-profit levels, helping to manage risk effectively.
And ADX is usually used for; Trend Strength: ADX measures the strength of a trend. High ADX values indicate a strong trend. Filtering: An ADX value above a certain level suggests that the trend is strong and it might be safer to trade. Versatility: ADX does not indicate the direction of the trend, only its strength. This makes it useful in both bullish and bearish markets. Using these indicators together can help filter out false signals and produce more reliable trading signals. While ATR helps to determine if the market is active enough, ADX measures the strength of the trend. Combined, they can create a more complex and effective trading strategy.
I've used ADX data to support generating a buy signal after a golden cross (bullish trend) and waiting until this is a strong trend. It sounds good to check for different trend strengths for bullish and bearish markets to decide a buy signal. Additionally I used ATR to check if the market has enough fluctuations.
Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.