OPEN-SOURCE SCRIPT
Diupdate

Multi-indicator Signal Builder [Skyrexio]

Overview
Multi-Indicator Signal Builder is a versatile, all-in-one script designed to streamline your trading workflow by combining multiple popular technical indicators under a single roof. It features a single-entry, single-exit logic, intrabar stop-loss/take-profit handling, an optional time filter, a visually accessible condition table, and a built-in statistics label. Traders can choose any combination of 12+ indicators (RSI, Ultimate Oscillator, Bollinger %B, Moving Averages, ADX, Stochastic, MACD, PSAR, MFI, CCI, Heikin Ashi, and a “TV Screener” placeholder) to form entry or exit conditions. This script aims to simplify strategy creation and analysis, making it a powerful toolkit for technical traders.

Indicators Overview
1. RSI (Relative Strength Index)
Measures recent price changes to evaluate overbought or oversold conditions on a 0–100 scale.
2. Ultimate Oscillator (UO)
Uses weighted averages of three different timeframes, aiming to confirm price momentum while avoiding false divergences.
3. Bollinger %B
Expresses price relative to Bollinger Bands, indicating whether price is near the upper band (overbought) or lower band (oversold).
4. Moving Average (MA)
Smooths price data over a specified period. The script supports both SMA and EMA to help identify trend direction and potential crossovers.
5. ADX (Average Directional Index)
Gauges the strength of a trend (0–100). Higher ADX signals stronger momentum, while lower ADX indicates a weaker trend.
6. Stochastic
Compares a closing price to a price range over a given period to identify momentum shifts and potential reversals.
7. MACD (Moving Average Convergence/Divergence)
Tracks the difference between two EMAs plus a signal line, commonly used to spot momentum flips through crossovers.
8. PSAR (Parabolic SAR)
Plots a trailing stop-and-reverse dot that moves with the trend. Often used to signal potential reversals when price crosses PSAR.
9. MFI (Money Flow Index)
Similar to RSI but incorporates volume data. A reading above 80 can suggest overbought conditions, while below 20 may indicate oversold.
10. CCI (Commodity Channel Index)
Identifies cyclical trends or overbought/oversold levels by comparing current price to an average price over a set timeframe.
11. Heikin Ashi
A type of candlestick charting that filters out market noise. The script uses a streak-based approach (multiple consecutive bullish or bearish bars) to gauge mini-trends.
12. TV Screener
A placeholder condition designed to integrate external buy/sell logic (like a TradingView “Buy” or “Sell” rating). Users can override or reference external signals if desired.

Unique Features
1. Multi-Indicator Entry and Exit
You can selectively enable any subset of 12+ classic indicators, each with customizable parameters and conditions. A position opens only if all enabled entry conditions are met, and it closes only when all enabled exit conditions are satisfied, helping reduce false triggers.
2. Single-Entry / Single-Exit with Intrabar SL/TP
The script supports a single position at a time. Once a position is open, it monitors intrabar to see if the price hits your stop-loss or take-profit levels before the bar closes, making results more realistic for fast-moving markets.
3. Time Window Filter
Users may specify a start/end date range during which trades are allowed, making it convenient to focus on specific market cycles for backtesting or live trading.
4. Condition Table and Statistics
A table at the bottom of the chart lists all active entry/exit indicators. Upon each closed trade, an integrated statistics label displays net profit, total trades, win/loss count, average and median PnL, etc.
5. Seamless Alerts and Automation
  • Configure alerts in TradingView using “Any alert() function call.”
  • The script sends JSON alert messages you can route to your own webhook.
  • The indicator can be integrated with Skyrexio alert bots to automate execution on major cryptocurrency exchanges

6. Optional MA/PSAR Plots
For added visual clarity, optionally plot the chosen moving averages or PSAR on the chart to confirm signals without stacking multiple indicators.

