OPEN-SOURCE SCRIPT
업데이트됨 41-80 F&O MA Screener

This Pine Script is a TradingView indicator named "41-80-F&O EMA Screener." It calculates and displays four moving averages (MA1, MA2, MA3, and MA4) and the Relative Strength Index (RSI) on a chart. The script generates buy and short signals based on certain conditions involving the moving averages and RSI. Additionally, it includes a screener section that displays a table of symbols with buy and short signals.
Here's a breakdown of the key components:
Moving Averages (MAs):
MA1: Simple Moving Average with length len1 (green line).
MA2: Simple Moving Average with length len2 (red line).
MA3: Simple Moving Average with length len3 (orange line).
MA4: Simple Moving Average with length len4 (black line).
Relative Strength Index (RSI):
The RSI is calculated with a length of rsiLengthInput and a source specified by rsiSourceInput.
Conditions for Buy and Short Signals:
Buy Signal: When MA1 is above MA2 and MA3, and RSI is above 50.
Short Signal: When MA1 is below MA2 and MA3, and RSI is below 50.
Signal Plots:
Buy signals are plotted as "B" below the corresponding bars.
Short signals are plotted as "S" above the corresponding bars.
Background Coloring:
Bars are colored based on their opening and closing prices.
Screener Section:
The script defines a watchlist (gticker) with 40 predefined symbols.
It then calls the getSignal function for each symbol to identify buy and short signals.
The results are displayed in a table with long signals in green and short signals in red.
Table Theming:
The script allows customization of the table's background, frame, and text colors, as well as the text size.
The table's location on the chart can also be customized.
Please note that the script uses the Mozilla Public License 2.0. Make sure to review and comply with the terms of this license if you plan to use or modify the script.
Here's a breakdown of the key components:
Moving Averages (MAs):
MA1: Simple Moving Average with length len1 (green line).
MA2: Simple Moving Average with length len2 (red line).
MA3: Simple Moving Average with length len3 (orange line).
MA4: Simple Moving Average with length len4 (black line).
Relative Strength Index (RSI):
The RSI is calculated with a length of rsiLengthInput and a source specified by rsiSourceInput.
Conditions for Buy and Short Signals:
Buy Signal: When MA1 is above MA2 and MA3, and RSI is above 50.
Short Signal: When MA1 is below MA2 and MA3, and RSI is below 50.
Signal Plots:
Buy signals are plotted as "B" below the corresponding bars.
Short signals are plotted as "S" above the corresponding bars.
Background Coloring:
Bars are colored based on their opening and closing prices.
Screener Section:
The script defines a watchlist (gticker) with 40 predefined symbols.
It then calls the getSignal function for each symbol to identify buy and short signals.
The results are displayed in a table with long signals in green and short signals in red.
Table Theming:
The script allows customization of the table's background, frame, and text colors, as well as the text size.
The table's location on the chart can also be customized.
Please note that the script uses the Mozilla Public License 2.0. Make sure to review and comply with the terms of this license if you plan to use or modify the script.
릴리즈 노트
This Pine Script for TradingView is a complex trading tool combining multiple indicators and functionalities. Here's a breakdown of its features and purpose:### 1. **Core Components**
- **EMA and ATR Trailing Stop Strategy**:
- Uses exponential moving average (EMA) and Average True Range (ATR) to define entry and exit points.
- Buy signals are generated when the price crosses above the ATR trailing stop.
- Sell signals are generated when the price crosses below the ATR trailing stop.
- Visual indicators (`plotshape`) show buy and sell signals on the chart.
- **Linear Regression-Based Candles**:
- Optionally smoothens OHLC data using linear regression to create trend-following candlestick visuals.
- **RSI and Moving Average Confirmation**:
- Incorporates RSI to measure momentum and combine it with MA crossovers to filter trade signals.
### 2. **Central Pivot Range (CPR)**:
- Calculates daily pivot levels, support, and resistance levels (`R1`, `R2`, `R3`, `S1`, `S2`, `S3`).
- Tracks the previous day’s high and low for additional context.
- Displays CPR and pivot levels on intraday charts for day trading strategies.
### 3. **Screener Functionality**:
- Includes a table dashboard that scans multiple predefined symbols to identify long and short signals.
- Populates the screener dynamically based on the latest buy/sell signals for the specified watchlist.
### 4. **Visualization and Alerts**:
- **Bar Coloring**: Bars are colored green/red based on ATR conditions, with additional indicators for momentum (yellow and black bars).
- **Table Display**: Creates a customizable table showing symbols with active long and short signals.
- **Alerts**: Generates alerts for long (`UT Long`) and short (`UT Short`) positions.
### 5. **Customization Options**:
- Provides a range of inputs for signal sensitivity, moving average types, ATR period, Heikin Ashi candles, and display themes.
- Allows users to set various lengths for MA and RSI to tailor the strategy to their needs.
### 6. **Intended Usage**:
This script is designed for traders who:
- Use trend-following strategies combined with pivot levels and momentum indicators.
- Need a visual aid to identify entry/exit points based on smoothed and calculated data.
- Require a screener to monitor multiple assets simultaneously.
- Want to automate alerts for trade opportunities.
In summary, this Pine Script integrates EMA, ATR trailing stops, RSI, linear regression candles, and CPR to provide a comprehensive trading strategy, alongside a screener and alert system for active trading.
릴리즈 노트
Fixes some of the errors with the screener and updated my favourite listof stocks and commodity scirps. You may add your favourite stocks in Settings as per your need.오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.