Cerca negli script per "profit"
PT MACD markedPT MACD indicator - marked green
- If you want to better see the values change the precision to the highest number.
Noro's Hundred Strategy v1.0Strategy uses:
1) Fast RSI (period = 7 bars)
2) Color of bars
Strategy
If RSI less than 30 is also 4 red candles in a row - to open long-position
If RSI more than 70 is also 4 green candles in a row - to open short-position
If long-position is open and there is 1 green candle - to close a position
If short-position is open and there is 1 red candle - to close a position
Only profit
Very dangerous thing! Strategy will close a position only if a position profitable. Most likely you will lose all money if you use this function.
Noro's Trend MAs Strategy v1.8Trade strategy which uses only 2 MA.
The slow MA (blue) is used for definition of a trend
The fast MA (red) is used for an entrance to the transaction
For:
- For H1
- For crypto/fiat or crypto/crypto
- Good for "BTC/USD", "ETH/USD", "ETH/BTC"
Recomended:
Long = true (if it is profitable as a result of backtests)
Short = true (if it is profitable as a result of backtests)
Stops = false
Stop, % = any
OHLC4 = any
Use Fast MA = true
Fast MA Period = 5
Slow MA Period = 21
Bars Q = (2 for "bitcoin/fiat" or 1 for "crypto/fiat" or 0 for "crypto/crypto")
In the new version 1.8
- The second PriceChannel is added
- Profit became more
- Losses became less
- The unnecessary types of MA are removed
Noro's Trend MAs Strategy v1.6Trade strategy which uses only 2 MA.
The slow MA (blue) is used for definition of a trend
The fast MA (red) is used for an entrance to the transaction
For:
- For H1
- For crypto/fiat
Recomended:
Long = true (if it is profitable as a result of backtests)
Short = true (if it is profitable as a result of backtests)
Type of slow MA = 7 (only for Crypto/Fiat)
Source of slow MA = close or OHLC4
Use Fast MA = true
Fast MA Period = 5
Slow MA Period = 20
Bars Q = (2 for "BitCoin/Fiat" or 1 for "Fork/Fiat")
In the new version 1.5
+ Profit became more
+ Losses became less
+ Alerts
+ Background (lime = uptrend, red = downtrend)
Types of slow MA:
1 = SMA = Simple Moving Average
2 = EMA = Exponential Moving Average
3 = VWMA = Volume-Weighted Moving Average
4 = DEMA = Double Exponential Moving Average
5 = TEMA = Triple Exponential Moving Average
6 = KAMA = Kaufman's Adaptive Moving Average
7 = Price Channel
Best SuperTrend BTCUSDMulti Chart view supported
//Best profits for $BTCUSD examples:
//res=165 view=30m fastPeriod=17 slowPeriod=9 profit %67.14 since 2017-08-14
//res=100 view=30m fastPeriod=16 slowPeriod=30 profit %57 since 2017-08-14
// If you want get access for super Trend with the best and optimazed values for:
//LTCUSD profit +%120
//ETHUSD profit +%80
//OMGUSD profit +%115
//BCHUSD profit +%80
//LTCUSD profit +%125
//XRP,DASH comming soon, these profits include trading fee %0.2
//
// Fee for access 0.005BTC or less per week
// Contact me by chat for a demo
BTCUSD
Free Strategy #08 (Combo of #01 and #02) (ES / SPY)This strategy was designed to be traded on daily data on the ES and SPY—the strategy was originally developed for NinjaTrader, which displays daily ES data based on RTH hours instead of 24 hours (1440 minute) like TradingView does, so we are presenting the results on the SPY until we figure out how to overcome this hurdle.
The strategy combines the two ideas from strategy #01 and strategy #02 .
Strategy #08
Quantity 100
Slippage: 2 ticks
Commission: 4.95 per order
Net Profit: 26,044.60
Max Drawdown: 3,947.60
Buy and Hold (Custom)
Quantity 100
Slippage: 2 ticks
Commission: 4.95 per order
Entry Long: 1993-02-01 @ 43.99
Exit Long: 2017-07-28 @ 246.34
Net Profit: 20,225.10
Max Drawdown: 9,042.00
Free Strategy #02 (ES / SPY)This strategy was designed to be traded on daily data on the ES and SPY—the strategy was originally developed for NinjaTrader, which displays daily ES data based on RTH hours instead of 24 hours (1440 minute) like TradingView does, so we are presenting the results on the SPY until we figure out how to overcome this hurdle.
Strategy #02
Quantity 100
Slippage: 2 ticks
Commission: 4.95 per order
Net Profit: 10,118.30
Max Drawdown: 4.037.60
Buy and Hold (Custom)
Quantity 100
Slippage: 2 ticks
Commission: 4.95 per order
Entry Long: 1993-02-01 @ 43.99
Exit Long: 2017-07-28 @ 246.34
Net Profit: 20,225.10
Max Drawdown: 9,042.00
CCI Level Zero Strategy (by Marcoweb) v1.0Hi guys,
My strategy is ready :)
Finally the zero level of the CCI gives the start and stop to my positions. As you could notice, setting up the CCI length to 340 area on 1 minute chart will let the profit factor go up to 20% from an already wonderful 16%. This is a great result cause will let profitable trades run while stopping the wrong ones with a very limited loss. What makes our profit are not several small little positions that are clearly unrepitable in real trade but few and very profitable positions in which jumping in will be easier due to their length (71 bars average).
Please share with me your impressions and suggestions.
Have a nice trade :)
I_Heikin Ashi CandleWhen apply a strategy to Heikin Ashi Candle chart (HA candle), the strategy will use the open/close/high/low values of the Heikin Ashi candle to calculate the Profit and Loss, hence also affecting the Percent Profitable, Profit Factor, etc., often resulting a unrealistic high Percent Profitable and Profit Factor, which is misleading. But if you want to use the HA candle's values to calculate your indicator / strategy, but pass the normal candle's open/close/high/low values to the strategy to calculate the Profit / Loss, you can do this:
1) set up the main chart to be a normal candle chart
2) use this indicator script to plot a secondary window with indicator looks exactly like a HA-chart
3) to use the HA-candle's open/close/high/low value to calculate whatever indicator you want (you may need to create a separate script if you want to plot this indicator in a separate indicator window)
Golden Cross, SMA 200 Moving Average Strategy (by ChartArt)This famous moving average strategy is very easy to follow to decide when to buy (go long) and when to take profit.
The strategy goes long when the faster SMA 50 (the simple moving average of the last 50 bars) crosses above the slower SMA 200. Orders are closed when the SMA 50 crosses below the SMA 200. This simple strategy does not have any other stop loss or take profit money management logic. The strategy does not short and goes long only!
Here is an article explaining the "golden cross" strategy in more detail:
www.stockopedia.com
On the S&P 500 index (symbol "SPX") this strategy worked on the daily chart 81% since price data is available since 1982. And on the DOW Jones Industrial Average (symbol "DOWI") this strategy worked on the daily chart 55% since price data is available since 1916. The low number of trades is in both cases not statistically significant though.
All trading involves high risk; past performance is not necessarily indicative of future results. Hypothetical or simulated performance results have certain inherent limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not actually been executed, the results may have under- or over-compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profits or losses similar to those shown.
CM Stochastic POP Method 1 - Jake Bernstein_V1A good friend ucsgears recently published a Stochastic Pop Indicator designed by Jake Bernstein with a modified version he found.
I spoke to Jake this morning and asked if he had any updates to his Stochastic POP Trading Method. Attached is a PDF Jake published a while back (Please read for basic rules, which also Includes a New Method). I will release the Additional Method Tomorrow.
Jake asked me to share that he has Updated this Method Recently. Now across all symbols he has found the Stochastic Values of 60 and 30 to be the most profitable. NOTE - This can be Significantly Optimized for certain Symbols/Markets.
Jake Bernstein will be a contributor on TradingView when Backtesting/Strategies are released. Jake is one of the Top Trading System Developers in the world with 45+ years experience and he is going to teach how to create Trading Systems and how to Optimize the correct way.
Below are a few Strategy Results....Soon You Will Be Able To Find Results Like This Yourself on TradingView.com
BackTesting Results Example: EUR-USD Daily Chart Since 01/01/2005
Strategy 1:
Go Long When Stochastic Crosses Above 60. Go Short When Stochastic Crosses Below 30. Exit Long/Short When Stochastic has a Reverse Cross of Entry Value.
Results:
Total Trades = 164
Profit = 50, 126 Pips
Win% = 38.4%
Profit Factor = 1.35
Avg Trade = 306 Pips Profit
***Most Consecutive Wins = 3 ... Most Consecutive Losses = 6
Strategy 2:
Rules - Proprietary Optimization Jake Will Teach. Only Added 1 Additional Exit Rule.
Results:
Total Trades = 164
Profit = 62, 876 Pips!!!
Win% = 38.4%
Profit Factor = 1.44
Avg Trade = 383 Pips Profit
***Most Consecutive Wins = 3 ... Most Consecutive Losses = 6
Strategy 3:
Rules - Proprietary Optimization Jake Will Teach. Only added 1 Additional Exit Rule.
Results:
Winning Percent Increases to 72.6%!!! , Same Amount of Trades.
***Most Consecutive Wins = 21 ...Most Consecutive Losses = 4
Indicator Includes:
-Ability to Color Candles (CheckBox In Inputs Tab)
Green = Long Trade
Blue = No Trade
Red = Short Trade
-Color Coded Stochastic Line based on being Above/Below or In Between Entry Lines.
Link To Jakes PDF with Rules
dl.dropboxusercontent.com
Elder's Market Thermometer [LazyBear]Market temperature, introduced by Dr.Alexander Elder, helps differentiate between sleepy, quiet and hot market periods.
Following is Mr.Elder's explanation on how to use this indicator (from his book "Come in to my Trading Room"):
"When markets are quiet, the adjacent bars tend to overlap. The consensus of value is well established, and the crowd does little buying or selling outside of yesterday’s range. When highs and lows exceed their previous day’s values, they do so only by small margins. Market Thermometer falls and its EMA slants down, indicating a sleepy market. When a market begins to run, either up or down, its daily bars start pushing outside of the previous ranges. The histogram of Market Thermometer grows taller and crosses above its EMA, which soon turns up, confirming the new trend."
"Market Thermometer gives four trading signals, based on the relationship between its histogram and its moving average:
1) The best time to enter new positions is when Market Thermometer falls below its moving average. When Market Thermometer falls below its EMA, it indicates that the market is quiet. If your system flashes an entry signal, try to enter when the market is cooler than usual. When Market Thermometer rises above its moving average, it warns that the market is hot and slippage more likely.
2) Exit positions when Market Thermometer rises to triple the height of its moving average. A spike of Market Thermometer indicates a runaway move. When the crowd feels jarred by a sudden piece of news and surges, it is a good time to take profits. Panics tend to be short-lived, offering a brief opportunity to cash in. If the EMA of Market Thermometer stands at 5 cents, but the Thermometer itself shoots up to 15 cents, take profits. Test these values for the market you are trading.
3) Get ready for an explosive move if the Thermometer stays below its moving average for five to seven trading days. Quiet markets put amateurs to sleep. They become careless and stop watching prices. Volatility and volume fall, and professionals get a chance to run away with the market. Explosive moves often erupt from periods of inactivity.
4) Market Thermometer can help you set a profit target for the next trading day. If you are a short-term trader and are long, add the value of today’s Thermometer EMA to yesterday’s high and place a sell order there. If you are short, subtract the value of the Thermometer’s EMA from yesterday’s low and place an order to cover at that level."
You can configure the "Explosive Move threshold" (default: 3), "Idle Market Threshold" (default: 7) and "Thermometer EMA length" (default: 22) via Options page.
More info:
"Come in to my Trading Room - A complete Guide to Trading" by Dr.Alexander Elder. (Page 162)
List of my other indicators:
- Chart:
- GDoc: docs.google.com
Custom Indicator - No Trade Zone Warning Back Ground Highlights!Years ago I did an analysis of my trades. Every period of the day was profitable except for two. From 10:00-1030, and 1:00 to 1:30. (I was actively Day Trading Futures) Imagine a vertical graph broken down in to 30 minute time segments. I had nice Green bars in every time slot (Showing Net Profits), and HUGE Red Bars from 10 to 10:30 and 1 to 1:30. After analysis I found I made consistent profits at session open, but then I would enter in to bad setups around 10 to make more money. I also found after I took lunch when I came back at 1:00 I would force trades instead of patiently waiting for a great trade setup. I created an indicator that plotted a red background around those times telling me I was not allowed to enter a trade. Profits went up!!! Details on How to adjust times are in 1st Post. You can adjust times and colors to meet your own trading needs.
RiskPerformanceLibrary "RiskPerformance"
calculateDynamicPositionSize(accountSize, riskPercent, stopDistance, currentATR, historicalATR)
Parameters:
accountSize (float)
riskPercent (float)
stopDistance (float)
currentATR (float)
historicalATR (float)
calculatePerformanceMetrics(results, riskFreeRate)
Parameters:
results (array)
riskFreeRate (float)
detectMarketRegime(adx, atr, atrSMA, lookback)
Parameters:
adx (float)
atr (float)
atrSMA (float)
lookback (int)
checkSignalCorrelation(activeSignals, newSignal)
Parameters:
activeSignals (array)
newSignal (Signal)
estimateTransactionCosts(market, orderSize, avgVolume)
Parameters:
market (string)
orderSize (float)
avgVolume (float)
runMonteCarloSimulation(historicalResults, simulations)
Parameters:
historicalResults (array)
simulations (int)
checkDailyLimits(maxSignals)
Parameters:
maxSignals (int)
updateDailyLimits(limits)
Parameters:
limits (DailyLimits)
Signal
Fields:
barIndex (series int)
entryPrice (series float)
targetPrice (series float)
stopPrice (series float)
isLong (series bool)
atrAtEntry (series float)
confidenceScore (series float)
hasTimeConfluence (series bool)
signalType (series string)
SignalResult
Fields:
signal (Signal)
exitPrice (series float)
exitBar (series int)
pnl (series float)
pnlPercent (series float)
maxFavorableExcursion (series float)
maxAdverseExcursion (series float)
hitTarget (series bool)
hitStop (series bool)
barsHeld (series int)
PerformanceMetrics
Fields:
totalReturn (series float)
avgWin (series float)
avgLoss (series float)
winRate (series float)
profitFactor (series float)
sharpeRatio (series float)
sortinoRatio (series float)
maxDrawdown (series float)
calmarRatio (series float)
kellyPercent (series float)
MarketRegime
Fields:
regime (series string)
strength (series float)
avgVolatility (series float)
trendStrength (series float)
TransactionCosts
Fields:
spread (series float)
commission (series float)
slippage (series float)
totalCostPercent (series float)
DailyLimits
Fields:
maxSignalsPerDay (series int)
signalsToday (series int)
canTrade (series bool)
Sessions [Prolific Zone ]### 🔥 **4AM–5AM GMT Breakout Strategy (5-Min Entry Confirmation)**
#### ⏱ **Time Zone**
* **All times are GMT+0 (UTC)**
---
### 📌 **Step-by-Step Guide**
1. **Timeframe Setup**
* Use the **1-hour chart** to identify the 4:00 AM – 5:00 AM candle.
* Mark the **high and low** of that specific candle (the range).
2. **Draw Levels**
* At **5:00 AM**, after the candle closes:
* Draw a **horizontal line or zone** at the **high** and another at the **low** of the 4:00–5:00 AM candle.
3. **Switch Timeframe**
* Switch to the **5-minute chart**.
4. **Breakout Confirmation**
* Wait for a **5-minute candle to break**:
* **Buy Entry**: If a 5-minute candle **closes above the high**, enter a **BUY**.
* **Sell Entry**: If a 5-minute candle **closes below the low**, enter a **SELL**.
5. **Trade Management (Recommended)**
* **Stop Loss (SL)**: Just below/above the opposite side of the range.
* **Take Profit (TP)**: Use a risk-to-reward ratio (1:1.5 or 1:2), or follow market structure.
* Optional: Trail the stop loss once in profit.
---
### ✅ **Strategy Highlights**
* Works best with **GOLD (XAUUSD)** due to its volatile movement during London Open.
* Also effective with pairs like **GBPUSD, EURUSD**, etc., but test before use.
* Avoid using it on days with high-impact news during this time.
My script
### 🔥 **4AM–5AM GMT Breakout Strategy (5-Min Entry Confirmation)**
#### ⏱ **Time Zone**
* **All times are GMT+0 (UTC)**
---
### 📌 **Step-by-Step Guide**
1. **Timeframe Setup**
* Use the **1-hour chart** to identify the 4:00 AM – 5:00 AM candle.
* Mark the **high and low** of that specific candle (the range).
2. **Draw Levels**
* At **5:00 AM**, after the candle closes:
* Draw a **horizontal line or zone** at the **high** and another at the **low** of the 4:00–5:00 AM candle.
3. **Switch Timeframe**
* Switch to the **5-minute chart**.
4. **Breakout Confirmation**
* Wait for a **5-minute candle to break**:
* **Buy Entry**: If a 5-minute candle **closes above the high**, enter a **BUY**.
* **Sell Entry**: If a 5-minute candle **closes below the low**, enter a **SELL**.
5. **Trade Management (Recommended)**
* **Stop Loss (SL)**: Just below/above the opposite side of the range.
* **Take Profit (TP)**: Use a risk-to-reward ratio (1:1.5 or 1:2), or follow market structure.
* Optional: Trail the stop loss once in profit.
---
### ✅ **Strategy Highlights**
* Works best with **GOLD (XAUUSD)** due to its volatile movement during London Open.
* Also effective with pairs like **GBPUSD, EURUSD**, etc., but test before use.
* Avoid using it on days with high-impact news during this time.
---
SMA Backtest Optimizer [Mr_Rakun]The SMA Backtest Optimizer is a powerful Pine Script tool designed to systematically analyze and compare various Simple Moving Average (SMA) periods to identify the most profitable configuration for trading strategies. This indicator tests multiple SMA periods (from 10 to 100) using a crossover strategy where buys occur when price crosses above the SMA and sells when price crosses below it.
Key Features:
Tests 10 different SMA periods to determine optimal settings
Calculates profit/loss based on a defined starting capital
Tracks total profit and number of trades for each period
Visually highlights the best performing SMA on your chart
Displays comprehensive results in an easy-to-read table
Labels the chart with key performance metrics
This code serves as a core framework that traders can customize for their specific needs. You can easily modify the strategy parameters, test different technical indicators, adjust capital settings, or implement more complex entry/exit rules. The optimization methodology can be applied to virtually any trading approach you wish to evaluate.
Feel free to adapt this framework to test your own trading ideas and discover which parameters work best in different market conditions.
Ultimate Scalping Tool[BullByte]Overview
The Ultimate Scalping Tool is an open-source TradingView indicator built for scalpers and short-term traders released under the Mozilla Public License 2.0. It uses a custom Quantum Flux Candle (QFC) oscillator to combine multiple market forces into one visual signal. In plain terms, the script reads momentum, trend strength, volatility, and volume together and plots a special “candlestick” each bar (the QFC) that reflects the overall market bias. This unified view makes it easier to spot entries and exits: the tool labels signals as Strong Buy/Sell, Pullback (a brief retracement in a trend), Early Entry, or Exit Warning . It also provides color-coded alerts and a small dashboard of metrics. In practice, traders see green/red oscillator bars and symbols on the chart when conditions align, helping them scalp or trend-follow without reading multiple separate indicators.
Core Components
Quantum Flux Candle (QFC) Construction
The QFC is the heart of the indicator. Rather than using raw price, it creates a candlestick-like bar from the underlying oscillator values. Each QFC bar has an “open,” “high/low,” and “close” derived from calculated momentum and volatility inputs for that period . In effect, this turns the oscillator into intuitive candle patterns so traders can recognize momentum shifts visually. (For comparison, note that Heikin-Ashi candles “have a smoother look because take an average of the movement”. The QFC instead represents exact oscillator readings, so it reflects true momentum changes without hiding price action.) Colors of QFC bars change dynamically (e.g. green for bullish momentum, red for bearish) to highlight shifts. This is the first open-source QFC oscillator that dynamically weights four non-correlated indicators with moving thresholds, which makes it a unique indicator on its own.
Oscillator Normalization & Adaptive Weights
The script normalizes its oscillator to a fixed scale (for example, a 0–100 range much like the RSI) so that various inputs can be compared fairly. It then applies adaptive weighting: the relative influence of trend, momentum, volatility or volume signals is automatically adjusted based on current market conditions. For instance, in very volatile markets the script might weight volatility more heavily, or in a strong trend it might give extra weight to trend direction. Normalizing data and adjusting weights helps keep the QFC sensitive but stable (normalization ensures all inputs fit a common scale).
Trend/Momentum/Volume/Volatility Fusion
Unlike a typical single-factor oscillator, the QFC oscillator fuses four aspects at once. It may compute, for example, a trend indicator (such as an ADX or moving average slope), a momentum measure (like RSI or Rate-of-Change), a volume-based pressure (similar to MFI/OBV), and a volatility measure (like ATR) . These different values are combined into one composite oscillator. This “multi-dimensional” approach follows best practices of using non-correlated indicators (trend, momentum, volume, volatility) for confirmation. By encoding all these signals in one line, a high QFC reading means that trend, momentum, and volume are all aligned, whereas a neutral reading might mean mixed conditions. This gives traders a comprehensive picture of market strength.
Signal Classification
The script interprets the QFC oscillator to label trades. For example:
• Strong Buy/Sell : Triggered when the oscillator crosses a high-confidence threshold (e.g. breaks clearly above zero with strong slope), indicating a well-confirmed move. This is like seeing a big green/red QFC candle aligned with the trend.
• Pullbacks : Identified when the trend is up but momentum dips briefly. A Pullback Buy appears if the overall trend is bullish but the oscillator has a short retracement – a typical buying opportunity in an uptrend. (A pullback is “a brief decline or pause in a generally upward price trend”.)
• Early Buy/Sell : Marks an initial swing in the oscillator suggesting a possible new trend, before it is fully confirmed. It’s a hint of momentum building (an early-warning signal), not as strong as the confirmed “Strong” signal.
• Exit Warnings : Issued when momentum peaks or reverses. For instance, if the QFC bars reach a high and start turning red/green opposite, the indicator warns that the move may be ending. In other words, a Momentum Peak is the point of maximum strength after which weakness may follow.
These categories correspond to typical trading concepts: Pullback (temporary reversal in an uptrend), Early Buy (an initial bullish cross), Strong Buy (confirmed bullish momentum), and Momentum Peak (peak oscillator value suggesting exhaustion).
Filters (DI Reversal, Dynamic Thresholds, HTF EMA/ADX)
Extra filters help avoid bad trades. A DI Reversal filter uses the +DI/–DI lines (from the ADX system) to require that the trend direction confirms the signal . For example, it might ignore a buy signal if the +DI is still below –DI. Dynamic Thresholds adjust signal levels on-the-fly: rather than fixed “overbought” lines, they move with volatility so signals happen under appropriate market stress. An optional High-Timeframe EMA or ADX filter adds a check against a larger timeframe trend: for instance, only taking a trade if price is above the weekly EMA or if weekly ADX shows a strong trend. (Notably, the ADX is “a technical indicator used by traders to determine the strength of a price trend”, so requiring a high-timeframe ADX avoids trading against the bigger trend.)
Dashboard Metrics & Color Logic
The Dashboard in the Ultimate Scalping Tool (UST) serves as a centralized information hub, providing traders with real-time insights into market conditions, trend strength, momentum, volume pressure, and trade signals. It is highly customizable, allowing users to adjust its appearance and content based on their preferences.
1. Dashboard Layout & Customization
Short vs. Extended Mode : Users can toggle between a compact view (9 rows) and an extended view (13 rows) via the `Short Dashboard` input.
Text Size Options : The dashboard supports three text sizes— Tiny, Small, and Normal —adjustable via the `Dashboard Text Size` input.
Positioning : The dashboard is positioned in the top-right corner by default but can be moved if modified in the script.
2. Key Metrics Displayed
The dashboard presents critical trading metrics in a structured table format:
Trend (TF) : Indicates the current trend direction (Strong Bullish, Moderate Bullish, Sideways, Moderate Bearish, Strong Bearish) based on normalized trend strength (normTrend) .
Momentum (TF) : Displays momentum status (Strong Bullish/Bearish or Neutral) derived from the oscillator's position relative to dynamic thresholds.
Volume (CMF) : Shows buying/selling pressure levels (Very High Buying, High Selling, Neutral, etc.) based on the Chaikin Money Flow (CMF) indicator.
Basic & Advanced Signals:
Basic Signal : Provides simple trade signals (Strong Buy, Strong Sell, Pullback Buy, Pullback Sell, No Trade).
Advanced Signal : Offers nuanced signals (Early Buy/Sell, Momentum Peak, Weakening Momentum, etc.) with color-coded alerts.
RSI : Displays the Relative Strength Index (RSI) value, colored based on overbought (>70), oversold (<30), or neutral conditions.
HTF Filter : Indicates the higher timeframe trend status (Bullish, Bearish, Neutral) when using the Leading HTF Filter.
VWAP : Shows the V olume-Weighted Average Price and whether the current price is above (bullish) or below (bearish) it.
ADX : Displays the Average Directional Index (ADX) value, with color highlighting whether it is rising (green) or falling (red).
Market Mode : Shows the selected market type (Crypto, Stocks, Options, Forex, Custom).
Regime : Indicates volatility conditions (High, Low, Moderate) based on the **ATR ratio**.
3. Filters Status Panel
A secondary panel displays the status of active filters, helping traders quickly assess which conditions are influencing signals:
- DI Reversal Filter: On/Off (confirms reversals before generating signals).
- Dynamic Thresholds: On/Off (adjusts buy/sell thresholds based on volatility).
- Adaptive Weighting: On/Off (auto-adjusts oscillator weights for trend/momentum/volatility).
- Early Signal: On/Off (enables early momentum-based signals).
- Leading HTF Filter: On/Off (applies higher timeframe trend confirmation).
4. Visual Enhancements
Color-Coded Cells : Each metric is color-coded (green for bullish, red for bearish, gray for neutral) for quick interpretation.
Dynamic Background : The dashboard background adapts to market conditions (bullish/bearish/neutral) based on ADX and DI trends.
Customizable Reference Lines : Users can enable/disable fixed reference lines for the oscillator.
How It(QFC) Differs from Traditional Indicators
Quantum Flux Candle (QFC) Versus Heikin-Ashi
Heikin-Ashi candles smooth price by averaging (HA’s open/close use averages) so they show trend clearly but hide true price (the current HA bar’s close is not the real price). QFC candles are different: they are oscillator values, not price averages . A Heikin-Ashi chart “has a smoother look because it is essentially taking an average of the movement”, which can cause lag. The QFC instead shows the raw combined momentum each bar, allowing faster recognition of shifts. In short, HA is a smoothed price chart; QFC is a momentum-based chart.
Versus Standard Oscillators
Common oscillators like RSI or MACD use fixed formulas on price (or price+volume). For example, RSI “compares gains and losses and normalizes this value on a scale from 0 to 100”, reflecting pure price momentum. MFI is similar but adds volume. These indicators each show one dimension: momentum or volume. The Ultimate Scalping Tool’s QFC goes further by integrating trend strength and volatility too. In practice, this means a move that looks strong on RSI might be downplayed by low volume or weak trend in QFC. As one source notes, using multiple non-correlated indicators (trend, momentum, volume, volatility) provides a more complete market picture. The QFC’s multi-factor fusion is unique – it is effectively a multi-dimensional oscillator rather than a traditional single-input one.
Signal Style
Traditional oscillators often use crossovers (RSI crossing 50) or fixed zones (MACD above zero) for signals. The Ultimate Scalping Tool’s signals are custom-classified: it explicitly labels pullbacks, early entries, and strong moves. These terms go beyond a typical indicator’s generic “buy”/“sell.” In other words, it packages a strategy around the oscillator, which traders can backtest or observe without reading code.
Key Term Definitions
• Pullback : A short-term dip or consolidation in an uptrend. In this script, a Pullback Buy appears when price is generally rising but shows a brief retracement. (As defined by Investopedia, a pullback is “a brief decline or pause in a generally upward price trend”.)
• Early Buy/Sell : An initial or tentative entry signal. It means the oscillator first starts turning positive (or negative) before a full trend has developed. It’s an early indication that a trend might be starting.
• Strong Buy/Sell : A confident entry signal when multiple conditions align. This label is used when momentum is already strong and confirmed by trend/volume filters, offering a higher-probability trade.
• Momentum Peak : The point where bullish (or bearish) momentum reaches its maximum before weakening. When the oscillator value stops rising (or falling) and begins to reverse, the script flags it as a peak – signaling that the current move could be overextended.
What is the Flux MA?
The Flux MA (Moving Average) is an Exponential Moving Average (EMA) applied to a normalized oscillator, referred to as FM . Its purpose is to smooth out the fluctuations of the oscillator, providing a clearer picture of the underlying trend direction and strength. Think of it as a dynamic baseline that the oscillator moves above or below, helping you determine whether the market is trending bullish or bearish.
How it’s calculated (Flux MA):
1.The oscillator is normalized (scaled to a range, typically between 0 and 1, using a default scale factor of 100.0).
2.An EMA is applied to this normalized value (FM) over a user-defined period (default is 10 periods).
3.The result is rescaled back to the oscillator’s original range for plotting.
Why it matters : The Flux MA acts like a support or resistance level for the oscillator, making it easier to spot trend shifts.
Color of the Flux Candle
The Quantum Flux Candle visualizes the normalized oscillator (FM) as candlesticks, with colors that indicate specific market conditions based on the relationship between the FM and the Flux MA. Here’s what each color means:
• Green : The FM is above the Flux MA, signaling bullish momentum. This suggests the market is trending upward.
• Red : The FM is below the Flux MA, signaling bearish momentum. This suggests the market is trending downward.
• Yellow : Indicates strong buy conditions (e.g., a "Strong Buy" signal combined with a positive trend). This is a high-confidence signal to go long.
• Purple : Indicates strong sell conditions (e.g., a "Strong Sell" signal combined with a negative trend). This is a high-confidence signal to go short.
The candle mode shows the oscillator’s open, high, low, and close values for each period, similar to price candlesticks, but it’s the color that provides the quick visual cue for trading decisions.
How to Trade the Flux MA with Respect to the Candle
Trading with the Flux MA and Quantum Flux Candle involves using the MA as a trend indicator and the candle colors as entry and exit signals. Here’s a step-by-step guide:
1. Identify the Trend Direction
• Bullish Trend : The Flux Candle is green and positioned above the Flux MA. This indicates upward momentum.
• Bearish Trend : The Flux Candle is red and positioned below the Flux MA. This indicates downward momentum.
The Flux MA serves as the reference line—candles above it suggest buying pressure, while candles below it suggest selling pressure.
2. Interpret Candle Colors for Trade Signals
• Green Candle : General bullish momentum. Consider entering or holding a long position.
• Red Candle : General bearish momentum. Consider entering or holding a short position.
• Yellow Candle : A strong buy signal. This is an ideal time to enter a long trade.
• Purple Candle : A strong sell signal. This is an ideal time to enter a short trade.
3. Enter Trades Based on Crossovers and Colors
• Long Entry : Enter a buy position when the Flux Candle turns green and crosses above the Flux MA. If it turns yellow, this is an even stronger signal to go long.
• Short Entry : Enter a sell position when the Flux Candle turns red and crosses below the Flux MA. If it turns purple, this is an even stronger signal to go short.
4. Exit Trades
• Exit Long : Close your buy position when the Flux Candle turns red or crosses below the Flux MA, indicating the bullish trend may be reversing.
• Exit Short : Close your sell position when the Flux Candle turns green or crosses above the Flux MA, indicating the bearish trend may be reversing.
•You might also exit a long trade if the candle changes from yellow to green (weakening strong buy signal) or a short trade from purple to red (weakening strong sell signal).
5. Use Additional Confirmation
To avoid false signals, combine the Flux MA and candle signals with other indicators or dashboard metrics (e.g., trend strength, momentum, or volume pressure). For example:
•A yellow candle with a " Strong Bullish " trend and high buying volume is a robust long signal.
•A red candle with a " Moderate Bearish " trend and neutral momentum might need more confirmation before shorting.
Practical Example
Imagine you’re scalping a cryptocurrency:
• Long Trade : The Flux Candle turns yellow and is above the Flux MA, with the dashboard showing "Strong Buy" and high buying volume. You enter a long position. You exit when the candle turns red and dips below the Flux MA.
• Short Trade : The Flux Candle turns purple and crosses below the Flux MA, with a "Strong Sell" signal on the dashboard. You enter a short position. You exit when the candle turns green and crosses above the Flux MA.
Market Presets and Adaptation
This indicator is designed to work on any market with candlestick price data (stocks, crypto, forex, indices, etc.). To handle different behavior, it provides presets for major asset classes. Selecting a “Stocks,” “Crypto,” “Forex,” or “Options” preset automatically loads a set of parameter values optimized for that market . For example, a crypto preset might use a shorter lookback or higher sensitivity to account for crypto’s high volatility, while a stocks preset might use slightly longer smoothing since stocks often trend more slowly. In practice, this means the same core QFC logic applies across markets, but the thresholds and smoothing adjust so signals remain relevant for each asset type.
Usage Guidelines
• Recommended Timeframes : Optimized for 1 minute to 15 minute intraday charts. Can also be used on higher timeframes for short term swings.
• Market Types : Select “Crypto,” “Stocks,” “Forex,” or “Options” to auto tune periods, thresholds and weights. Use “Custom” to manually adjust all inputs.
• Interpreting Signals : Always confirm a signal by checking that trend, volume, and VWAP agree on the dashboard. A green “Strong Buy” arrow with green trend, green volume, and price > VWAP is highest probability.
• Adjusting Sensitivity : To reduce false signals in fast markets, enable DI Reversal Confirmation and Dynamic Thresholds. For more frequent entries in trending environments, enable Early Entry Trigger.
• Risk Management : This tool does not plot stop loss or take profit levels. Users should define their own risk parameters based on support/resistance or volatility bands.
Background Shading
To give you an at-a-glance sense of market regime without reading numbers, the indicator automatically tints the chart background in three modes—neutral, bullish and bearish—with two levels of intensity (light vs. dark):
Neutral (Gray)
When ADX is below 20 the market is considered “no trend” or too weak to trade. The background fills with a light gray (high transparency) so you know to sit on your hands.
Bullish (Green)
As soon as ADX rises above 20 and +DI exceeds –DI, the background turns a semi-transparent green, signaling an emerging uptrend. When ADX climbs above 30 (strong trend), the green becomes more opaque—reminding you that trend-following signals (Strong Buy, Pullback) carry extra weight.
Bearish (Red)
Similarly, if –DI exceeds +DI with ADX >20, you get a light red tint for a developing downtrend, and a darker, more solid red once ADX surpasses 30.
By dynamically varying both hue (green vs. red vs. gray) and opacity (light vs. dark), the background instantly communicates trend strength and direction—so you always know whether to favor breakout-style entries (in a strong trend) or stay flat during choppy, low-ADX conditions.
The setup shown in the above chart snapshot is BTCUSD 15 min chart : Binance for reference.
Disclaimer
No indicator guarantees profits. Backtest or paper trade this tool to understand its behavior in your market. Always use proper position sizing and stop loss orders.
Good luck!
- BullByte
[blackcat] L3 Mean Reversion ATR Stop Loss OVERVIEW
The L3 Mean Reversion ATR Stop Loss indicator is meticulously crafted to empower traders by offering statistically-driven stop-loss levels that adapt seamlessly to evolving market dynamics. By harmoniously blending mean reversion concepts with Advanced True Range (ATR) metrics, it delivers a robust framework for managing risks more effectively. 🌐 The primary objective is to furnish traders with intelligent exit points grounded in both short-term volatility assessments and long-term trend evaluations.
Key highlights encompass:
• Dynamic calculation of Z-scores to evaluate deviations from established means
• Adaptive stop-loss pricing leveraging real-time ATR measurements
• Clear visual cues enabling swift decision-making processes
TECHNICAL ANALYSIS COMPONENTS
📉 Z-SCORE CALCULATION
Measures how many standard deviations an asset's current price lies away from its average
Facilitates identification of extreme conditions indicative of impending reversals
Utilizes simple moving averages and standard deviation computations
📊 STANDARD DEVIATION MEASUREMENT
Quantifies dispersion of closing prices around the mean
Provides insights into underlying price distribution characteristics
Crucial for assessing potential volatility levels accurately
🕵️♂️ ADAPTIVE STOP-LOSS DETECTION
Employs ATR as a proxy for prevailing market volatility
Modulates stop-loss placements dynamically responding to shifting trends
Ensures consistent adherence to predetermined risk management protocols
INDICATOR FUNCTIONALITY
🔢 Core Algorithms
Integrate Smooth Moving Averages (SMAs) alongside standardized deviation formulas
Generate precise Z-scores reflecting true price deviations
Leverage ATR-derived multipliers for fine-grained stop-loss adjustments
🖱️ User Interface Elements
Interactive plots displaying real-time stop-loss markers
Context-sensitive color coding enhancing readability
Background shading indicating proximity to stop-level activations
STRATEGY IMPLEMENTATION
✅ Entry Conditions
Confirm bullish/bearish setups validated through multiple confirmatory signals
Ensure alignment between Z-score readings and broader trend directions
Validate entry decisions considering concurrent market sentiment factors
🚫 Exit Mechanisms
Trigger exits upon hitting predefined ATR-based stop-loss thresholds
Monitor continuous breaches signifying potential trend reversals
Execute partial/total closes contingent upon cumulative loss limits
PARAMETER CONFIGURATIONS
🎯 Optimization Guidelines
Period Length: Governs responsiveness versus smoothing trade-offs
ATR Length: Dictates the temporal scope for volatility analysis
Stop Loss ATR Multiplier: Tunes sensitivity towards stop-trigger activations
💬 Customization Recommendations
Commence with baseline defaults; iteratively refine parameters
Evaluate impacts independently prior to combined adjustments
Prioritize minimizing erroneous trigger occurrences first
Sustain balanced risk-reward profiles irrespective of chosen settings
ADVANCED RISK MANAGEMENT
🛡️ Proactive Risk Mitigation Techniques
Enforce strict compliance with pre-defined maximum leverage constraints
Mandatorily apply trailing stop-loss orders conforming to script outputs
Allocate positions proportionately relative to available capital reserves
Conduct periodic reviews gauging strategy effectiveness rigorously
⚠️ Potential Pitfalls & Solutions
Address frequent violations arising during heightened volatility phases
Manage false alerts warranting manual interventions judiciously
Prepare contingency plans mitigating margin call possibilities
Continuously assess automated system reliability amidst fluctuating conditions
PERFORMANCE AUDITS & REFINEMENTS
🔍 Critical Evaluation Metrics
Assess win percentages consistently across diverse trading instruments
Calculate average profit ratios per successful execution
Measure peak drawdown durations alongside associated magnitudes
Analyze signal generation frequencies revealing hidden patterns
📈 Historical Data Analysis Tools
Maintain comprehensive records capturing every triggered event
Compare realized profits/losses against backtested simulations
Identify recurrent systematic errors demanding corrective actions
Implement iterative refinements bolstering overall efficacy steadily
PROBLEM SOLVING ADVICE
🔧 Frequent Encountered Challenges
Unpredictable behaviors emerging within thinly traded markets
Latency issues manifesting during abrupt price fluctuations
Overfitted models yielding suboptimal results post-extensive tuning
Inaccuracies stemming from incomplete or delayed data inputs
💡 Effective Resolution Pathways
Exclude low-liquidity assets prone to erratic movements
Introduce buffer intervals safeguarding major news/event impacts
Limit ongoing optimization attempts preventing model degradation
Verify seamless connectivity ensuring uninterrupted data flows
USER ENGAGEMENT SEGMENT
🤝 Community Contributions Welcome
Highly encourage active participation sharing experiences & recommendations!
THANKS
A heartfelt acknowledgment extends to all developers contributing invaluable insights about adaptive stop-loss strategies using statistical measures! ✨
SMC Strategy BTC 1H - OB/FVGGeneral Context
This strategy is based on Smart Money Concepts (SMC), in particular:
The bullish Break of Structure (BOS), indicating a possible reversal or continuation of an upward trend.
The detection of Order Blocks (OB): consolidation zones preceding the BOS where the "smart money" has likely accumulated positions.
The detection of Fair Value Gaps (FVG), also called imbalance zones where the price has "jumped" a level, creating a disequilibrium between buyers and sellers.
Strategy Mechanics
Bullish Break of Structure (BOS)
A bullish BOS is detected when the price breaks a previous swing high.
A swing high is defined as a local peak higher than the previous 4 peaks.
Order Block (OB)
A bearish candle (close < open) just before a bullish BOS is identified as an OB.
This OB is recorded with its high and low.
An "active" OB zone is maintained for a certain number of bars (the zoneTimeout parameter).
Fair Value Gap (FVG)
A bullish FVG is detected if the high of the candle two bars ago is lower than the low of the current candle.
This FVG zone is also recorded and remains active for zoneTimeout bars.
Long Entry
An entry is possible if the price returns into the active OB zone or FVG zone (depending on which parameters are enabled).
Entry is only allowed if no position is currently open (strategy.position_size == 0).
Risk Management
The stop loss is placed below the OB low, with a buffer based on a multiple of the ATR (Average True Range), adjustable via the atrFactor parameter.
The take profit is set according to an adjustable Risk/Reward ratio (rrRatio) relative to the stop loss to entry distance.
Adjustable Parameters
Enable/disable entries based on OB and/or FVG.
ATR multiplier for stop loss.
Risk/Reward ratio for take profit.
Duration of OB and FVG zone activation.
Visualization
The script displays:
BOS (Break of Structure) with a green label above the candles.
OB zones (in orange) and FVG zones (in light blue).
Entry signals (green triangle below the candle).
Stop loss (red line) and take profit (green line).
Strengths and Limitations
Strengths:
Based on solid Smart Money analysis concepts.
OB and FVG zones are natural potential reversal areas.
Adjustable parameters allow optimization for different market conditions.
Dynamic risk management via ATR.
Limitations:
Only takes long positions.
No trend filter (e.g., EMA), which may lead to false signals in sideways markets.
Fixed zone duration may not fit all situations.
No automatic optimization; testing with different parameters is necessary.
Summary
This strategy aims to capitalize on price retracements into key zones where "smart money" has acted (OB and FVG) just after a bullish Break of Structure (BOS) signal. It is simple, customizable, and can serve as a foundation for a more comprehensive strategy.
Trend Volatility Index (TVI)Trend Volatility Index (TVI)
A robust nonparametric oscillator for structural trend volatility detection
⸻
What is this?
TVI is a volatility oscillator designed to measure the strength and emergence of price trends using nonparametric statistics.
It calculates a U-statistic based on the Gini mean difference across multiple simple moving averages.
This allows for objective, robust, and unbiased quantification of trend volatility in tick-scale values.
⸻
What can it do?
• Quantify trend strength as a continuous value aligned with tick price scale
• Detect trend breakouts and volatility expansions
• Identify range-bound market states
• Detect early signs of new trends with minimal lag
⸻
What can’t it do?
• Predict future price levels
• Predict trend direction before confirmation
⸻
How it works
TVI computes a nonparametric dispersion metric (Gini mean difference) from multiple SMAs of different lengths.
As this metric shares the same dimension as price ticks, it can be directly interpreted on the chart as a volatility gauge.
The output is plotted using candlestick-style charts to enhance visibility of change rate and trend behavior.
⸻
Disclaimer
TVI does not predict price. It is a structural indicator designed to support discretionary judgment.
Trading carries inherent risk, and this tool does not guarantee profitability. Use at your own discretion.
⸻
Innovation
This indicator introduces a novel approach to trend volatility by applying U-statistics over time series
to produce a nonparametric, unbiased, and robust estimate of structural volatility.
日本語要約
Trend Volatility Index (TVI) は、ノンパラメトリックなU統計量(Gini平均差)を使ってトレンドの強度を客観的に測定することを目的に開発されたボラティリティ・オシレーターです。
ティック単位で連続的に変化し、トレンドのブレイク・レンジ・初動の予兆を定量的に検出します。
未来の価格や方向は予測せず、現在の構造的ばらつきだけをロバストに評価します。