Methodology
1. Multi-Indicator Entry Logic
When multiple entry indicators are enabled (e.g., RSI + Stochastic + MACD), the script requires all signals to align before generating an entry. Each indicator can be set for crossovers, crossunders, thresholds (above/below), etc. This “AND” logic aims to filter out low-confidence triggers.
2. Single-Entry Intrabar SL/TP
  • One Position At a Time: Once an entry signal triggers, a trade opens at the bar’s close.
  • Intrabar Checks: Stop-loss and take-profit levels (if enabled) are monitored on every tick. If either is reached, the position closes immediately, without waiting for the bar to end.

3. Exit Logic
  • All Conditions Must Agree: If the trade is still open (SL/TP not triggered), then all enabled exit indicators must confirm a closure before the script exits on the bar’s close.

4. Time Filter
  • Optional Trading Window: You can activate a date/time range to constrain entries and exits strictly to that interval.


Justification of Methodology
  • Indicator Confluence: Combining multiple tools (RSI, MACD, etc.) can reduce noise and false signals.
  • Intrabar SL/TP: Capturing real-time spikes or dips provides a more precise reflection of typical live trading scenarios.
  • Single-Entry Model: Straightforward for both manual and automated tracking (especially important in bridging to bots).
  • Custom Date Range: Helps refine backtesting for specific market conditions or to avoid known irregular data periods.


How to Use
1. Add the Script to Your Chart
  • In TradingView, open Indicators, search for “Multi-indicator Signal Builder”.
  • Click to add it to your chart.

2. Configure Inputs
  • Time Filter: Set a start and end date for trades.
  • Alerts Messages: Input any JSON or text payload needed by your external service or bot.
  • Entry Conditions: Enable and configure any indicators (e.g., RSI, MACD) for a confluence-based entry.
  • Close Conditions: Enable exit indicators, along with optional SL (negative %) and TP (positive %) levels.

3. Set Up Alerts
  • In TradingView, select “Create Alert” → Condition = “Any alert() function call” → choose this script.
  • Entry Alert: Triggers on the script’s entry signal.
  • Close Alert: Triggers on the script’s close signal (or if SL/TP is hit).
  • Skyrexio Alert Bots: You can route these alerts via webhook to Skyrexio alert bots to automate order execution on major crypto exchanges (or any other supported broker).

4. Visual Reference
  • A condition table at the bottom summarizes active signals.
  • Statistics Label updates automatically as trades are closed, showing PnL stats and distribution metrics.


Backtesting Guidelines
  • Symbol/Timeframe: Works on multiple assets and timeframes; always do thorough testing.
  • Realistic Costs: Adjust commissions and potential slippage to match typical exchange conditions.
  • Risk Management: If using the built-in stop-loss/take-profit, set percentages that reflect your personal risk tolerance.
  • Longer Test Horizons: Verify performance across diverse market cycles to gauge reliability.

Example of statistic calculation
  • Test Period: 2023-01-01 to 2025-12-31
  • Initial Capital: $1,000
  • Commission: 0.1%, Slippage ~5 ticks
  • Trade Count: 468 (varies by strategy conditions)
  • Win rate: 76% (varies by strategy conditions)
  • Net Profit: +96.17% (varies by strategy conditions)


Disclaimer
This indicator is provided strictly for informational and educational purposes.
  • It does not constitute financial or trading advice.
  • Past performance never guarantees future results.
  • Always test thoroughly in demo environments before using real capital.


Enjoy exploring the Multi-Indicator Signal Builder! Experiment with different indicator combinations and adjust parameters to align with your trading preferences, whether you trade manually or link your alerts to external automation services. Happy trading and stay safe!
Catatan Rilis
Stochastic conditions for entry and close were split into two independent checks—Condition K vs. level and Condition K vs. D —each with its own enable toggle and logic, similar to how MACD 0-line and cross signals are handled. This gives you more granular control over how Stochastic triggers entries and exits in your strategy
Catatan Rilis
Release v1.2 - Summary of Changes
• Removed the redundant f_hasAnyEntrySignals() usage, consolidating entry logic to rely solely on f_allTrueSignals() for a cleaner approach.
• Cleaned up the indicator display so that no technical parameters are visible in the title, maintaining a simpler user interface.
• Fixed alert triggering and plotting intra bar
• Other minor improvements to ensure readability and consistency.

Pernyataan Penyangkalan