1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
Debug Test Generator gathers input values, output values, conditions, function calls, and edge cases into arrays. Users enable test generation and select types of tests to produce, including unit tests, integration tests, and edge cases. The script stores collected data but does not plot visible information on the chart. It draws in a separate pane. Main settings control whether to enable generation, what test types to create, and the maximum number of cases to collect. It has no exit rules or signals.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Enable Test Generation
bool
true
testGenEnabled
Generate Unit Tests
bool
true
generateUnitTests
Generate Integration Tests
bool
true
generateIntegrationTests
Generate Edge Cases
bool
true
generateEdgeCaseTests
Collect Test Data
bool
true
collectTestData
Max Test Cases
int
100
maxTestCases
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
Markov State Engine classifies market conditions into six distinct regimes, including strong trends, weak trends, compression, and expansion. It evaluates historical state transitions using an exit-conditional Markov model with Laplace smoothing to estimate re
Medallion Cipher is a separate-pane indicator that combines a four-state hidden Markov model (bull, bear, range, and crisis) with weighted confluence signals. It can include mean reversion, trend, session timing, pattern matching, Hurst exponent, Shannon entro
This indicator plots an optimal RSI in a separate pane and uses a k-nearest neighbour machine learning routine to adjust lookback and RSI count. It can mark RSI crossings, draw adaptive Bollinger bands around the RSI, and show tables of current settings. Users
This indicator provides an econometric nowcasting framework to track transmission risks from Brent crude oil prices and USD/VND exchange rates to Vietnam Consumer Price Index (CPI). Operating on a monthly chart, it employs a rolling asymmetric Ridge ARDL regre
This indicator uses a Hidden Markov Model (HMM) framework combined with an adaptive dual moving average engine and Directional Movement Index (DMI) features to identify market regimes (bullish, bearish, or ranging/chop). It calculates regime probabilities on e
This overlay indicator plots a SuperTrend-style band on the price chart using ATR length, a selectable source, and a base factor. Optional settings enable an adaptive factor driven by rate of change, a volatility filter, K-means clustering, and an LSTM layer w