OPEN-SOURCE SCRIPT
Cập nhật Air Gap MTF with alert settings

What it shows:
This indicator will show a horizontal line at a price where each EMAs are on on different time frames, which will remove the effort of having to flick through different time frames or look at different chart.
The lines itself will move in real time as price moves and therefore as the EMA values changes so no need to manually adjustment the lines.
How to use it:
The price gap between each of the lines are known as "air gaps", which are essentially zones price can move with less resistance. Therefore bigger the airgap there is more likely more movement in price.
In other words, where lines are can be a resistance (or support) and can expect price stagnation or rejection.
On the chart it is clear to see lines are acting as resistances/supports.
Key settings:
Alert Settings:
Manually, user can set alerts for when price crosses a specific line.
This can be done by:
----------------------------------------------------------------------
If anything is not clear please let me know!
This indicator will show a horizontal line at a price where each EMAs are on on different time frames, which will remove the effort of having to flick through different time frames or look at different chart.
The lines itself will move in real time as price moves and therefore as the EMA values changes so no need to manually adjustment the lines.
How to use it:
The price gap between each of the lines are known as "air gaps", which are essentially zones price can move with less resistance. Therefore bigger the airgap there is more likely more movement in price.
In other words, where lines are can be a resistance (or support) and can expect price stagnation or rejection.
On the chart it is clear to see lines are acting as resistances/supports.
Key settings:
- The time frame are fixed to: 30min, 1hr and 4hr. This cannot be changed as of now.
- EMA values for each time frame are user changeable in the settings, and up to 4 different values can be chosen for each time frame. Default is 5,12,34 and 50 for each timeframe.
- Line colour, thickness and style can be user adjusted. Start point for where line will be drawn can be changed in the settings, either: start of day, user defined start or across the chart. In case of user defined scenario user can input a number that specifies a offset from current candle.
- Label colour, font, alignment, text size and text itself can be user adjusted in the settings. Price can be also displayed if user chooses to do so. Position of label (offset from current candle) is user specified and can be adjusted by the user.
- Both the lines and labels can be turned off (both and individually), for each lines.
Alert Settings:
Manually, user can set alerts for when price crosses a specific line.
This can be done by:
- right click on any of line
- choose first option (add alert on...)
- On the second option under condition, use the dropdown menu to choose the desired EMA/timeframe to set alert for.
- Hit "create" at bottom right of option
----------------------------------------------------------------------
If anything is not clear please let me know!
Phát hành các Ghi chú
Update (23/07/2025):- Added 1D EMA lines. (Default is 5,12,34 and 50)
Phát hành các Ghi chú
- Added time frame selection rather than fixed time frame. User can now select the time frame for each of the EMA sets.
Phát hành các Ghi chú
Update: 22/09/2025Added functions:
- Turn on/off lines/labels
- Added table view of the EMA values (which can also be turned on/off) in settings
Table view:
- Comes in 2 settings "Standard" and "Ordered"
- In both settings the table displays: EMA name, EMA value and difference to current price (EMA value - current price)
- "Standard" shows the data in the order of settings
- "Ordered" will order the EMA in descending order by price.
Table Settings that can be changed:
- Header text and background colour
- Text colour for EMA name and EMA price
- Difference value text colour (positive and negative number independently)
- Current price background and text colour
- Table Size
- Table position
Phát hành các Ghi chú
UPDATE: 23/09/25- Names of EMAs in the table (1st column) can now be manually edited in the settings.
- Added background colour options for table:
Background colour includes: Same as line colour OR price difference to current price. The latter option changes background colour based on the price difference between EMA value and current price. You can choose 2 colours, based on the difference being positive or negative. If you want your table to a singular colour you can set both colours as same.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
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.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
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.