OPEN-SOURCE SCRIPT
Ashpi CVD + MACD Alert

MACD Crossing + CVD Support
Red arrows signal short entries above the MACD zero line.
Green arrows signal long entries below the zero line.
Blue arrows indicate a re-entry into an existing long trend (crossing above the zero line), typically on pull-backs.
Yellow arrows indicate a re-entry into an existing short trend (crossing below the zero line).
Time-Frame Setup
- Entry on the 15-second chart
- Confirmation on the 30-second chart
- Trade management on the 1-minute chart (or higher)
Always follow the primary trend: RED = Short, GREEN = Long.
Sequence
1. RED signal appears → enter short
2. During the trade, if a GREEN arrow appears on the pull-back → exit trade, or add to position on a YELLOW arrow if the trend continues
The same applies to long trades and BLUE arrows.
Using EMAs (20, 50, 200) can help you spot structural breaks more clearly.
Signal Strength (Delta Distance to Zero Line)
The strength of each signal is enhanced by displaying the distance (delta) to the zero line in the chart:
- Green numbers mean the delta is already above its 10-period moving average (MA10).
- Red numbers mean the delta is below its MA10.
Identifying Sideways Markets
Use a standard MACD as an additional filter to spot ranging phases.
If YELLOW and BLUE arrows occur frequently in succession, it indicates the two MACD lines are moving very close together—trading such conditions should generally be avoided.
Red arrows signal short entries above the MACD zero line.
Green arrows signal long entries below the zero line.
Blue arrows indicate a re-entry into an existing long trend (crossing above the zero line), typically on pull-backs.
Yellow arrows indicate a re-entry into an existing short trend (crossing below the zero line).
Time-Frame Setup
- Entry on the 15-second chart
- Confirmation on the 30-second chart
- Trade management on the 1-minute chart (or higher)
Always follow the primary trend: RED = Short, GREEN = Long.
Sequence
1. RED signal appears → enter short
2. During the trade, if a GREEN arrow appears on the pull-back → exit trade, or add to position on a YELLOW arrow if the trend continues
The same applies to long trades and BLUE arrows.
Using EMAs (20, 50, 200) can help you spot structural breaks more clearly.
Signal Strength (Delta Distance to Zero Line)
The strength of each signal is enhanced by displaying the distance (delta) to the zero line in the chart:
- Green numbers mean the delta is already above its 10-period moving average (MA10).
- Red numbers mean the delta is below its MA10.
Identifying Sideways Markets
Use a standard MACD as an additional filter to spot ranging phases.
If YELLOW and BLUE arrows occur frequently in succession, it indicates the two MACD lines are moving very close together—trading such conditions should generally be avoided.
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.