OPEN-SOURCE SCRIPT
Updated [Kpt-Ahab] Moving Average Alarm Output

Various Moving Average with Signal Outputs
Compatible with various backtesting-systems or risk management-systems for generating alarms and trading signals.
Also compatible with the djmad Multibit ecosystem, allowing for signal filtering or combining indicators.
Standard signal output Long/Short +1/-1
Filter, for suppressing signals

Various color variations.

Compatible with various backtesting-systems or risk management-systems for generating alarms and trading signals.
Also compatible with the djmad Multibit ecosystem, allowing for signal filtering or combining indicators.
Standard signal output Long/Short +1/-1
Filter, for suppressing signals
Various color variations.
Release Notes
DescriptionThis script monitors the crossing of different moving averages and triggers alerts based on various selected conditions.
It supports basic alerts as well as integration with the more advanced Multibit for complex signal handling.
Triggerlines (Alert Modes and Signal Display Settings)
Alert mode → Selects under which condition alerts are triggered:
Cross MA When the short-term MA crosses above the long-term MA.
Cross MA with Daily Trend As above, only if both MAs are above the Daily SMA
Cross MA reverse Trend Cross upwards, even though both MAs are below the Daily SMA
Cross MA 2 Cross Daily When the long-term MA crosses above the Daily SMA
standard signal output on/off →
On = Produces normal alerts with value +1 (buy) and -1 (sell).
Off = Switches to Multibit transmission mode (for more complex setups).
Alert Outputs
If standard signal output on/off = on:
+1 → Buy Signal
-1 → Sell Signal
If standard signal output on/off = off:
Uses the library: djmad/Signal_transcoder_library/7.
Assign signals to Multibit channels (channels 1–8).
Long Signal / Short Signal / Small Trend Buy / Small Trend Sell / Big Trend Buy / Big Trend Sell / Combined Trend Buy / Combined Trend Sell
Signal: Crossing MA
Trend: fast MAs that are above or below slow MAs
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.