OPEN-SOURCE SCRIPT
מעודכן Momentum Pulse Signals

Momentum Pulse Signals
This indicator generates Buy/Sell badges from a simple momentum score (the "pulse"), then automatically manages an ATR-based stop loss and a risk:reward-based take profit for each signal, showing the resulting entry/stop/target levels directly on the chart.
The pulse is just two common indicators added together. RSI is re-centred so 50 becomes 0 and the range becomes −1 to +1. The MACD histogram is divided by its own recent standard deviation and clipped to the same −1 to +1 range, so it scales itself to whatever the instrument's normal histogram size happens to be. The two are blended with an adjustable weight. When the blended value pushes past a positive trigger level the state flips bullish; when it pushes past the negative trigger level it flips bearish. A badge prints on the flip. That's the whole idea.
Key Features
Blended RSI + MACD-histogram score generates the base Buy/Sell signal, with an optional candle-confirmation requirement (close beyond open in the signal direction).
The MACD part is normalised by its own rolling standard deviation, so the same trigger level works across instruments without rescaling.
A trigger level with a dead zone around zero means the state only flips on a decisive move, not on every wiggle across zero.
Optional slope filter: the pulse must also be moving in the signal's direction over the last few bars.
Automatic ATR-based stop loss and configurable Risk:Reward take profit are calculated for every new signal, with intermediate take-profit levels plotted when Risk:Reward is greater than 1.
On-chart entry / stop-loss / take-profit lines and an SL distance (in points) label, both toggleable.
Take-profit, stop-loss, and "invalidated" (opposite signal fired before target/stop was hit) markers are plotted separately so you can see how each trade idea played out.
Optional baseline plot coloured by whether the pulse is positive or negative.
Real-price calculation via request.security() keeps signals consistent regardless of chart type (Heikin Ashi, Renko, etc.).
A full set of alertcondition() calls for Buy/Sell signals, take-profit hits, stop-loss hits, and invalidated entries.
How to Use
Start with the defaults. Raise the Pulse Trigger Level if you want fewer badges, lower it if you want more.
Shorten the Normalization Length to make the MACD side react faster, lengthen it to make it steadier.
Move the RSI Weight toward 1 to lean on RSI, toward 0 to lean on MACD.
Turn the slope filter off if you want signals the moment the level is crossed rather than waiting for agreement.
Watch the on-chart entry/SL/TP lines to track an open idea's risk and progress.
Set alerts on "Buy/Sell Signal", "Entry Signal", "Take Profit Hit", "Stop Loss Hit", or "Entry Invalidated" depending on which events you want.
This indicator generates Buy/Sell badges from a simple momentum score (the "pulse"), then automatically manages an ATR-based stop loss and a risk:reward-based take profit for each signal, showing the resulting entry/stop/target levels directly on the chart.
The pulse is just two common indicators added together. RSI is re-centred so 50 becomes 0 and the range becomes −1 to +1. The MACD histogram is divided by its own recent standard deviation and clipped to the same −1 to +1 range, so it scales itself to whatever the instrument's normal histogram size happens to be. The two are blended with an adjustable weight. When the blended value pushes past a positive trigger level the state flips bullish; when it pushes past the negative trigger level it flips bearish. A badge prints on the flip. That's the whole idea.
Key Features
Blended RSI + MACD-histogram score generates the base Buy/Sell signal, with an optional candle-confirmation requirement (close beyond open in the signal direction).
The MACD part is normalised by its own rolling standard deviation, so the same trigger level works across instruments without rescaling.
A trigger level with a dead zone around zero means the state only flips on a decisive move, not on every wiggle across zero.
Optional slope filter: the pulse must also be moving in the signal's direction over the last few bars.
Automatic ATR-based stop loss and configurable Risk:Reward take profit are calculated for every new signal, with intermediate take-profit levels plotted when Risk:Reward is greater than 1.
On-chart entry / stop-loss / take-profit lines and an SL distance (in points) label, both toggleable.
Take-profit, stop-loss, and "invalidated" (opposite signal fired before target/stop was hit) markers are plotted separately so you can see how each trade idea played out.
Optional baseline plot coloured by whether the pulse is positive or negative.
Real-price calculation via request.security() keeps signals consistent regardless of chart type (Heikin Ashi, Renko, etc.).
A full set of alertcondition() calls for Buy/Sell signals, take-profit hits, stop-loss hits, and invalidated entries.
How to Use
Start with the defaults. Raise the Pulse Trigger Level if you want fewer badges, lower it if you want more.
Shorten the Normalization Length to make the MACD side react faster, lengthen it to make it steadier.
Move the RSI Weight toward 1 to lean on RSI, toward 0 to lean on MACD.
Turn the slope filter off if you want signals the moment the level is crossed rather than waiting for agreement.
Watch the on-chart entry/SL/TP lines to track an open idea's risk and progress.
Set alerts on "Buy/Sell Signal", "Entry Signal", "Take Profit Hit", "Stop Loss Hit", or "Entry Invalidated" depending on which events you want.
הערות שחרור
signal generation logic updates implementedסקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.