EMA (20/50/100/200) whitelinesModified version: credits to drsweets
Plots exponential moving average on four timeframes at once for rapid indication of momentum shift as well as slower-moving confirmations. Displays EMA 20, 50, 100, and 200... default colors are hotter for faster timeframes, cooler for slower ones
Indicators and strategies
True Hour Open🧠 Why Count an Hour from 30th Minute to 30th Minute?
✅ Traditional Hour vs. Functional Hour
Traditional Time Logic: We’re used to viewing time in clean hourly chunks: 12:00 to 1:00, 1:00 to 2:00, and so on. This structure is fine for general purposes like clocks, meetings, and schedules.
Market Logic: Markets, however, don’t always respect these arbitrary human-made time divisions. Price action often develops momentum, structure, and transitions based on market participants' behavior, not on the clock.
🛠 What the Indicator Does
Marks the start of each hour at the 30th minute past the hour (e.g., 1:30, 2:30, 3:30).
Can highlight or segment candles that fall within a “30-to-30” hourly window.
Optionally draws background shading, lines, or boxes to visually group candles from one 30-minute mark to the next.
This helps you:
Visually align your trading with more accurate price behavior windows.
Anchor time blocks around actual market rhythm, not artificial time slots.
Backtest and strategize based on how candles behave in these alternative hourly segments.
📈 Summary
Trading is about timing. But great trading is about timing that makes sense.
By redefining the hour from 30 to 30, you’re not changing time—you’re aligning with how price moves in time.
Lower TF Confirmation (Buy/Sell)basic confirmation for entry on lower TF based on multiple indicators used in specific strategy. can assist with better entries
Range Trading Entry Signals (Trend Considered)# Range Market Entry Signal Indicator Guide
## Overview
This indicator is a custom TradingView indicator designed to identify effective entry points in range-bound (sideways) markets. It primarily uses RSI (Relative Strength Index) and visually displays range upper and lower bounds to provide counter-trend trading opportunities.
## Key Features
### 1. Range Identification Function
- **Range Upper/Lower Lines**: Automatically identifies ranges based on the highest and lowest values over a specified period (default 50 periods)
- **70% Line Display**: Shows positions at 30% from the top and bottom of the range, providing more precise entry points
### 2. RSI-Based Signal Generation
- **Buy Signal**: Triggered when RSI reverses after falling below the oversold line (default 30)
- **Sell Signal**: Triggered when RSI reverses after rising above the overbought line (default 80)
### 3. Moving Average Filter (Optional)
- Uses 20-period simple moving average as an auxiliary indicator
- Filtering function that considers trend direction
### 4. Information Display Table
- Current RSI value
- Range upper and lower bound values
- Moving average value
- Supports real-time market condition assessment
## Configuration Parameters
| Parameter | Default Value | Description |
|-----------|---------------|-------------|
| RSI Period | 14 | Period used for RSI calculation |
| RSI Oversold Line | 30 | Threshold for buy signals |
| RSI Overbought Line | 80 | Threshold for sell signals |
| Moving Average Period | 20 | Period for auxiliary moving average |
| Range Detection Period | 50 | Period for calculating range upper/lower bounds |
| Use Moving Average Filter | True | Enable/disable moving average filter |
## Entry Strategies and Usage Examples
### Basic Entry Methods
#### 🟢 Buy Entry
**Conditions**:
- RSI recovers above 31 after falling below 30
- (Optional) Current price is above the 20-period moving average
**Example**:
```
1. Price moves near the range lower bound
2. RSI drops to 28
3. Next candle shows RSI rising to 32 → Buy signal generated
4. Enter near the range lower 70% line
```
#### 🔴 Sell Entry
**Conditions**:
- RSI falls below 79 after rising above 80
- (Optional) Current price is below the 20-period moving average
**Example**:
```
1. Price moves near the range upper bound
2. RSI rises to 82
3. Next candle shows RSI falling to 78 → Sell signal generated
4. Enter near the range upper 70% line
```
### Profit-Taking Strategies
#### Pattern 1: Take Profit at Opposite Range Side
- **Long Positions**: Take profit at range upper bound or upper 70% line
- **Short Positions**: Take profit at range lower bound or lower 70% line
#### Pattern 2: Take Profit on RSI Reversal
- **Long Positions**: When RSI reaches 70-80 levels
- **Short Positions**: When RSI reaches 20-30 levels
#### Pattern 3: Take Profit on Moving Average Cross
- Partial profit-taking when price crosses the moving average in the opposite direction
### Risk Management
#### Stop Loss Placement
- **Long Positions**: Clear break below the range lower bound
- **Short Positions**: Clear break above the range upper bound
#### Position Size Adjustment
- Adjust position size according to range height (upper bound - lower bound)
- Larger positions for narrow ranges, smaller positions for wide ranges
## Optimal Market Conditions
### Suitable Markets
✅ **Range-bound (sideways) markets**
✅ **Markets with moderate volatility**
✅ **Markets with clear support and resistance levels**
### Markets to Avoid
❌ **Strong trending markets**
❌ **Extremely low volatility markets**
❌ **Before and after major economic announcements**
## Practical Usage Tips
### 1. Timeframe Selection
- **Day Trading**: 5-minute to 1-hour charts
- **Swing Trading**: 4-hour to daily charts
### 2. Combination with Other Indicators
- **Bollinger Bands**: Confirm range validity
- **MACD**: Assess trend strength
- **Volume**: Improve signal reliability
### 3. Important Considerations
- Don't rely on a single indicator; use multiple confirmation factors
- Adjust parameters according to changing market conditions
- Backtest historical performance before applying to live trading
## Summary
This indicator is a specialized tool for counter-trend strategies in range-bound markets. By combining RSI reversal signals with range lines, it can help identify efficient entry points. However, the key to success lies in correctly assessing market conditions and using appropriate risk management techniques in conjunction with the indicator.
Extended Ichimoku + Multi-Horizon MAExtended Ichimoku + Multi-Horizon MA
This script is a customized extension of the Ichimoku Cloud indicator, designed for traders who want deeper insights into trend behavior across multiple timeframes.
📌 Features:
Multiple Donchian-based lines: TK, KJ, Mid, Near, Far, UltraFar, and Horizon lines give layered support/resistance levels.
Expanded Senkou Span logic: Combines various Ichimoku components for a smoother forecasted cloud projection.
Balance Line: An aggregate average line for mid-to-long-term equilibrium tracking.
Customizable Moving Averages: MA1 and MA2 can be configured as SMA, EMA, WMA, VWMA, or SMMA with length/offset options.
Crossover signals: Built-in alerts for bullish/bearish MA crossovers.
🧠 Use Case:
Ideal for intraday and swing traders looking to combine classic trend detection with longer-term market structure. The script visually enhances Ichimoku logic with customizable moving averages for trend confirmation and cloud-based analysis.
Advanced Market Profile AnalysisChecking if the vpoc, ppoc, and poor high and poor low are any anomolies can be detected with it
MTF EMA with Smoothing OptionsThis indicator plots a smoothed Exponential Moving Average (EMA) from a higher or custom timeframe onto your current chart — perfect for blending multi-timeframe context into your intraday or swing trading strategy.
Features:
Custom Timeframe Selection: View a 1H, 4H, Daily (or any) EMA on lower timeframes.
Smooth Display: Option to remove stepped or jagged EMAs — clean interpolation for visual clarity.
Custom EMA Length & Source: Fully configurable length and input (close, open, hl2, etc.).
Dynamic Coloring: Line color shifts automatically:
Green (or your choice) if price is above the EMA
Red (or your choice) if price is below the EMA
Use Cases:
Visualize higher-timeframe trend on intraday charts
Confirm trend alignment across multiple timeframes
Combine with breakouts, pullbacks, or structure shifts
Doji Signals with Wick ColorThis indicator identifies Doji candlestick patterns on the chart and highlights both the candle body and wicks in yellow for better visibility.
A Doji is defined as a candle where the body size is relatively small compared to the full range (high - low), indicating market indecision. You can adjust the maximum allowed body size as a percentage of the total candle range using the "Doji's Max Body Size" input.
The indicator works by:
Calculating the body size (abs(open - close))
Comparing it to a threshold (precision * (high - low))
Highlighting candles that meet the condition as Doji, coloring both the body and wick in yellow
This visual aid helps traders quickly spot potential reversal or pause areas in price action based on candlestick psychology.
RSI Divergence (Double Peak Only)RSI Divergence (Double Peak Only)RSI Divergence (Double Peak Only)RSI Divergence (Double Peak Only)RSI Divergence (Double Peak Only)RSI Divergence (Double Peak Only)RSI Divergence (Double Peak Only)RSI Divergence (Double Peak Only)RSI Divergence (Double Peak Only)RSI Divergence (Double Peak Only)RSI Divergence (Double Peak Only)RSI Divergence (Double Peak Only)
Dynamic Flow Ribbons [BigBeluga]🔵 OVERVIEW
A dynamic multi-band trend visualization system that adapts to market volatility and reveals trend momentum with layered ribbon channels.
Dynamic Flow Ribbons transforms price action into flowing trend bands that expand and contract with volatility. It not only shows the active directional bias but also visualizes how strong or weak the trend is through layered ribbons, making it easier to assess trend quality and structure.
🔵 CONCEPTS
Uses an adaptive trend detection system built on a volatility envelope derived from an EMA of the average price (HLC3).
Measures volatility using a long-period average of the high-low range, which scales the envelope width dynamically.
Trend direction flips when the average price crosses above or below these envelopes.
Ribbons form around the trend line to show how far price is stretching or compressing relative to the mean.
🔵 FEATURES
Volatility-Based Trend Line:
A thick, color-coded line tracks the current trend with smoother transitions between phases.
Multi-Layered Flow Ribbons:
Up to 10 bands (5 above and 5 below) radiate outward from the upper and lower envelopes, reflecting volatility strength and direction.
Trend Coloring & Transitions:
Ribbons and candles are dynamically colored based on trend direction— green for bullish , orange for bearish . Transparency fades with distance from the core trend band.
Real-Time Responsiveness:
Ribbon structure and trend shifts update in real time, adapting instantly to fast market changes.
🔵 HOW TO USE
Use the color and thickness of the core trend line to follow directional bias.
When ribbons widen symmetrically, it signals strong trend momentum .
Narrowing or overlapping ribbons can suggest consolidation or transition zones .
Combine with breakout systems or volume tools to confirm impulsive or corrective phases .
Adjust the “Length” (factor) input to tune sensitivity—higher values smooth trends more.
🔵 CONCLUSION
Dynamic Flow Ribbons offers a sleek and insightful view into trend strength and structure. By visualizing volatility expansion with directional flow, it becomes a powerful overlay for momentum traders, swing strategists, and trend followers who want to stay ahead of evolving market flows
Volume Velocity by TenozenA new indicator is here!
Volume Velocity (VV) is designed to help identify whether the market is likely to trend or move sideways. When VV drops below 0, it suggests weak volume momentum, which often leads to choppy or range-bound price action. Conversely, a positive VV typically signals a stronger market drive, potentially indicating trend formation. (Strong reminder! Volume data quality is crucial! I suggest using volume data from futures market!)
VV is calculated using Kalman filter concepts; adapting to the state, covariance, and predictions over time, using matrix-based calculations.
To be honest, it's quite a complex method, and I’m still learning as I go. The current version is based on a translated formula that I personaly modified into Pine Script.
I’d really appreciate any insights or ideas you guys might have! Maybe there’s something I missed or a new approach I could try! Ciao!
Setup Score OscillatorSetup Score Oscillator – Full Description
🎯 Purpose of the Script
This script is a manual trading setup scoring tool, designed to help traders quantify the quality of a trade setup by combining multiple technical, cyclical, and contextual signals.
Instead of relying on a single indicator, the trader manually selects which signals are present, and the script calculates a total score (0–100%), displayed as an oscillator in a separate panel (like RSI or MACD).
🔧 How it works in practice
1. Manual signal inputs
The script presents a set of checkboxes in the settings, where the trader can enable/disable the following signals:
✅ Confirmed Support/Resistance
✅ Aligned Volume Profile
✅ Favorable Cyclic Timing
✅ Valid Trend Line
✅ Aligned Cyclical Moving Averages
✅ Relevant Fibonacci Level
✅ Classic Volume Signal (spike, dry-up, etc.)
✅ Oscillator confirmation (e.g., divergences)
✅ Extreme Sentiment
✅ Relevant or incoming News
Each selected signal contributes to the total score based on its weight.
2. Scoring system
Each signal has a default weight (e.g., 20% for support/resistance, 15% for cycles, etc.).
Optionally, the trader can enable the “custom weights” checkbox and adjust each signal’s weight directly in the settings.
3. Score visualization
The final score (sum of all active weights) is plotted as an oscillator ranging from 0 to 100%, with dynamic coloring:
Range Color Meaning
0–39% Red No valid setup
40–54% Yellow Watchlist only
55–69% Orange Good setup
70–100% Green Strong setup
Several horizontal threshold lines are displayed:
50% → neutral threshold
40%, 55%, 70% → operational levels
4. Optional background coloring
When the score exceeds 55% or 70%, the oscillator background lightly changes color to highlight stronger setups (non-intrusive).
📌 Practical benefits
Objectifies subjective analysis: each decision becomes a number.
Prevents overtrading: no entries if the score is too low.
Adaptable to any trading style: swing, intraday, positional.
User-friendly: no coding needed – just tick boxes.
Italiano:
Setup Score Oscillator – Descrizione completa
🎯 Obiettivo dello script
Lo script è uno strumento manuale di valutazione dei setup di trading, pensato per aiutare il trader a quantificare la qualità di un'opportunità operativa basandosi su più segnali tecnici, ciclici e contestuali.
Invece di affidarsi a un solo indicatore, il trader seleziona manualmente quali segnali sono presenti, e lo script calcola un punteggio complessivo percentuale (0–100%), rappresentato come oscillatore in una finestra separata (tipo RSI, MACD, ecc.).
🔧 Come funziona operativamente
1. Input manuale dei segnali
Lo script mostra una serie di checkbox nelle impostazioni, dove il trader può attivare o disattivare i seguenti segnali:
✅ Supporto/Resistenza confermata
✅ Volume Profile allineato
✅ Cicli o timing favorevole
✅ Trend line valida
✅ Medie mobili cicliche allineate
✅ Livello di Fibonacci rilevante
✅ Volume classico significativo (spike, dry-up)
✅ Conferme da oscillatori (es. divergenze)
✅ Sentiment estremo (es. euforia o panico)
✅ News importanti imminenti o appena uscite
Ogni casella attiva contribuisce al punteggio totale, con un peso specifico.
2. Sistema di punteggio
Ogni segnale ha un peso predefinito (es. 20% per supporti/resistenze, 15% per cicli, ecc.).
Facoltativamente, il trader può attivare la funzione “Enable custom weights” per personalizzare i pesi di ciascun segnale direttamente da input.
3. Visualizzazione del punteggio
Il punteggio complessivo (somma dei pesi attivati) viene tracciato come oscillatore da 0 a 100%, con colori dinamici:
Range Colore Significato
0–39% Rosso Nessun setup valido
40–54% Giallo Osservazione
55–69% Arancione Setup buono
70–1005 Verde Setup forte
Sono tracciate anche delle linee guida orizzontali a:
50% → soglia neutra
40%, 55%, 70% → soglie operative
4. Colorazione dello sfondo (facoltativa)
Quando il punteggio supera 55% o 70%, lo sfondo dell’oscillatore cambia leggermente colore per evidenziare il segnale (non invasivo).
📌 Vantaggi pratici
Oggettivizza l’analisi soggettiva: ogni decisione manuale si trasforma in un numero.
Evita overtrading: se il punteggio è troppo basso, non si entra.
Adattabile a ogni stile: swing, intraday, position.
Facile da usare anche senza codice: basta spuntare le caselle.
KEY MARKET SESSION EU/US RANGE LEVELS - KLT🔹 KEY MARKET SESSION EU/US RANGE LEVELS - KLT
This indicator highlights critical trading levels during the European and U.S. sessions, with Overbought (OB) and Oversold (OS) markers derived from each session's price range.
It’s designed to support traders in identifying key zones of interest and historical price reactions across sessions.
✳️ Features
🕒 Session Recognition
European Session (EU): 08:00 to 14:00 UTC
United States Session (US): 14:30 to 21:00 UTC
The indicator automatically detects the current session and updates levels in real time.
📈 Overbought / Oversold (OB/OS) Levels
Helps identify potential reversal or reaction zones.
🔁 Previous Session OB/OS Crosses
OB/OS levels from the previous session are plotted as white crosses during the opposite session:
EU OB/OS shown during the US session
US OB/OS shown during the EU session
These levels act as potential price targets or reaction areas based on prior session behavior.
🎨 Session-Based Color Coding
EU Session
High/Low: Orange / Fuchsia
OB/OS: Orange / Lime
Previous OB/OS: White crosses during the US session
US Session
High/Low: Aqua / Teal
OB/OS: Aqua / Lime
Previous OB/OS: White crosses during the EU session
🧠 How to Use
Use the OB/OS levels to gauge potential turning points or extended moves.
Watch for previous session crosses to spot historically relevant zones that may attract price.
Monitor extended High/Low lines as potential magnets for price continuation.
🛠 Additional Notes
No repainting; levels are session-locked and tracked in real time.
Optimized for intraday strategies, scalping, and session-based planning.
Works best on assets with clear session behavior (e.g., forex, indices, major commodities).
⚠️ Disclaimer
This tool is intended for educational purposes. Always manage risk appropriately and use confluence with other analysis tools.
🔐 Copyright © KEY LEVELS TRADING
Squeeze Pro Momentum BAR color - KLTDescription:
The Squeeze Pro Momentum indicator is a powerful tool designed to detect volatility compression ("squeeze" zones) and visualize momentum shifts using a refined color-based system. This script blends the well-known concepts of Bollinger Bands and Keltner Channels with an optimized momentum engine that uses dynamic color gradients to reflect trend strength, direction, and volatility.
It’s built for traders who want early warning of potential breakouts and clearer insight into underlying market momentum.
🔍 How It Works:
📉 Squeeze Detection:
This indicator identifies "squeeze" conditions by comparing Bollinger Bands and Keltner Channels:
When Bollinger Bands are inside Keltner Channels → Squeeze is ON
When Bollinger Bands expand outside Keltner Channels → Squeeze is OFF
You’ll see squeeze zones classified as:
Wide
Normal
Narrow
Each represents varying levels of compression and breakout potential.
⚡ Momentum Engine:
Momentum is calculated using linear regression of the price's deviation from a dynamic average of highs, lows, and closes. This gives a more accurate representation of directional pressure in the market.
🧠 Smart Candle Coloring (Optimized):
The momentum color logic is inspired by machine learning principles (no hardcoded thresholds):
EMA smoothing and rate of change (ROC) are used to detect momentum acceleration.
ATR-based filters help remove noise and false signals.
Colors are dynamically assigned based on both direction and trend strength.
🧪 How to Use It:
Look for Squeeze Conditions — especially narrow squeezes, which tend to precede high-momentum breakouts.
Confirm with Momentum Color — strong colors often indicate trend continuation; fading colors may signal exhaustion.
Combine with Price Action — use this tool with support/resistance or patterns for higher probability setups.
Recommended For:
Trend Traders
Breakout Traders
Volatility Strategy Users
Anyone who wants visual clarity on trend strength
📌 Tip: This indicator works great when layered with volume and price action patterns. It is fully non-repainting and supports overlay on price charts.
Disguised Candles by The School of Dalal StreetDisguised Candles corrects one of the subtle visual distortions present in normal candlestick charts — the mismatch between the close of one candle and the open of the next.
On many instruments (especially at day/session breaks), the next candle’s open often jumps due to price gaps or data feed behavior. This can make reading the flow of price action harder than necessary.
Disguised Candles fixes this by plotting synthetic candles where the open of each candle is forced to match the close of the previous one — creating a visually continuous flow of price.
Real candles are made fully transparent, so only the "corrected" candles are visible.
This allows traders to:
Visualize price flow as a smooth path
Better spot true directional shifts and trends
Avoid distractions caused by technical gaps that are not meaningful to their strategy
🚀 Pure visual clarity. No noise from false opens.
How it works:
The open of each synthetic candle = close of previous real candle
High, Low, Close remain unchanged
Colors are based on Close vs Corrected Open
Real chart candles are hidden under a transparent overlay
Use this as a clean canvas for trend analysis or as a foundation for building new visual systems.
Dax 8:15am School run Target Lines V2 (lower TF) Taken from Tom Hougaard basic School run break out strategy. enabling me target exit points. Works best on a 7m break out i find. Close within range and close trade and usually an Anti.
Market Cipher B ReplicaMarket Cipher B Replica for Pine Script v6
This script is a custom indicator for TradingView inspired by the popular Market Cipher B.
It combines several market strength and momentum signals into a single, visually-rich oscillator, including:
RSI (Relative Strength Index)
MFI (Money Flow Index)
VWAP (Volume Weighted Average Price)
Custom momentum waves (multi-stage EMA smoothing)
Histogram for short-term momentum
Visual signals:
Colored wave fills above/below zero
Green/Red dots on momentum wave crossovers
Yellow/Blue pivot markers for local highs/lows
Trigger dots for potential reversals
Dynamic background coloring for market states (overbought, oversold, confluence, VWAP clouds)
All major features are toggleable, so you can customize what’s displayed for clarity and focus.
Purpose:
To help traders visually identify market momentum shifts, trend reversals, and areas of potential exhaustion or confluence—similar to what the original Market Cipher B does, but fully open-source and customizable.
Pashman - Long / Short EMA9-EMA21-VWAP Crossover & ExitEMA Crossover indicator for long or short entry points along with a exit signal when the momentum reverses. Further the EMA crossover signal is further enhanced with volume at the crossover being higher than the average of previous 9 periods.
Market Balance LevelMarket Balance Level (MBL)
This indicator dynamically identifies price consolidation zones (market balance levels) and plots a horizontal line at the average midpoint of the range once a valid breakout occurs. It helps traders visualize key zones where the market was previously in equilibrium and is likely to retest before continuing its trend.
How It Works:
Detects consolidation ranges using consecutive candles within a tight high-low structure.
When a breakout occurs (above or below the range), it plots a line at the average midpoint of the consolidation.
Triangles are drawn on breakouts to visually confirm the breakout direction.
Lines can be customized by color, width, and breakout direction (bullish, bearish, or both).
Recommended Use:
Wait for price to return to the Market Balance Level (MBL). These levels often act as strong support or resistance.
Enter upon engulfment (candle closes strongly in the direction of the breakout), confirming continuation.
Features:
Adjustable consolidation sensitivity and line length.
Option to show/hide bullish or bearish MBLs.
Visual breakout markers (triangles) with alert support.
Optional alert messages for breakout events.
Use this tool to enhance your structure-based or SMC-style trading strategies.
High-Low Moving Average AreaThe High Low Moving Average Area is a custom indicator crafted by Todi Chrisavero, designed to enhance price action analysis by shading the area between moving averages of high and low prices. Instead of displaying a single moving average line, this tool forms a dynamic price zone, helping traders visualize market structure, trend strength, and potential support/resistance levels more intuitively.
Prev_bar_open_RSPS_IBRARYLibrary "Prev_bar_open_RSPS_IBRARY"
get_color_scheme(scheme)
Parameters:
scheme (string)
f_get_color(value, threshold, pos_col, neg_col)
Parameters:
value (float)
threshold (float)
pos_col (color)
neg_col (color)
matrix_get(A, i, j, nrows)
Parameters:
A (array)
i (int)
j (int)
nrows (int)
matrix_set(A, value, i, j, nrows)
Parameters:
A (array)
value (float)
i (int)
j (int)
nrows (int)
transpose(A, nrows, ncolumns)
Parameters:
A (array)
nrows (int)
ncolumns (int)
multiply(A, B, nrowsA, ncolumnsA, ncolumnsB)
Parameters:
A (array)
B (array)
nrowsA (int)
ncolumnsA (int)
ncolumnsB (int)
vnorm(X)
Parameters:
X (array)
qr_diag(A, nrows, ncolumns)
Parameters:
A (array)
nrows (int)
ncolumns (int)
pinv(A, nrows, ncolumns)
Parameters:
A (array)
nrows (int)
ncolumns (int)
calc_beta(beta_length, benchmark_symbol)
Parameters:
beta_length (int)
benchmark_symbol (string)
calc_alpha(alpha_length, beta_length, benchmark_symbol, risk_free_rate)
Parameters:
alpha_length (int)
beta_length (int)
benchmark_symbol (string)
risk_free_rate (float)
adftest(a, nLag, conf)
Parameters:
a (array)
nLag (int)
conf (string)
f_bartlett_weight(lag, max_lag)
Parameters:
lag (int)
max_lag (int)
f_autocovariance(x, lag)
Parameters:
x (array)
lag (int)
f_kpss_test(x, lags)
Parameters:
x (array)
lags (int)
f_get_critical_value(significance, sample_size)
Parameters:
significance (float)
sample_size (int)
get_ma(type, src, len)
Parameters:
type (string)
src (float)
len (simple int)
calculate_bb_percent(src, base_len, sd_len, sd_mult, percent_mult)
Parameters:
src (float)
base_len (int)
sd_len (int)
sd_mult (float)
percent_mult (float)
calculate_bb_market_filter(src, enable, base_len, sd_len, sd_mult, percent_mult, long_threshold, short_threshold, return_bb_percent)
Parameters:
src (float)
enable (bool)
base_len (int)
sd_len (int)
sd_mult (float)
percent_mult (float)
long_threshold (float)
short_threshold (float)
return_bb_percent (bool)
calc_TPI(src, base_len, sd_len, sd_mult, percent_mult, long_threshold, short_threshold)
Parameters:
src (float)
base_len (int)
sd_len (int)
sd_mult (float)
percent_mult (float)
long_threshold (float)
short_threshold (float)
detect_market_regime(price_src, enable_adf, adf_threshold, lookback, enable_dmi, dmi_threshold, enable_kpss, kpss_lookback, kpss_significance, enable_chop, chop_period, signal_period, enable_hilbert, smoothing_period, filter_period)
Parameters:
price_src (float)
enable_adf (bool)
adf_threshold (float)
lookback (int)
enable_dmi (bool)
dmi_threshold (float)
enable_kpss (bool)
kpss_lookback (int)
kpss_significance (float)
enable_chop (bool)
chop_period (int)
signal_period (simple int)
enable_hilbert (bool)
smoothing_period (int)
filter_period (int)
aggregate_market_regime(market_regimes, threshold)
Parameters:
market_regimes (array)
threshold (float)
f_get_asset_name(symbol)
Parameters:
symbol (string)
f_get_ranks(alphas, tpis, alpha_threshold)
Parameters:
alphas (array)
tpis (array)
alpha_threshold (float)
calc_metrics(current_equity, max_eq, returns_array, negative_returns_array, positive_returns_array, risk_free_rate)
Parameters:
current_equity (float)
max_eq (float)
returns_array (array)
negative_returns_array (array)
positive_returns_array (array)
risk_free_rate (float)
calculateMaxDrawdown(_equityCurve)
Parameters:
_equityCurve (float)