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.
הערות שחרור
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.
Chart patterns

סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יוכלו להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אבל השימוש החוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

רוצה להשתמש בסקריפ זה בגרף?

כתב ויתור