OPEN-SOURCE SCRIPT
Telah dikemas kini SMA/EMA Trade Signal

# SMA/EMA Trade Signal - Detailed Guide
## Indicator Overview
This indicator is a comprehensive trade signal detection system based on moving averages (SMA/EMA). It combines multi-timeframe moving average analysis, RSI filtering, trend strength assessment, and volume analysis to identify highly accurate entry points.
## Key Features
### 1. Multi-Timeframe Moving Average Display
* **Supported Timeframes**: 5m, 15m, 30m, 1H, 4H, Daily
* **MA Types**: SMA (Simple Moving Average) or EMA (Exponential Moving Average)
* **Period Settings**: Short MA (default 20), Long MA (default 200)
* **Visual Display**: Displayed with varying opacity lines per timeframe
### 2. Four Entry Signal Patterns
#### Buy Signals
1. **Breakout above 200MA**: Price breaks above the 200MA during an uptrend
2. **Rebound from 200MA**: Price pulls back to 200MA and rebounds in an uptrend
3. **Break above 20MA (above 200MA)**: 20MA breakout while above the 200MA
4. **Rebound from 20MA (above 200MA)**: Confirmed rebound from 20MA above 200MA (confirmed twice or more)
#### Sell Signals
1. **Breakdown below 200MA**: Price breaks below 200MA during a downtrend
2. **Rejection from 200MA**: Price rises to 200MA and falls back in a downtrend
3. **Break below 20MA (below 200MA)**: 20MA breakout to downside while under the 200MA
4. **Rejection from 20MA (below 200MA)**: Confirmed rejection from 20MA under 200MA (confirmed twice or more)
### 3. Advanced Filtering System
#### RSI Filter
* **Buy Signals**: Triggered when RSI is below 70
* **Sell Signals**: Triggered when RSI is above 30
* **Purpose**: Avoid entries in overheated markets
#### Distance Filter
* **Short MA Distance**: Within 2% of the 20MA
* **Long MA Distance**: Within 5% of the 200MA
* **200MA Proximity Filter**: Avoid entries when 200MA from other timeframes is too close
#### Trend Strength Filter
Trend strength is evaluated using the following 6 elements:
1. **Volume Surge**: 1.5x or more of the average volume
2. **Strong Candlestick**: Body is over 70% of the total range
3. **Consecutive Candles**: Two or more in the same direction
4. **High/Low Breakout**: Breaks 20-period high/low
5. **Engulfing Pattern**
6. **Range Breakout**: Breaks range with volume
### 4. Info Panel Display
Real-time display in the upper right panel:
* **Trend Status**: Uptrend / Downtrend / Range
* **Momentum**: Relationship between EMA15 and MA20
* **MA Bounce Count**: Long/short bounce count
* **MA Distance**: Degree of separation from MAs
* **Trend Strength Score**: Displayed as a score from 1 to 6
* **Distance to 200MA**: Nearest 200MA in pips
* **Filter Status**: Status of each filter (pass/fail)
## Parameter Details
### Display Settings
* **Show Current Timeframe MA**
* **Show \[Timeframe] MA**: Toggle for each timeframe
* **Show Trend Patterns**: Display trend pattern marks
* **Show Volume Surge Background**: Highlight background during volume spikes
### MA Period Settings
* **Short/Long MA Periods**
* **MA Type**: Choose between SMA or EMA
* **Timeframe-Specific Settings**: Set individually per timeframe
### Filter Settings
* **RSI Settings**: RSI period, overbought/oversold levels
* **Distance Filter**: Max allowable MA distance
* **Touch Detection**: Margin for MA touch judgment
* **Trend Strength**: Min score, volume multiplier, etc.
## How to Use
### 1. Basic Setup
1. Apply the indicator to the chart
2. Adjust MA periods according to the currency pair
3. Select desired timeframes
4. Set filter strength based on risk tolerance
### 2. Reading the Signals
#### Regular vs Strong Signals
* **Green Triangle (BUY)**: Regular buy signal
* **Lime Triangle (STRONG BUY)**: Buy signal with strong trend
* **Red Triangle (SELL)**: Regular sell signal
* **Orange Triangle (STRONG SELL)**: Sell signal with strong trend
#### Additional Markings
* **Small Circles**: Engulfing patterns
* **Arrows**: High/low breakouts
* **Yellow Background**: Volume surge
### 3. Entry Strategy
#### Recommended Entry Conditions
1. **Signal Triggered**: BUY or SELL signal appears
2. **Filter Confirmation**: Info panel shows "OK" status
3. **Trend Strength**: Score of 2 or higher (3+ for strong signals)
4. **Multi-Timeframe Alignment**: MAs from multiple timeframes point in same direction
#### Situations to Avoid
* Filter status shows “Distance NG”, “RSI NG”, etc.
* Trend strength score is 1 or lower
* Just before major economic events
* Around market open/close times
### 4. Risk Management
#### Stop Loss Setup
* **Buy**: Below recent low or support
* **Sell**: Above recent high or resistance
* **MA Reference**: Cut loss clearly below 200MA
#### Position Sizing
* Strong signals: Slightly larger positions
* Regular signals: Standard size
* Weak filter status: Smaller positions
## Optimization Tips
### Parameter Tuning
1. **Run Backtests**: Evaluate historical performance
2. **Adapt to Timeframe**: Adjust MA period to match trading timeframe
3. **Pair-Specific Tweaks**: Calibrate filters based on volatility
4. **Adapt to Market Conditions**: Change settings for trend vs range markets
### Combined Usage
* **Other Indicators**: Fibonacci, Support/Resistance
* **Fundamental Analysis**: Economic events, central bank policies
* **Time-of-Day Analysis**: Consider characteristics of Asian, EU, US sessions
## Important Notes
1. **Past results don’t guarantee future performance**: Don't rely solely on backtests
2. **Changing Market Conditions**: Effectiveness varies in trending vs ranging markets
3. **News Impact**: Technical setups can be invalidated by major announcements
4. **Leverage Risk**: Use high leverage cautiously
5. **Regular Review**: Periodically review parameters and performance
Although this indicator is a comprehensive analysis tool, final trading decisions should be made by taking multiple factors into account.
## Indicator Overview
This indicator is a comprehensive trade signal detection system based on moving averages (SMA/EMA). It combines multi-timeframe moving average analysis, RSI filtering, trend strength assessment, and volume analysis to identify highly accurate entry points.
## Key Features
### 1. Multi-Timeframe Moving Average Display
* **Supported Timeframes**: 5m, 15m, 30m, 1H, 4H, Daily
* **MA Types**: SMA (Simple Moving Average) or EMA (Exponential Moving Average)
* **Period Settings**: Short MA (default 20), Long MA (default 200)
* **Visual Display**: Displayed with varying opacity lines per timeframe
### 2. Four Entry Signal Patterns
#### Buy Signals
1. **Breakout above 200MA**: Price breaks above the 200MA during an uptrend
2. **Rebound from 200MA**: Price pulls back to 200MA and rebounds in an uptrend
3. **Break above 20MA (above 200MA)**: 20MA breakout while above the 200MA
4. **Rebound from 20MA (above 200MA)**: Confirmed rebound from 20MA above 200MA (confirmed twice or more)
#### Sell Signals
1. **Breakdown below 200MA**: Price breaks below 200MA during a downtrend
2. **Rejection from 200MA**: Price rises to 200MA and falls back in a downtrend
3. **Break below 20MA (below 200MA)**: 20MA breakout to downside while under the 200MA
4. **Rejection from 20MA (below 200MA)**: Confirmed rejection from 20MA under 200MA (confirmed twice or more)
### 3. Advanced Filtering System
#### RSI Filter
* **Buy Signals**: Triggered when RSI is below 70
* **Sell Signals**: Triggered when RSI is above 30
* **Purpose**: Avoid entries in overheated markets
#### Distance Filter
* **Short MA Distance**: Within 2% of the 20MA
* **Long MA Distance**: Within 5% of the 200MA
* **200MA Proximity Filter**: Avoid entries when 200MA from other timeframes is too close
#### Trend Strength Filter
Trend strength is evaluated using the following 6 elements:
1. **Volume Surge**: 1.5x or more of the average volume
2. **Strong Candlestick**: Body is over 70% of the total range
3. **Consecutive Candles**: Two or more in the same direction
4. **High/Low Breakout**: Breaks 20-period high/low
5. **Engulfing Pattern**
6. **Range Breakout**: Breaks range with volume
### 4. Info Panel Display
Real-time display in the upper right panel:
* **Trend Status**: Uptrend / Downtrend / Range
* **Momentum**: Relationship between EMA15 and MA20
* **MA Bounce Count**: Long/short bounce count
* **MA Distance**: Degree of separation from MAs
* **Trend Strength Score**: Displayed as a score from 1 to 6
* **Distance to 200MA**: Nearest 200MA in pips
* **Filter Status**: Status of each filter (pass/fail)
## Parameter Details
### Display Settings
* **Show Current Timeframe MA**
* **Show \[Timeframe] MA**: Toggle for each timeframe
* **Show Trend Patterns**: Display trend pattern marks
* **Show Volume Surge Background**: Highlight background during volume spikes
### MA Period Settings
* **Short/Long MA Periods**
* **MA Type**: Choose between SMA or EMA
* **Timeframe-Specific Settings**: Set individually per timeframe
### Filter Settings
* **RSI Settings**: RSI period, overbought/oversold levels
* **Distance Filter**: Max allowable MA distance
* **Touch Detection**: Margin for MA touch judgment
* **Trend Strength**: Min score, volume multiplier, etc.
## How to Use
### 1. Basic Setup
1. Apply the indicator to the chart
2. Adjust MA periods according to the currency pair
3. Select desired timeframes
4. Set filter strength based on risk tolerance
### 2. Reading the Signals
#### Regular vs Strong Signals
* **Green Triangle (BUY)**: Regular buy signal
* **Lime Triangle (STRONG BUY)**: Buy signal with strong trend
* **Red Triangle (SELL)**: Regular sell signal
* **Orange Triangle (STRONG SELL)**: Sell signal with strong trend
#### Additional Markings
* **Small Circles**: Engulfing patterns
* **Arrows**: High/low breakouts
* **Yellow Background**: Volume surge
### 3. Entry Strategy
#### Recommended Entry Conditions
1. **Signal Triggered**: BUY or SELL signal appears
2. **Filter Confirmation**: Info panel shows "OK" status
3. **Trend Strength**: Score of 2 or higher (3+ for strong signals)
4. **Multi-Timeframe Alignment**: MAs from multiple timeframes point in same direction
#### Situations to Avoid
* Filter status shows “Distance NG”, “RSI NG”, etc.
* Trend strength score is 1 or lower
* Just before major economic events
* Around market open/close times
### 4. Risk Management
#### Stop Loss Setup
* **Buy**: Below recent low or support
* **Sell**: Above recent high or resistance
* **MA Reference**: Cut loss clearly below 200MA
#### Position Sizing
* Strong signals: Slightly larger positions
* Regular signals: Standard size
* Weak filter status: Smaller positions
## Optimization Tips
### Parameter Tuning
1. **Run Backtests**: Evaluate historical performance
2. **Adapt to Timeframe**: Adjust MA period to match trading timeframe
3. **Pair-Specific Tweaks**: Calibrate filters based on volatility
4. **Adapt to Market Conditions**: Change settings for trend vs range markets
### Combined Usage
* **Other Indicators**: Fibonacci, Support/Resistance
* **Fundamental Analysis**: Economic events, central bank policies
* **Time-of-Day Analysis**: Consider characteristics of Asian, EU, US sessions
## Important Notes
1. **Past results don’t guarantee future performance**: Don't rely solely on backtests
2. **Changing Market Conditions**: Effectiveness varies in trending vs ranging markets
3. **News Impact**: Technical setups can be invalidated by major announcements
4. **Leverage Risk**: Use high leverage cautiously
5. **Regular Review**: Periodically review parameters and performance
Although this indicator is a comprehensive analysis tool, final trading decisions should be made by taking multiple factors into account.
Nota Keluaran
# SMA/EMA Trade Signal - Detailed Guide## Indicator Overview
This indicator is a comprehensive trade signal detection system based on moving averages (SMA/EMA). It combines multi-timeframe moving average analysis, RSI filtering, trend strength assessment, and volume analysis to identify highly accurate entry points.
## Key Features
### 1. Multi-Timeframe Moving Average Display
* **Supported Timeframes**: 5m, 15m, 30m, 1H, 4H, Daily
* **MA Types**: SMA (Simple Moving Average) or EMA (Exponential Moving Average)
* **Period Settings**: Short MA (default 20), Long MA (default 200)
* **Visual Display**: Displayed with varying opacity lines per timeframe
### 2. Four Entry Signal Patterns
#### Buy Signals
1. **Breakout above 200MA**: Price breaks above the 200MA during an uptrend
2. **Rebound from 200MA**: Price pulls back to 200MA and rebounds in an uptrend
3. **Break above 20MA (above 200MA)**: 20MA breakout while above the 200MA
4. **Rebound from 20MA (above 200MA)**: Confirmed rebound from 20MA above 200MA (confirmed twice or more)
#### Sell Signals
1. **Breakdown below 200MA**: Price breaks below 200MA during a downtrend
2. **Rejection from 200MA**: Price rises to 200MA and falls back in a downtrend
3. **Break below 20MA (below 200MA)**: 20MA breakout to downside while under the 200MA
4. **Rejection from 20MA (below 200MA)**: Confirmed rejection from 20MA under 200MA (confirmed twice or more)
### 3. Advanced Filtering System
#### RSI Filter
* **Buy Signals**: Triggered when RSI is below 70
* **Sell Signals**: Triggered when RSI is above 30
* **Purpose**: Avoid entries in overheated markets
#### Distance Filter
* **Short MA Distance**: Within 2% of the 20MA
* **Long MA Distance**: Within 5% of the 200MA
* **200MA Proximity Filter**: Avoid entries when 200MA from other timeframes is too close
#### Trend Strength Filter
Trend strength is evaluated using the following 6 elements:
1. **Volume Surge**: 1.5x or more of the average volume
2. **Strong Candlestick**: Body is over 70% of the total range
3. **Consecutive Candles**: Two or more in the same direction
4. **High/Low Breakout**: Breaks 20-period high/low
5. **Engulfing Pattern**
6. **Range Breakout**: Breaks range with volume
### 4. Info Panel Display
Real-time display in the upper right panel:
* **Trend Status**: Uptrend / Downtrend / Range
* **Momentum**: Relationship between EMA15 and MA20
* **MA Bounce Count**: Long/short bounce count
* **MA Distance**: Degree of separation from MAs
* **Trend Strength Score**: Displayed as a score from 1 to 6
* **Distance to 200MA**: Nearest 200MA in pips
* **Filter Status**: Status of each filter (pass/fail)
## Parameter Details
### Display Settings
* **Show Current Timeframe MA**
* **Show \[Timeframe] MA**: Toggle for each timeframe
* **Show Trend Patterns**: Display trend pattern marks
* **Show Volume Surge Background**: Highlight background during volume spikes
### MA Period Settings
* **Short/Long MA Periods**
* **MA Type**: Choose between SMA or EMA
* **Timeframe-Specific Settings**: Set individually per timeframe
### Filter Settings
* **RSI Settings**: RSI period, overbought/oversold levels
* **Distance Filter**: Max allowable MA distance
* **Touch Detection**: Margin for MA touch judgment
* **Trend Strength**: Min score, volume multiplier, etc.
## How to Use
### 1. Basic Setup
1. Apply the indicator to the chart
2. Adjust MA periods according to the currency pair
3. Select desired timeframes
4. Set filter strength based on risk tolerance
### 2. Reading the Signals
#### Regular vs Strong Signals
* **Green Triangle (BUY)**: Regular buy signal
* **Lime Triangle (STRONG BUY)**: Buy signal with strong trend
* **Red Triangle (SELL)**: Regular sell signal
* **Orange Triangle (STRONG SELL)**: Sell signal with strong trend
#### Additional Markings
* **Small Circles**: Engulfing patterns
* **Arrows**: High/low breakouts
* **Yellow Background**: Volume surge
### 3. Entry Strategy
#### Recommended Entry Conditions
1. **Signal Triggered**: BUY or SELL signal appears
2. **Filter Confirmation**: Info panel shows "OK" status
3. **Trend Strength**: Score of 2 or higher (3+ for strong signals)
4. **Multi-Timeframe Alignment**: MAs from multiple timeframes point in same direction
#### Situations to Avoid
* Filter status shows “Distance NG”, “RSI NG”, etc.
* Trend strength score is 1 or lower
* Just before major economic events
* Around market open/close times
### 4. Risk Management
#### Stop Loss Setup
* **Buy**: Below recent low or support
* **Sell**: Above recent high or resistance
* **MA Reference**: Cut loss clearly below 200MA
#### Position Sizing
* Strong signals: Slightly larger positions
* Regular signals: Standard size
* Weak filter status: Smaller positions
## Optimization Tips
### Parameter Tuning
1. **Run Backtests**: Evaluate historical performance
2. **Adapt to Timeframe**: Adjust MA period to match trading timeframe
3. **Pair-Specific Tweaks**: Calibrate filters based on volatility
4. **Adapt to Market Conditions**: Change settings for trend vs range markets
### Combined Usage
* **Other Indicators**: Fibonacci, Support/Resistance
* **Fundamental Analysis**: Economic events, central bank policies
* **Time-of-Day Analysis**: Consider characteristics of Asian, EU, US sessions
## Important Notes
1. **Past results don’t guarantee future performance**: Don't rely solely on backtests
2. **Changing Market Conditions**: Effectiveness varies in trending vs ranging markets
3. **News Impact**: Technical setups can be invalidated by major announcements
4. **Leverage Risk**: Use high leverage cautiously
5. **Regular Review**: Periodically review parameters and performance
Although this indicator is a comprehensive analysis tool, final trading decisions should be made by taking multiple factors into account.
Nota Keluaran
# SMA/EMA Trade Signal - Detailed Guide## Indicator Overview
This indicator is a comprehensive trade signal detection system based on moving averages (SMA/EMA). It combines multi-timeframe moving average analysis, RSI filtering, trend strength assessment, and volume analysis to identify highly accurate entry points.
## Key Features
### 1. Multi-Timeframe Moving Average Display
* **Supported Timeframes**: 5m, 15m, 30m, 1H, 4H, Daily
* **MA Types**: SMA (Simple Moving Average) or EMA (Exponential Moving Average)
* **Period Settings**: Short MA (default 20), Long MA (default 200)
* **Visual Display**: Displayed with varying opacity lines per timeframe
### 2. Four Entry Signal Patterns
#### Buy Signals
1. **Breakout above 200MA**: Price breaks above the 200MA during an uptrend
2. **Rebound from 200MA**: Price pulls back to 200MA and rebounds in an uptrend
3. **Break above 20MA (above 200MA)**: 20MA breakout while above the 200MA
4. **Rebound from 20MA (above 200MA)**: Confirmed rebound from 20MA above 200MA (confirmed twice or more)
#### Sell Signals
1. **Breakdown below 200MA**: Price breaks below 200MA during a downtrend
2. **Rejection from 200MA**: Price rises to 200MA and falls back in a downtrend
3. **Break below 20MA (below 200MA)**: 20MA breakout to downside while under the 200MA
4. **Rejection from 20MA (below 200MA)**: Confirmed rejection from 20MA under 200MA (confirmed twice or more)
### 3. Advanced Filtering System
#### RSI Filter
* **Buy Signals**: Triggered when RSI is below 70
* **Sell Signals**: Triggered when RSI is above 30
* **Purpose**: Avoid entries in overheated markets
#### Distance Filter
* **Short MA Distance**: Within 2% of the 20MA
* **Long MA Distance**: Within 5% of the 200MA
* **200MA Proximity Filter**: Avoid entries when 200MA from other timeframes is too close
#### Trend Strength Filter
Trend strength is evaluated using the following 6 elements:
1. **Volume Surge**: 1.5x or more of the average volume
2. **Strong Candlestick**: Body is over 70% of the total range
3. **Consecutive Candles**: Two or more in the same direction
4. **High/Low Breakout**: Breaks 20-period high/low
5. **Engulfing Pattern**
6. **Range Breakout**: Breaks range with volume
### 4. Info Panel Display
Real-time display in the upper right panel:
* **Trend Status**: Uptrend / Downtrend / Range
* **Momentum**: Relationship between EMA15 and MA20
* **MA Bounce Count**: Long/short bounce count
* **MA Distance**: Degree of separation from MAs
* **Trend Strength Score**: Displayed as a score from 1 to 6
* **Distance to 200MA**: Nearest 200MA in pips
* **Filter Status**: Status of each filter (pass/fail)
## Parameter Details
### Display Settings
* **Show Current Timeframe MA**
* **Show \[Timeframe] MA**: Toggle for each timeframe
* **Show Trend Patterns**: Display trend pattern marks
* **Show Volume Surge Background**: Highlight background during volume spikes
### MA Period Settings
* **Short/Long MA Periods**
* **MA Type**: Choose between SMA or EMA
* **Timeframe-Specific Settings**: Set individually per timeframe
### Filter Settings
* **RSI Settings**: RSI period, overbought/oversold levels
* **Distance Filter**: Max allowable MA distance
* **Touch Detection**: Margin for MA touch judgment
* **Trend Strength**: Min score, volume multiplier, etc.
## How to Use
### 1. Basic Setup
1. Apply the indicator to the chart
2. Adjust MA periods according to the currency pair
3. Select desired timeframes
4. Set filter strength based on risk tolerance
### 2. Reading the Signals
#### Regular vs Strong Signals
* **Green Triangle (BUY)**: Regular buy signal
* **Lime Triangle (STRONG BUY)**: Buy signal with strong trend
* **Red Triangle (SELL)**: Regular sell signal
* **Orange Triangle (STRONG SELL)**: Sell signal with strong trend
#### Additional Markings
* **Small Circles**: Engulfing patterns
* **Arrows**: High/low breakouts
* **Yellow Background**: Volume surge
### 3. Entry Strategy
#### Recommended Entry Conditions
1. **Signal Triggered**: BUY or SELL signal appears
2. **Filter Confirmation**: Info panel shows "OK" status
3. **Trend Strength**: Score of 2 or higher (3+ for strong signals)
4. **Multi-Timeframe Alignment**: MAs from multiple timeframes point in same direction
#### Situations to Avoid
* Filter status shows “Distance NG”, “RSI NG”, etc.
* Trend strength score is 1 or lower
* Just before major economic events
* Around market open/close times
### 4. Risk Management
#### Stop Loss Setup
* **Buy**: Below recent low or support
* **Sell**: Above recent high or resistance
* **MA Reference**: Cut loss clearly below 200MA
#### Position Sizing
* Strong signals: Slightly larger positions
* Regular signals: Standard size
* Weak filter status: Smaller positions
## Optimization Tips
### Parameter Tuning
1. **Run Backtests**: Evaluate historical performance
2. **Adapt to Timeframe**: Adjust MA period to match trading timeframe
3. **Pair-Specific Tweaks**: Calibrate filters based on volatility
4. **Adapt to Market Conditions**: Change settings for trend vs range markets
### Combined Usage
* **Other Indicators**: Fibonacci, Support/Resistance
* **Fundamental Analysis**: Economic events, central bank policies
* **Time-of-Day Analysis**: Consider characteristics of Asian, EU, US sessions
## Important Notes
1. **Past results don’t guarantee future performance**: Don't rely solely on backtests
2. **Changing Market Conditions**: Effectiveness varies in trending vs ranging markets
3. **News Impact**: Technical setups can be invalidated by major announcements
4. **Leverage Risk**: Use high leverage cautiously
5. **Regular Review**: Periodically review parameters and performance
Although this indicator is a comprehensive analysis tool, final trading decisions should be made by taking multiple factors into account.
Nota Keluaran
# SMA/EMA Trade Signal - Detailed Guide## Indicator Overview
This indicator is a comprehensive trade signal detection system based on moving averages (SMA/EMA). It combines multi-timeframe moving average analysis, RSI filtering, trend strength assessment, and volume analysis to identify highly accurate entry points.
## Key Features
### 1. Multi-Timeframe Moving Average Display
* **Supported Timeframes**: 5m, 15m, 30m, 1H, 4H, Daily
* **MA Types**: SMA (Simple Moving Average) or EMA (Exponential Moving Average)
* **Period Settings**: Short MA (default 20), Long MA (default 200)
* **Visual Display**: Displayed with varying opacity lines per timeframe
### 2. Four Entry Signal Patterns
#### Buy Signals
1. **Breakout above 200MA**: Price breaks above the 200MA during an uptrend
2. **Rebound from 200MA**: Price pulls back to 200MA and rebounds in an uptrend
3. **Break above 20MA (above 200MA)**: 20MA breakout while above the 200MA
4. **Rebound from 20MA (above 200MA)**: Confirmed rebound from 20MA above 200MA (confirmed twice or more)
#### Sell Signals
1. **Breakdown below 200MA**: Price breaks below 200MA during a downtrend
2. **Rejection from 200MA**: Price rises to 200MA and falls back in a downtrend
3. **Break below 20MA (below 200MA)**: 20MA breakout to downside while under the 200MA
4. **Rejection from 20MA (below 200MA)**: Confirmed rejection from 20MA under 200MA (confirmed twice or more)
### 3. Advanced Filtering System
#### RSI Filter
* **Buy Signals**: Triggered when RSI is below 70
* **Sell Signals**: Triggered when RSI is above 30
* **Purpose**: Avoid entries in overheated markets
#### Distance Filter
* **Short MA Distance**: Within 2% of the 20MA
* **Long MA Distance**: Within 5% of the 200MA
* **200MA Proximity Filter**: Avoid entries when 200MA from other timeframes is too close
#### Trend Strength Filter
Trend strength is evaluated using the following 6 elements:
1. **Volume Surge**: 1.5x or more of the average volume
2. **Strong Candlestick**: Body is over 70% of the total range
3. **Consecutive Candles**: Two or more in the same direction
4. **High/Low Breakout**: Breaks 20-period high/low
5. **Engulfing Pattern**
6. **Range Breakout**: Breaks range with volume
### 4. Info Panel Display
Real-time display in the upper right panel:
* **Trend Status**: Uptrend / Downtrend / Range
* **Momentum**: Relationship between EMA15 and MA20
* **MA Bounce Count**: Long/short bounce count
* **MA Distance**: Degree of separation from MAs
* **Trend Strength Score**: Displayed as a score from 1 to 6
* **Distance to 200MA**: Nearest 200MA in pips
* **Filter Status**: Status of each filter (pass/fail)
## Parameter Details
### Display Settings
* **Show Current Timeframe MA**
* **Show \[Timeframe] MA**: Toggle for each timeframe
* **Show Trend Patterns**: Display trend pattern marks
* **Show Volume Surge Background**: Highlight background during volume spikes
### MA Period Settings
* **Short/Long MA Periods**
* **MA Type**: Choose between SMA or EMA
* **Timeframe-Specific Settings**: Set individually per timeframe
### Filter Settings
* **RSI Settings**: RSI period, overbought/oversold levels
* **Distance Filter**: Max allowable MA distance
* **Touch Detection**: Margin for MA touch judgment
* **Trend Strength**: Min score, volume multiplier, etc.
## How to Use
### 1. Basic Setup
1. Apply the indicator to the chart
2. Adjust MA periods according to the currency pair
3. Select desired timeframes
4. Set filter strength based on risk tolerance
### 2. Reading the Signals
#### Regular vs Strong Signals
* **Green Triangle (BUY)**: Regular buy signal
* **Lime Triangle (STRONG BUY)**: Buy signal with strong trend
* **Red Triangle (SELL)**: Regular sell signal
* **Orange Triangle (STRONG SELL)**: Sell signal with strong trend
#### Additional Markings
* **Small Circles**: Engulfing patterns
* **Arrows**: High/low breakouts
* **Yellow Background**: Volume surge
### 3. Entry Strategy
#### Recommended Entry Conditions
1. **Signal Triggered**: BUY or SELL signal appears
2. **Filter Confirmation**: Info panel shows "OK" status
3. **Trend Strength**: Score of 2 or higher (3+ for strong signals)
4. **Multi-Timeframe Alignment**: MAs from multiple timeframes point in same direction
#### Situations to Avoid
* Filter status shows “Distance NG”, “RSI NG”, etc.
* Trend strength score is 1 or lower
* Just before major economic events
* Around market open/close times
### 4. Risk Management
#### Stop Loss Setup
* **Buy**: Below recent low or support
* **Sell**: Above recent high or resistance
* **MA Reference**: Cut loss clearly below 200MA
#### Position Sizing
* Strong signals: Slightly larger positions
* Regular signals: Standard size
* Weak filter status: Smaller positions
## Optimization Tips
### Parameter Tuning
1. **Run Backtests**: Evaluate historical performance
2. **Adapt to Timeframe**: Adjust MA period to match trading timeframe
3. **Pair-Specific Tweaks**: Calibrate filters based on volatility
4. **Adapt to Market Conditions**: Change settings for trend vs range markets
### Combined Usage
* **Other Indicators**: Fibonacci, Support/Resistance
* **Fundamental Analysis**: Economic events, central bank policies
* **Time-of-Day Analysis**: Consider characteristics of Asian, EU, US sessions
## Important Notes
1. **Past results don’t guarantee future performance**: Don't rely solely on backtests
2. **Changing Market Conditions**: Effectiveness varies in trending vs ranging markets
3. **News Impact**: Technical setups can be invalidated by major announcements
4. **Leverage Risk**: Use high leverage cautiously
5. **Regular Review**: Periodically review parameters and performance
Although this indicator is a comprehensive analysis tool, final trading decisions should be made by taking multiple factors into account.
Nota Keluaran
# SMA/EMA Trade Signal - Detailed Guide## Indicator Overview
This indicator is a comprehensive trade signal detection system based on moving averages (SMA/EMA). It combines multi-timeframe moving average analysis, RSI filtering, trend strength assessment, and volume analysis to identify highly accurate entry points.
## Key Features
### 1. Multi-Timeframe Moving Average Display
* **Supported Timeframes**: 5m, 15m, 30m, 1H, 4H, Daily
* **MA Types**: SMA (Simple Moving Average) or EMA (Exponential Moving Average)
* **Period Settings**: Short MA (default 20), Long MA (default 200)
* **Visual Display**: Displayed with varying opacity lines per timeframe
### 2. Four Entry Signal Patterns
#### Buy Signals
1. **Breakout above 200MA**: Price breaks above the 200MA during an uptrend
2. **Rebound from 200MA**: Price pulls back to 200MA and rebounds in an uptrend
3. **Break above 20MA (above 200MA)**: 20MA breakout while above the 200MA
4. **Rebound from 20MA (above 200MA)**: Confirmed rebound from 20MA above 200MA (confirmed twice or more)
#### Sell Signals
1. **Breakdown below 200MA**: Price breaks below 200MA during a downtrend
2. **Rejection from 200MA**: Price rises to 200MA and falls back in a downtrend
3. **Break below 20MA (below 200MA)**: 20MA breakout to downside while under the 200MA
4. **Rejection from 20MA (below 200MA)**: Confirmed rejection from 20MA under 200MA (confirmed twice or more)
### 3. Advanced Filtering System
#### RSI Filter
* **Buy Signals**: Triggered when RSI is below 70
* **Sell Signals**: Triggered when RSI is above 30
* **Purpose**: Avoid entries in overheated markets
#### Distance Filter
* **Short MA Distance**: Within 2% of the 20MA
* **Long MA Distance**: Within 5% of the 200MA
* **200MA Proximity Filter**: Avoid entries when 200MA from other timeframes is too close
#### Trend Strength Filter
Trend strength is evaluated using the following 6 elements:
1. **Volume Surge**: 1.5x or more of the average volume
2. **Strong Candlestick**: Body is over 70% of the total range
3. **Consecutive Candles**: Two or more in the same direction
4. **High/Low Breakout**: Breaks 20-period high/low
5. **Engulfing Pattern**
6. **Range Breakout**: Breaks range with volume
### 4. Info Panel Display
Real-time display in the upper right panel:
* **Trend Status**: Uptrend / Downtrend / Range
* **Momentum**: Relationship between EMA15 and MA20
* **MA Bounce Count**: Long/short bounce count
* **MA Distance**: Degree of separation from MAs
* **Trend Strength Score**: Displayed as a score from 1 to 6
* **Distance to 200MA**: Nearest 200MA in pips
* **Filter Status**: Status of each filter (pass/fail)
## Parameter Details
### Display Settings
* **Show Current Timeframe MA**
* **Show \[Timeframe] MA**: Toggle for each timeframe
* **Show Trend Patterns**: Display trend pattern marks
* **Show Volume Surge Background**: Highlight background during volume spikes
### MA Period Settings
* **Short/Long MA Periods**
* **MA Type**: Choose between SMA or EMA
* **Timeframe-Specific Settings**: Set individually per timeframe
### Filter Settings
* **RSI Settings**: RSI period, overbought/oversold levels
* **Distance Filter**: Max allowable MA distance
* **Touch Detection**: Margin for MA touch judgment
* **Trend Strength**: Min score, volume multiplier, etc.
## How to Use
### 1. Basic Setup
1. Apply the indicator to the chart
2. Adjust MA periods according to the currency pair
3. Select desired timeframes
4. Set filter strength based on risk tolerance
### 2. Reading the Signals
#### Regular vs Strong Signals
* **Green Triangle (BUY)**: Regular buy signal
* **Lime Triangle (STRONG BUY)**: Buy signal with strong trend
* **Red Triangle (SELL)**: Regular sell signal
* **Orange Triangle (STRONG SELL)**: Sell signal with strong trend
#### Additional Markings
* **Small Circles**: Engulfing patterns
* **Arrows**: High/low breakouts
* **Yellow Background**: Volume surge
### 3. Entry Strategy
#### Recommended Entry Conditions
1. **Signal Triggered**: BUY or SELL signal appears
2. **Filter Confirmation**: Info panel shows "OK" status
3. **Trend Strength**: Score of 2 or higher (3+ for strong signals)
4. **Multi-Timeframe Alignment**: MAs from multiple timeframes point in same direction
#### Situations to Avoid
* Filter status shows “Distance NG”, “RSI NG”, etc.
* Trend strength score is 1 or lower
* Just before major economic events
* Around market open/close times
### 4. Risk Management
#### Stop Loss Setup
* **Buy**: Below recent low or support
* **Sell**: Above recent high or resistance
* **MA Reference**: Cut loss clearly below 200MA
#### Position Sizing
* Strong signals: Slightly larger positions
* Regular signals: Standard size
* Weak filter status: Smaller positions
## Optimization Tips
### Parameter Tuning
1. **Run Backtests**: Evaluate historical performance
2. **Adapt to Timeframe**: Adjust MA period to match trading timeframe
3. **Pair-Specific Tweaks**: Calibrate filters based on volatility
4. **Adapt to Market Conditions**: Change settings for trend vs range markets
### Combined Usage
* **Other Indicators**: Fibonacci, Support/Resistance
* **Fundamental Analysis**: Economic events, central bank policies
* **Time-of-Day Analysis**: Consider characteristics of Asian, EU, US sessions
## Important Notes
1. **Past results don’t guarantee future performance**: Don't rely solely on backtests
2. **Changing Market Conditions**: Effectiveness varies in trending vs ranging markets
3. **News Impact**: Technical setups can be invalidated by major announcements
4. **Leverage Risk**: Use high leverage cautiously
5. **Regular Review**: Periodically review parameters and performance
Although this indicator is a comprehensive analysis tool, final trading decisions should be made by taking multiple factors into account.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
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.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
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.