INVITE-ONLY SCRIPT
Güncellendi

Signal Generator [SciQua.com]

66
Signal Generator [SciQua.com] — Modular Signal Logic Tool

Signal Generator is a configurable utility designed to help users build and visualize custom signal logic using normalized and optionally smoothed input series. It supports a variety of trigger conditions, making it suitable for a broad range of technical signal detection tasks. This tool is intended for analytical and educational purposes as part of the broader SciQua framework for technical research and visualization.


This script does not execute trades and does not constitute financial advice. Results may vary depending on configuration and market context.


🔍 Purpose
  • Pre-process inputs via smoothing and normalization
  • Detect specific behaviors or transitions in data series
  • Configure multiple types of signal triggers
  • Annotate signals directly on the chart using optional shapes or labels
  • Apply debounce logic to manage signal frequency


🧱 Script Structure
1. Input Source
  • Default input: close
  • Any custom data series (e.g., indicator output) can be used


2. Smoothing (optional)
  • Methods: sma, ema, rma, hma, tema, gaussian, etc.
  • Purpose: Reduce short-term volatility or noise in the signal


3. Normalization (optional)
  • bounded (0–1 scale)
  • unbounded (centered scale)
  • zscore (statistical standardization)
  • none (raw input)
  • Helps align input behavior across different symbols/timeframes


⚙️ Trigger Methods
  • above, below — Static threshold comparisons
  • crosses, crosses above/below — Value crossing a line
  • equal, not equal — Equality checks
  • in range, outside range — Range boundary logic
  • increases, decreases — Detects directional change
  • equals previous, changes — Detects plateaus or jumps
  • turns up, turns down — 3-bar inflection detection
  • spike up, spike down — Sudden large moves
  • velocity exceeds, velocity drops below — Based on rate-of-change


🧰 Key Configuration Parameters
  • value: Threshold used in static comparisons
  • minVal, maxVal: For range-based triggers
  • spikeThreshold: Minimum jump/drop for spike detection
  • velocityPeriod: Bars to look back for rate-of-change
  • velocityThreshold: Minimum velocity to trigger signal
  • minBarsBetween: Debounce — minimum bars between signals
  • triggerDirection: "buy" or "sell" marker orientation
  • useShapes: Toggles between shape and label display


📊 Chart Overlays & Visualization
  • Smoothed/Normalized Series: Plots of pre-processed input
  • Trigger Thresholds: Visual reference for values, bounds, and velocity
  • Velocity Gradient Bar: Highlights intensity of movement
  • Signal Markers: Conditional labels or shapes on signal events


🧪 Sample Use Configurations
1. Range Reversal Setup
Pine Script®
Trigger: turns up / down Smoothing: sma or hma Normalization: zscore


2. Momentum Spike Filter
Pine Script®
Trigger: spike up / down Spike Threshold: 5.0 Smoothing: none Normalization: bounded


3. Trend Entry by Velocity
Pine Script®
Trigger: velocity exceeds Velocity Period: 5 Velocity Threshold: 2.5 Normalization: none


4. Debounced Cross
Pine Script®
Trigger: crosses above Smoothing: ema(20) Normalization: zscore(50) minBarsBetween: 10


🧭 Slope-Based Signal Approximation

To detect steep short-term changes, use:
Pine Script®
velocityPeriod = 1 triggerMethod = "velocity exceeds" velocityThreshold = 0.5


This mimics short-term “angle” detection based on delta rather than true geometric slope.

📝 Setup & Deployment
  1. Paste the script into the Pine Script editor
  2. Apply it to your desired chart
  3. Choose your input (e.g., RSI, MACD, price series)
  4. Configure smoothing and normalization as needed
  5. Select trigger logic suited to your analysis
  6. Observe and tune based on visual feedback


🌐 More Info
https://sciqua.com
Sürüm Notları
Signal Generator [SciQua.com] — Modular Signal Logic Tool

The Signal Generator is a configurable utility that helps users define and visualize custom signal logic using normalized and optionally smoothed input data. It supports various trigger types and visual cues, and is intended for technical research and educational use as part of the SciQua system.


This script is not a trading system. It does not place orders or give financial advice. Use it for chart-based signal exploration and backtest integration only.


🔍 Purpose

  • Apply smoothing and normalization to source data
  • Generate signals based on configurable value-based triggers
  • Plot signal points using shapes or labels
  • Apply optional debounce to space out signals
  • Expose signal conditions for use in strategies or other indicators


🧱 Script Structure

1. Input Source
  • Default: close
  • You may input any other indicator or custom series


2. Smoothing
  • Options: sma, ema, rma, hma, tema, gaussian, etc.
  • Purpose: Smooth volatility for more reliable signals


3. Normalization
  • bounded – scales values to [0,1]
  • unbounded – centered but unbounded scale
  • zscore – mean and standard deviation normalization
  • none – raw input


⚙️ Trigger Methods

  • above, below – Value crosses threshold
  • crosses above/below – Crossing events
  • equal, not equal – Static comparisons
  • in range, outside range – Range checks
  • increases, decreases – Momentum detection
  • equals previous, changes – Flatline or jolt detection
  • turns up/down – Simple inflection points
  • spike up/down – Sudden movement threshold
  • velocity exceeds/drops below – Measures rate-of-change over a period


🧰 Key Parameters

  • value – Threshold for simple comparisons
  • minVal / maxVal – Used for range checks
  • spikeThreshold – Delta required for a spike
  • velocityPeriod – Lookback window for velocity
  • velocityThreshold – Minimum change rate to qualify
  • minBarsBetween – Debounce window to suppress redundant signals
  • triggerDirection – "buy" or "sell" for visual placement
  • useShapes – Enable/disable shape markers vs. labels


📊 Chart Display

  • Smoothed / normalized series
  • Static and dynamic thresholds
  • Optional velocity color bars
  • Buy/Sell/Exit markers (shapes or labels)


✅ Built-in Conditions

This script exposes the following bool conditions for integration with strategies or other indicators:

  • condition.buy — True when a signal is triggered and triggerDirection == "buy"
  • condition.sell — True when a signal is triggered and triggerDirection == "sell"
  • condition.exit — True when a new signal is detected opposite the last one (i.e., direction change)


You can reference these directly:

Pine Script®
strategy.entry("Long", strategy.long, when = condition.buy) strategy.entry("Short", strategy.short, when = condition.sell) strategy.close_all(when = condition.exit)


This allows integration into custom logic for backtesting or signal stacking.

🧪 Example Configs

1. Reversal Near Extremes
Pine Script®
Trigger: turns up / down Smoothing: sma Normalization: zscore


2. Breakout Momentum Spike
Pine Script®
Trigger: spike up / down Spike Threshold: 5.0 Normalization: bounded


3. Velocity-Based Trend Entry
Pine Script®
Trigger: velocity exceeds Velocity Period: 5 Velocity Threshold: 2.5


4. Smoothed Cross With Debounce
Pine Script®
Trigger: crosses above Smoothing: ema(20) Normalization: zscore(50) minBarsBetween: 10


🧭 Slope Approximation

Use the following to approximate short-term slope (angle):

Pine Script®
velocityPeriod = 1 triggerMethod = "velocity exceeds" velocityThreshold = 0.5


This detects bar-to-bar changes above a threshold, conceptually similar to measuring angle steepness.

📝 Setup & Use

  1. Add to chart and select input series
  2. Configure smoothing and normalization if needed
  3. Choose trigger type
  4. Tune signal logic visually
  5. Connect to a strategy or multi-signal tool via alert conditions (Buy Shape, Sell Shape, Exit Shape)


🌐 More Info
https://sciqua.com

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.