Trend Scalping Strategy - ForexHi all,
I have created the attached strategy for my own use primarily but thought I would share it as my experience to date is that it is profitable in particular circumstances, so thought I would open this out to the community to see if it can be successfully applied on any other pairs and timeframes.
I have protected the source code at this time - mainly because it needs massive tidying up! If I ever get time to do this then I will
The concept of the strategy is based upon the slingshot method - the strategy fundamentally does the following:
- Tests each candle for a new short term trend based upon EMAs
- If there is a new trend, check the RSI and ensure it isnt above the upper RSI threshold (for long positions) and below the lower RSI threshold (for short positions)
- If it passes the RSI check, entry is valid and draws a bar on the chart to show the opening entry position, stop loss position, take profit 1 and take profit 2 positions.
I have backtested this across 28 pairs on the M15 timeframe, comprising of a total of 140,000 candles (35,000 hours of trading). Across this period, 18 of the 28 pairs I looked at were profitable, with overall significant profit if live traded across the 28.
I have live tested 5 pairs on the same timeframe:
- GBPJPY
- GBPUSD
- GBPEUR
- CADJPY
- EURJPY
These pairs have to date given a rough ROR (Return on Risk) position of approx 60% average per trade.
All of the above has been done with the following inputs:
- RSI Upper - 68
- RSI Lower - 32
- Stop Loss - 0.0015
- TP1 - 0.002
- TP2 - 0.004
The SL and TPs are based on a decimal entry of a percentage movement - i.e. the Stop loss above reflects a 0.15% movement, etc etc. Obviously if this were to be tested on longer time frames it is likely that these would need to be larger figures.
I have also tested this live with great success on the S&P 500 and the FTSE, with the following settings:
Indicator Timeframe TP1 TP2 SL Upper Lower
FTSE M5 0.0015 0.004 0.001 70 30
SPX M5 0.0015 0.004 0.001 75 35
Three key notes on trading this below - THESE ARE VERY IMPORTANT!
- This is NOT a high strike rate strategy. Strike rate on profitable pairs is between approx 45 and 55% (although I have seen as low as 35% and still seen significant profit). This has two natural conclusions - risk management is VITAL (I risk 0.5% on each trade, but this may in fact be high for this strategy), and be prepared for potentially significant drawdowns. I have seen certainly drawdowns of 20 consecutive losing trades (counting TP1 and TP2 as 2 trades) and probably longer, which obviously means drawdowns of 10% or greater. The other thing to bear in mind is that with this kind of strike rate, you shouldnt be setting TP1 at a 1:1 risk reward or lower.
- Take Profit 1 is easy - straight Stop and Limit orders. Take Profit 2 is a trailing stop with a start point of the limit for TP1, with then a trailing stop of this distance. This means that should you win on TP1, TP2 is a risk free trade but also trails in for profit if TP2 isnt reached (which it normally isnt). DO NOT set TP2 as a standard stop and limit, this rapidly makes this strategy unprofitable. The point here is that if you reach TP1 you are in some form of trend where you want to capture as much profit as you can.
- Do not enter a trade mid candle. The strategy is based upon the close of the trending candle not the "live" price during this candle, so no need to rush into a trade. If you enter mid candle you will find more often than not that the indicator wasnt for a valid trade by the candle close.
Also, standard disclaimer - past performance is no guarantee of future performance, and if you choose to use this strategy/indicator you do so 100% at your own risk. As a minimum, pick your pairs carefully - I have found particular unprofitability with this strategy with the AUD and NZD pairs so I have ruled these out completely at present, although with different timeframes and inputs these may of course be profitable.
I hope this is helpful for someone...I'd welcome any feedback or other setups where this is profitable.
Moving forward, I want to do some more work on this strategy to rule out some of the more negative trades, and I primarily intend to do this using pivots - however this will be an as and when I get chance.
在腳本中搜尋"profit"
PrettyGoodIndicator by Clefsphere9/12/2018 Amazon current stop is at 1487.
PrettyGoodIndicator. A strategy which seeks a favorable entry point and then holds through normal volatility to let profits run. Green background is when the signal is bullish. Script is written to show back-test results. Dates of back-test period can be adjusted. Strategy is for Long trades only.
Features:
* Features a Moving Stop which is based on volatility. A multiplier is used and can be adjusted for more or less volatility. Of course the dilemma of stops is that adjusting to tighter stop may result in more stop outs, less profits. Whereas, looser stop may result in larger losses, larger profits. This Moving Stop usually adjusts Up but possibly might move Down depending on a new signal(s) after the original signal. This flexible moving stop usually gives the stock extra room to fluctuate because of the signal triggering again within the trade.
* When subsequent signal triggers occur during trade, Moving Stop will adjust accordingly, possibly downward, to allow for the new signal.
* When each profit target is reached, profit target (in green) moves up and Moving Stop (orange) moves Up.
* A Hard Stop (red line) is also used as a fail safe. It moves to break-even when certain profitably is reached. Once Hard Stop moves to break-even it will not move down.
* The gray volatility bands that plot between trades are where Hard stop and profit target will be set when signal happens. This indicator allows for large drawdowns even though it uses stops, so allocate more or less funds according to the loss that would occur if lower volatility bands/stop reached.
* Review the back-test results in the chart and let me know if you want to check it out for a trial run.
Coded with latest PineScript version 3. For more information and to request for use, go to: marketcast.wordpress.com
Thanks for your interest and support!
Disclaimer: This information is not trading advice and is for educational purposes only. Trade at your own risk. Past performance is not a guarantee of future results.
The Gain Anchor - Long/Short SignalsThe Gain Anchor – Long/Short Signals (WunderTrading Bot Ready)
Dual Anchored VWAP System Powered by Overbought & Oversold Signals
A high-precision AVWAP and Z-Score system designed to generate Long/Buy and Short/Sell signals.
This indicator is ideal for swing trades and can be used as a standard signal indicator or seamlessly integrated for automated trading with WunderTrading bots.
--------------------------------------------------
Inputs
--------------------------------------------------
• Master Symbol: Sets the symbol used to track market trend. When disabled, the chart’s symbol is used to track its own trend.
• Rolling AVWAP Length: Defines the AVWAP calculation lookback (the bar where calculation starts).
• Minimum Investment Amount ($): Minimum is $6. For WunderTrading, it should not be less than $12.
• Minimum Profit Target ($): Ensures returns are higher than the defined minimum profit.
• Z-Score Lookback: Sets the lookback length for the Z-Score calculation window.
• Z-Score Threshold: Defines the base threshold. (The code auto-adjusts thresholds as more data is processed.)
• Long/Short Strings Input: Enter the alert messages you want to receive. For WunderTrading bots, input your Long Entry, Long Exit, Short Entry, and Short Exit codes.
• Show Other Lines: Displays Rolling AVWAP plot, Take Profit, and Stop Loss lines.
• Table Position: Choose the dashboard placement on your chart.
--------------------------------------------------
Core Logic
--------------------------------------------------
• Z-Score: Detects price deviation from its mean. When the price overextends based on the lookback, AVWAPs are reset.
• Resetting AVWAP 1 / Fast AVWAP (White Line): Uses a weaker threshold.
• Resetting AVWAP 2 / Slow AVWAP (Blue Line): Uses stronger thresholds, confirming and filtering weaker crosses.
• When AVWAP 2 resets, it signals a possible trend change and may generate new signals.
• If AVWAP 2 detects excessively frequent trend changes (high volatility), new signals are automatically disabled.
• Stop Loss and Take Profit are derived from bar distance relative to the lowest AVWAP (longs) or highest AVWAP (shorts).
If this exceeds your minimum investment, the system auto-adjusts the size.
If stop loss is not positioned beyond the AVWAPs, no signal is generated.
--------------------------------------------------
Trade Signals Logic
--------------------------------------------------
The indicator’s signal mechanism is designed to prevent overtrading during
high volatility.
- Signals are disabled when a sudden surge in volatility is detected.
- Only one signal is generated per legitimate trend change.
- Example:
• When the trend switches to bullish, only one Long signal is given.
• Once that Long position is closed (profit or loss), no new signal will be issued until another valid trend change occurs.
• The same logic applies to bearish/Short positions.
This ensures that signals remain clean, infrequent, and aligned with real trend shifts rather than noise.
--------------------------------------------------
Take Profit & Stop Loss
--------------------------------------------------
• Take Profit has two levels:
1. First Level: Triggered when the trend changes and price is below the first TP level.
2. Second Level: Triggered if the price surges into the second TP level.
The position is closed on whichever condition is met first.
• On Scale:
- Take Profit (Gray Line): Rolling take profit value.
- Stop Loss (Maroon Line): Rolling stop loss value, auto-calculated as half the minimum profit.
- Gray Stop Loss and Take Profit: Rolling Stop Loss and Take Profit purpose is mainly for manual trading but when they are both gray it is not ideal to look for an entry.
• On Chart:
- Take Profit: Lime (Longs), Fuchsia (Shorts). Fixed from signal start until triggered.
- Stop Loss: Yellow (Longs), Maroon (Shorts). Fixed from signal start until triggered.
- You have to activate "Show Other Lines" in Input to see them
--------------------------------------------------
Signal Markers
--------------------------------------------------
• 👆 = Long Entry
• Green Dot = Long Exit (TP/SL)
• 👇 = Short Entry
• Fuchsia Dot = Short Exit (TP/SL)
• 💥 = Bullish Trend
• 🔥 = Bearish Trend
--------------------------------------------------
Backtest System
--------------------------------------------------
• Displays the number of days since the first trade/backtest.
• Shows trade count, win rate, net profit/loss.
• Useful for real-time analysis and alert validation.
--------------------------------------------------
Dashboard Overview
--------------------------------------------------
Row 1 (Per Symbol):
• Column 1: Win Rate + Total Trades / Wins / Losses
• Color Modes: Blue = Win rate rising and it's 50 or higher. Brown = Win rate falling and it's 50 or higher. Grey = Falling and less than 50
• Column 2: Backest - number of days since the first trade
• Column 3: Net Profit + Total Profit / Total Loss
• Color Modes: Red = Loss greater than Profit , Green = Net Profit exceeds minimum profit x Total Trade Won, Brown = Profit greater than Loss but high bad trades
• Column 4: Investment Amount + Minimum Profit | Gain % to Target
• Color Modes: Signal State: Lime = Long, Maroon = Short, Yellow = Both Active
--------------------------------------------------
Usage Notes
--------------------------------------------------
• Works for manual or automated execution.
• Fully compatible with WunderTrading’s JSON alert format (and any platform using the same format).
• Can also be used standalone with no dependencies.
• Dashboard and auto-calculated SL/TP make it flexible across all trading styles.
• Minimum Investment Amount affects SL/TP size and therefore win rate.
• Increasing Minimum Profit increases potential profit but also increases loss size.
• Loss-to-Win ratio is always 1:2+, meaning your wins are at least double your losses.
• Optimized for 1-minute timeframe. Other timeframes may also yield desirable results.
--------------------------------------------------
⚠️ Disclaimer
--------------------------------------------------
This indicator does not constitute financial advice or a trading recommendation.
All trading involves risk. Past performance does not guarantee future results.
Options Trading Max Success_V1DISCLAIMER:
The information provided is NOT financial advice. I am not a financial adviser, accountant or the like. This information is purely from my own due diligence and an expression of my thoughts, my opinions based on my personal experiences, and the way I transact.
Utilize this indicator at your own risk..! The indicator creator is not liable for your loss due to untimely action / adverse consequences / server lags from Tradingview (if any).
======================================================
Welcome!
This is a 95-100% Success rate High Frequency Indicator exclusively for Binary Options Traders. It works on any time frames and pairs but is EXCLUSIVELY built for 1-minute candles for EUR/USD currency on "OANDA" forex chart. So, use it for same to get this indicator working at its best.
Use Martingale strategy (5 attempts max) for making profits / recover loss with some profits.
======================
Martingale Strategy For your knowledge with an example:
1) Lets say you are trading on binary options platform that gives 80% profit upon successful trade.
2) UP signal seen. You do the below from next candle:
a) 1st attempt = Rs.100.
- If Success, then profit = Rs.80. Cycle close and exit.
- If Loss, then do 2nd attempt.
b) 2nd attempt =Rs.200.
- If Success, then profit = Rs.160. (Rs. 100 recovery + Rs.60 Profit). Cycle close and exit.
- If Loss, then do 3rd attempt.
c) 3rd attempt = Rs. 400.
- If Success, then profit = Rs.320. (Rs. 300 recovery + Rs.20 Profit). Cycle close and exit.
- If Loss, then do 4th attempt.. and so on.
=======================
If you see any body less/Doji candle in between your attempts. Then do not continue further.
Hold this cycle for next similar stage. For example:
Select chart which promises: Success = 80% profit.
Then attempt the below on the next candle AFTER you see an UP signal.
Cycle 1: UP signal seen. 5 attempts from next candle:
Let's say:
1st attempt = Rs.100. Result = loss
2nd attempt =Rs.200. Result = loss
3rd attempt = Rs.400. Result = No profit/loss (due to Doji candle/candle without body).
Recommendation: Do not proceed further in current cycle. Hold on for next cycle/UP signal.
Park Rs.400 rupees attempt aside for a while.
Cycle 2: UP signal seen. 5 attempts from next candle:
Let's say:
1st attempt = Rs.100. Result = loss
2nd attempt =Rs.200. Result = Success
Cycle Completed. Wait for next cycle/Up signal
Cycle 3: UP signal seen. 5 attempts from next candle:
Let's say:
1st attempt = Rs.100. Result = loss
2nd attempt =Rs.200. Result = loss
3rd attempt = Now you can attempt with Rs. 800.
.
=====================
Recommendations:
- Keep a good discipline and make smart moves.
- You may add other supporting indicators of your choice along with this.
- You can keep your trading attempts low i.e. After you see an UP signal, let go the 1st one/two/three candles. If they turn out to be Red candles back to back, then good for you, as you can start entry of attempts from the 2nd/3rd/4th candle. Thereby evading one/two/three few failed attempts. If any candle gets green After Up signal and before your entry, then do not enter this cycle. Wait for next cycle.
Good luck.
================
FlowStateTrader FlowState Trader - Advanced Time-Filtered Strategy
## Overview
FlowState Trader is a sophisticated algorithmic trading strategy that combines precision entry signals with intelligent time-based filtering and adaptive risk management. Built for traders seeking to achieve their optimal performance state, FlowState identifies high-probability trading opportunities within user-defined time windows while employing dynamic trailing stops and partial position management.
## Core Strategy Philosophy
FlowState Trader operates on the principle that peak trading performance occurs when three elements align: **Focus** (precise entry signals), **Flow** (optimal time windows), and **State** (intelligent position management). This strategy excels at finding reversal opportunities at key support and resistance levels while filtering out suboptimal trading periods to keep traders in their optimal flow state.
## Key Features
### 🎯 Focus Entry System
**Support/Resistance Zone Trading**:
- Dynamic identification of key price levels using configurable lookback periods
- Entry signals triggered when price interacts with these critical zones
- Volume confirmation ensures genuine breakout/reversal momentum
- Trend filter alignment prevents counter-trend disasters
**Entry Conditions**:
- **Long Signals**: Price closes above support buffer, touches support level, with above-average volume
- **Short Signals**: Price closes below resistance buffer, touches resistance level, with above-average volume
- Optional trend filter using EMA or SMA for directional bias confirmation
### ⏰ FlowState Time Filtering System
**Comprehensive Time Controls**:
- **12-Hour Format Trading Windows**: User-friendly AM/PM time selection
- **Multi-Timezone Support**: UTC, EST, PST, CST with automatic conversion
- **Day-of-Week Filtering**: Trade only weekdays, weekends, or both
- **Lunch Hour Avoidance**: Automatically skips low-volume lunch periods (12-1 PM)
- **Visual Time Indicators**: Background coloring shows active/inactive trading periods
**Smart Time Features**:
- Handles overnight trading sessions seamlessly
- Prevents trades during historically poor performance periods
- Customizable trading hours for different market sessions
- Real-time trading window status in dashboard
### 🛡️ Adaptive Risk Management
**Multi-Level Take Profit System**:
- **TP1**: First profit target with optional partial position closure
- **TP2**: Final profit target for remaining position
- **Flexible Scaling**: Choose number of contracts to close at each level
**Dynamic Trailing Stop Technology**:
- **Three Operating Modes**:
- **Conservative**: Earlier activation, tighter trailing (protect profits)
- **Balanced**: Optimal risk/reward balance (recommended)
- **Aggressive**: Later activation, wider trailing (let winners run)
- **ATR-Based Calculations**: Adapts to current market volatility
- **Automatic Activation**: Engages when position reaches profitability threshold
### 📊 Intelligent Position Sizing
**Contract-Based Management**:
- Configurable entry quantity (1-1000 contracts)
- Partial close quantities for profit-taking
- Clear position tracking and P&L monitoring
- Real-time position status updates
### 🎨 Professional Visualization
**Enhanced Chart Elements**:
- **Entry Zone Highlighting**: Clear visual identification of trading opportunities
- **Dynamic Risk/Reward Lines**: Real-time TP and SL levels with price labels
- **Trailing Stop Visualization**: Live tracking of adaptive stop levels
- **Support/Resistance Lines**: Key level identification
- **Time Window Background**: Visual confirmation of active trading periods
**Dual Dashboard System**:
- **Strategy Dashboard**: Real-time position info, settings status, and current levels
- **Performance Scorecard**: Live P&L tracking, win rates, and trade statistics
- **Customizable Sizing**: Small, Medium, or Large display options
### ⚙️ Comprehensive Customization
**Core Strategy Settings**:
- **Lookback Period**: Support/resistance calculation period (5-100 bars)
- **ATR Configuration**: Period and multipliers for stops/targets
- **Reward-to-Risk Ratios**: Customizable profit target calculations
- **Trend Filter Options**: EMA/SMA selection with adjustable periods
**Time Filter Controls**:
- **Trading Hours**: Start/end times in 12-hour format
- **Timezone Selection**: Four major timezone options
- **Day Restrictions**: Weekend-only, weekday-only, or unrestricted
- **Session Management**: Lunch hour avoidance and custom periods
**Risk Management Options**:
- **Trailing Stop Modes**: Conservative/Balanced/Aggressive presets
- **Partial Close Settings**: Enable/disable with custom quantities
- **Alert System**: Comprehensive notifications for all trade events
### 📈 Performance Tracking
**Real-Time Metrics**:
- Net profit/loss calculation
- Win rate percentage
- Profit factor analysis
- Maximum drawdown tracking
- Total trade count and breakdown
- Current position P&L
**Trade Analytics**:
- Winner/loser ratio tracking
- Real-time performance scorecard
- Strategy effectiveness monitoring
- Risk-adjusted return metrics
### 🔔 Alert System
**Comprehensive Notifications**:
- Entry signal alerts with price and quantity
- Take profit level hits (TP1 and TP2)
- Stop loss activations
- Trailing stop engagements
- Position closure notifications
## Strategy Logic Deep Dive
### Entry Signal Generation
The strategy identifies high-probability reversal points by combining multiple confirmation factors:
1. **Price Action**: Looks for price interaction with key support/resistance levels
2. **Volume Confirmation**: Ensures sufficient market interest and liquidity
3. **Trend Alignment**: Optional filter prevents counter-trend positions
4. **Time Validation**: Only trades during user-defined optimal periods
5. **Zone Analysis**: Entry occurs within calculated buffer zones around key levels
### Risk Management Philosophy
FlowState Trader employs a three-tier risk management approach:
1. **Initial Protection**: ATR-based stop losses set at strategy entry
2. **Profit Preservation**: Trailing stops activate once position becomes profitable
3. **Scaled Exit**: Partial profit-taking allows for both security and potential
### Time-Based Edge
The time filtering system recognizes that not all trading hours are equal:
- Avoids low-volume, high-spread periods
- Focuses on optimal liquidity windows
- Prevents trading during news events (lunch hours)
- Allows customization for different market sessions
## Best Practices and Optimization
### Recommended Settings
**For Scalping (1-5 minute charts)**:
- Lookback Period: 10-20
- ATR Period: 14
- Trailing Stop: Conservative mode
- Time Filter: Major session hours only
**For Day Trading (15-60 minute charts)**:
- Lookback Period: 20-30
- ATR Period: 14-21
- Trailing Stop: Balanced mode
- Time Filter: Extended trading hours
**For Swing Trading (4H+ charts)**:
- Lookback Period: 30-50
- ATR Period: 21+
- Trailing Stop: Aggressive mode
- Time Filter: Disabled or very broad
### Market Compatibility
- **Forex**: Excellent for major pairs during active sessions
- **Stocks**: Ideal for liquid stocks during market hours
- **Futures**: Perfect for index and commodity futures
- **Crypto**: Effective on major cryptocurrencies (24/7 capability)
### Risk Considerations
- **Market Conditions**: Performance varies with volatility regimes
- **Timeframe Selection**: Lower timeframes require tighter risk management
- **Position Sizing**: Never risk more than 1-2% of account per trade
- **Backtesting**: Always test on historical data before live implementation
## Educational Value
FlowState serves as an excellent learning tool for:
- Understanding support/resistance trading
- Learning proper time-based filtering
- Mastering trailing stop techniques
- Developing systematic trading approaches
- Risk management best practices
## Disclaimer
This strategy is for educational and informational purposes only. Past performance does not guarantee future results. Trading involves substantial risk of loss and is not suitable for all investors. Users should thoroughly backtest the strategy and understand all risks before live trading. Always use proper position sizing and never risk more than you can afford to lose.
---
*FlowState Trader represents the evolution of systematic trading - combining classical technical analysis with modern risk management and intelligent time filtering to help traders achieve their optimal performance state through systematic, disciplined execution.*
Gold Multi TP Strategy📘 Strategy Description: Gold Multi Take-Profit Strategy (XAUUSD)
This strategy is designed for Gold (XAUUSD) and works on any timeframe (recommended: 15-min or higher). It executes trades based on a simple EMA crossover logic with optional higher-timeframe and ATR-based filters to confirm trend direction and volatility.
🔑 Core Features
✅ Directional control: Trade only long, short, or both directions (Strategy Direction)
✅ Multi-level Take Profit: Scale out at up to 4 configurable profit targets
✅ Fixed Stop Loss: Set custom SL distance for risk control
✅ Position Sizing: Allocate different percentages to each TP level
✅ HTF Trend Filter (optional): Align trades with weekly candle trend
✅ ATR Filter (optional): Improve entries with volatility-based filter
⚙️ Inputs Explained
Input Name Function
Strategy Direction Choose to trade all, long, or short only
Length of Filter Length of the moving average used for HTF trend filter
Candle Time Reference candle timeframe in minutes (e.g., 1440 for daily)
Length of ATR Period for ATR calculation (volatility)
HTF Higher timeframe for filter (e.g., 1 week)
Filter Checkbox Enable/disable trend filter
Stop Loss Fixed SL distance in price units
Qty_percent1-3 % of position allocated to TP1–TP3 (rest goes to TP4)
Take profit1–4 TP levels (in price units) from entry price
🧠 Logic Overview
Entry triggered on EMA 20/50 crossover
Optional filter: entry allowed only if current price is above its HTF MA (bullish) or below (bearish)
Position is scaled out at up to 4 profit levels using different qty_percent
SL remains fixed throughout the trade
📊 Best Use
Intraday trading on XAUUSD, ideally during London/NY sessions
Trending or breakout conditions
Works best with additional confluence (price action, S/R, news)
52SIGNAL RECIPE Coinbase Institutional Smart Money DetectorCoinbase Institutional Smart Money Detector
◆ Overview
Coinbase Institutional Smart Money Detector is an innovative indicator that detects the buying and selling movements of institutional investors through Coinbase Prime in real-time. This powerful tool tracks the flow of funds from large institutions to provide valuable signals before significant market direction changes occur. It can be applied to Bitcoin charts on any exchange, allowing traders to follow the "smart money" movements of institutions anytime, anywhere.
The unique strength of this indicator lies in its comprehensive assessment of institutional investors' consecutive trading behaviors, volume patterns, and trend strength by analyzing Coinbase data in real-time. By providing clear visual representation of institutional fund flow data that is difficult for ordinary traders to access, you gain the opportunity to move alongside the big players in the market.
─────────────────────────────────────
◆ Key Features
• Coinbase Prime Data Analysis: Tracks institutional movements in real-time by analyzing data from Coinbase Prime, an institutional-only service
• Real-time Institutional Fund Flow Monitoring: Immediately detects large institutions' spot buying/selling activities, allowing positioning ahead of the market
• Universal Exchange Compatibility: Applicable to Bitcoin charts on any exchange, enabling use on your preferred trading platform
• Institutional Continuity Analysis: Identifies continuous institutional activity by tracking consecutive buying/selling patterns
• Smart Volume Analysis: Detects increased volume compared to averages and analyzes key trading time periods
• Trend Strength Measurement: Quantifies and displays the strength of upward/downward trends by analyzing candle patterns
• Intuitive Visualization: Clearly marks institutional activity points on charts through bar coloring and labels
• Real-time Strength Display: Calculates and displays current trend strength in a table in real-time
• Customizable Settings: Allows customization of key parameters to match your trading style
─────────────────────────────────────
◆ Understanding Signal Types
■ Institutional Buy Signal
• Definition: Occurs when institutional investors show consecutive buying activity through Coinbase Prime, accompanied by increased volume and strong upward trend
• Visual Representation: Translucent blue bar coloring and "Institution Buying Detected!" label on the candle where the buy signal occurs
• Market Interpretation: Indicates that institutional investors are actively buying spot Bitcoin, which is likely to lead to price increases
• Signal Strength Factors:
▶ Consecutive price increase patterns
▶ Above-average volume
▶ Strong upward trend strength measurement
▶ Significant price movement
■ Institutional Sell Signal
• Definition: Occurs when institutional investors show consecutive selling activity through Coinbase Prime, accompanied by increased volume and strong downward trend
• Visual Representation: Translucent pink bar coloring and "Institution Selling Detected!" label on the candle where the sell signal occurs
• Market Interpretation: Indicates that institutional investors are actively selling spot Bitcoin, which is likely to lead to price decreases
• Signal Strength Factors:
▶ Consecutive price decrease patterns
▶ Above-average volume
▶ Strong downward trend strength measurement
▶ Significant price movement
─────────────────────────────────────
◆ Understanding Trend Strength
■ Trend Strength Measurement Method
• Definition: Measures trend strength by analyzing the ratio of up/down candles over a recent period
• Visual Representation: Displayed in the table as "BULL STRENGTH" or "BEAR STRENGTH" with percentage value and "STRONG" or "WEAK" status
• Strength Threshold: Strong/weak determination according to user-configurable threshold
• Calculation Method:
▶ Upward trend strength = (Number of upward candles) / (Total analysis period)
▶ Downward trend strength = (Number of downward candles) / (Total analysis period)
▶ Displayed as "STRONG" when strength is above threshold, "WEAK" when below
■ Utilizing Trend Strength
• Signal Filtering: Generates signals only when trend strength is strong, reducing false signals
• Trend Confirmation: Evaluates the health and sustainability of the current market trend
• Entry/Exit Decisions: Consider entering in strong trends and exiting when trends weaken
• Risk Management: Develop strategies to reduce position size in weak trends and increase in strong trends
─────────────────────────────────────
◆ Practical Trading Applications
■ Institutional Buy Signal Strategy
• Trend Reversal Scenario:
▶ Setup: Strong institutional buy signal during a downtrend
▶ Entry: Buy after signal confirmation in the next candle
▶ Stop Loss: Below the low of the signal candle
▶ Take Profit: When reaching previous major resistance or when trend strength weakens
• Trend Continuation Scenario:
▶ Setup: Institutional buy signal after correction in an uptrend
▶ Entry: Buy after signal confirmation
▶ Stop Loss: Below recent major low
▶ Take Profit: Gradually take profits considering trend strength
■ Institutional Sell Signal Strategy
• Trend Reversal Scenario:
▶ Setup: Strong institutional sell signal during an uptrend
▶ Entry: Sell after signal confirmation in the next candle
▶ Stop Loss: Above the high of the signal candle
▶ Take Profit: When reaching previous major support or when trend strength weakens
• Trend Continuation Scenario:
▶ Setup: Institutional sell signal after bounce in a downtrend
▶ Entry: Sell after signal confirmation
▶ Stop Loss: Above recent major high
▶ Take Profit: Gradually take profits considering trend strength
■ Multi-Timeframe Approach
• Higher Timeframe Direction Confirmation:
▶ Check institutional signals and trend strength on daily/4-hour charts
▶ Use for setting main trading direction
• Lower Timeframe Entry Point Finding:
▶ Wait for lower timeframe signals that align with higher timeframe direction
▶ Use for capturing precise entry points
• Cross-Timeframe Signal Alignment:
▶ Signal strength increases when signals occur in the same direction across multiple timeframes
▶ Capture high-probability trading opportunities
─────────────────────────────────────
◆ Indicator Settings Guide
■ Main Setting Parameters
• Institutional Continuity Period:
▶ Purpose: Sets the period to check institutional consecutive buying/selling activity
▶ Lower value: Generates more signals, increases responsiveness
▶ Higher value: Reduces number of signals, increases reliability
• Trend Strength Threshold:
▶ Purpose: Sets the minimum threshold for determining strong trends
▶ Lower value: More signals, less filtering
▶ Higher value: Generates signals only in stronger trends, higher filtering
─────────────────────────────────────
◆ Synergy with Other Indicators
• Support/Resistance Levels:
▶ Institutional signals occurring at key support/resistance levels have higher probability
▶ Combination of key technical analysis levels and institutional activity provides powerful signals
• Moving Averages:
▶ Pay attention to institutional signals near key moving averages (50MA, 200MA)
▶ Strong trend change possibility when moving average crossovers coincide with institutional signals
• RSI/Momentum Indicators:
▶ Institutional buy signals in oversold conditions increase reversal probability
▶ Institutional sell signals in overbought conditions increase reversal probability
• Volume Profile:
▶ Institutional signals at high volume nodes confirm important price levels
▶ Institutional activity in key trading areas greatly impacts price direction
• Market Structure:
▶ Institutional signals near key market structures (higher highs/lows, lower highs/lows) suggest structural changes
▶ Coincidence of market structure changes and institutional activity indicates important trend turning points
─────────────────────────────────────
◆ Conclusion
Coinbase Institutional Smart Money Detector provides traders with valuable insights by tracking spot Bitcoin trading activities of institutional investors through Coinbase Prime in real-time. Because it can be applied to Bitcoin charts on any exchange, you can utilize it immediately on your preferred trading platform.
The core value of this indicator is providing intuitive visualization of institutional fund flow data that is difficult for ordinary traders to access. By comprehensively analyzing consecutive price movements, volume increases, and trend strength to capture institutional activity, you gain the opportunity to move alongside the big players in the market.
Clear buy/sell signals based on Coinbase Prime data and real-time trend strength measurements help traders quickly grasp market conditions and make strategic decisions. By integrating this powerful tool into your trading strategy, secure a competitive edge to understand where the market's smart money is flowing and position accordingly.
─────────────────────────────────────
※ Disclaimer: Like all trading tools, the Institutional Smart Money Detector should be used as a supplementary indicator and not relied upon exclusively for trading decisions. Past patterns of institutional behavior may not guarantee future market movements. Always employ appropriate risk management strategies in your trading.
Coinbase Institutional Smart Money Detector
◆ 개요
Coinbase Institutional Smart Money Detector는 코인베이스 프라임(Coinbase Prime)을 통한 기관 투자자들의 현물 비트코인 매수/매도 움직임을 실시간으로 감지하는 혁신적인 지표입니다. 이 강력한 도구는 대형 기관들의 자금 흐름을 추적하여 중요한 시장 방향 전환이 일어나기 전에 귀중한 신호를 제공합니다. 어떤 거래소의 비트코인 차트에도 적용 가능하여 트레이더들이 언제 어디서든 기관의 "스마트 머니" 움직임을 따라갈 수 있게 해줍니다.
이 지표의 독보적인 강점은 코인베이스 데이터를 실시간으로 분석하여 기관 투자자들의 연속적인 매매 행동, 거래량 패턴, 그리고 추세 강도를 종합적으로 평가한다는 점입니다. 일반 트레이더들이 접근하기 어려운 기관 자금 흐름 데이터를 시각적으로 명확하게 제공함으로써, 여러분은 시장의 큰 손들과 함께 움직일 수 있는 기회를 얻게 됩니다.
─────────────────────────────────────
◆ 주요 특징
• 코인베이스 프라임 데이터 분석: 기관 전용 서비스인 코인베이스 프라임의 데이터를 실시간으로 추적하여 기관의 움직임 포착
• 실시간 기관 자금 흐름 모니터링: 대형 기관들의 현물 매수/매도 활동을 즉각적으로 감지하여 시장에 앞서 포지셔닝 가능
• 모든 거래소 호환성: 어떤 거래소의 비트코인 차트에도 적용 가능하여 선호하는 트레이딩 플랫폼에서 활용 가능
• 기관 연속성 분석: 연속적인 매수/매도 패턴을 추적하여 기관의 지속적인 활동 식별
• 스마트 볼륨 분석: 평균 대비 거래량 증가를 감지하고 주요 거래 시간대를 분석
• 추세 강도 측정: 캔들 패턴을 분석해 상승/하락 추세의 강도를 수치화하여 표시
• 직관적 시각화: 바 컬러링과 라벨을 통해 기관 활동 지점을 차트에 명확하게 표시
• 실시간 강도 표시: 현재 추세의 강도를 실시간으로 계산하여 테이블에 표시
• 사용자 정의 설정: 주요 매개변수를 조정하여 자신의 트레이딩 스타일에 맞게 커스터마이징 가능
─────────────────────────────────────
◆ 신호 유형 이해하기
■ 기관 매수 신호
• 정의: 코인베이스 프라임을 통해 기관 투자자들이 연속적인 매수 활동을 보이며, 이와 함께 거래량 증가와 강한 상승 추세가 나타날 때 발생
• 시각적 표현: 매수 신호가 발생한 캔들에 반투명 파란색 바 컬러링과 함께 "Institution Buying Detected!" 라벨 표시
• 시장 해석: 기관 투자자들이 적극적으로 현물 비트코인을 매수하고 있으며, 이는 곧 가격 상승으로 이어질 가능성이 높음을 의미
• 신호 강도 요소:
▶ 연속적인 가격 상승 패턴
▶ 평균보다 높은 거래량
▶ 강한 상승 추세 강도 측정값
▶ 유의미한 가격 변동
■ 기관 매도 신호
• 정의: 코인베이스 프라임을 통해 기관 투자자들이 연속적인 매도 활동을 보이며, 이와 함께 거래량 증가와 강한 하락 추세가 나타날 때 발생
• 시각적 표현: 매도 신호가 발생한 캔들에 반투명 분홍색 바 컬러링과 함께 "Institution Selling Detected!" 라벨 표시
• 시장 해석: 기관 투자자들이 적극적으로 현물 비트코인을 매도하고 있으며, 이는 곧 가격 하락으로 이어질 가능성이 높음을 의미
• 신호 강도 요소:
▶ 연속적인 가격 하락 패턴
▶ 평균보다 높은 거래량
▶ 강한 하락 추세 강도 측정값
▶ 유의미한 가격 변동
─────────────────────────────────────
◆ 추세 강도 이해하기
■ 추세 강도 측정 방식
• 정의: 최근 일정 기간 동안의 상승/하락 캔들 비율을 분석하여 추세의 강도를 측정
• 시각적 표현: 테이블에 "BULL STRENGTH" 또는 "BEAR STRENGTH"로 표시되며, 백분율 값과 함께 "STRONG" 또는 "WEAK" 상태 표시
• 강도 임계값: 사용자가 설정 가능한 임계값에 따라 강함/약함 판정
• 계산 방식:
▶ 상승 추세 강도 = (상승 캔들 수) / (전체 분석 기간)
▶ 하락 추세 강도 = (하락 캔들 수) / (전체 분석 기간)
▶ 강도가 임계값 이상일 때 "STRONG", 미만일 때 "WEAK"로 표시
■ 추세 강도의 활용
• 신호 필터링: 추세 강도가 강할 때만 신호를 생성하여 허위 신호 감소
• 추세 확인: 현재 시장 추세의 건전성과 지속 가능성 평가
• 진입/퇴출 결정: 강한 추세에서 진입하고 약한 추세로 전환될 때 퇴출 고려
• 리스크 관리: 약한 추세에서는 포지션 크기를 줄이고, 강한 추세에서는 늘리는 전략 수립 가능
─────────────────────────────────────
◆ 실전 트레이딩 응용
■ 기관 매수 신호 활용 전략
• 추세 전환 시나리오:
▶ 설정: 하락 추세 중 강한 기관 매수 신호 발생
▶ 진입: 신호 확인 후 다음 캔들에서 매수
▶ 손절: 신호 캔들의 저점 아래
▶ 이익실현: 이전 주요 저항선 도달 시 또는 추세 강도가 약해질 때
• 추세 지속 시나리오:
▶ 설정: 상승 추세 중 조정 후 기관 매수 신호 발생
▶ 진입: 신호 확인 후 매수
▶ 손절: 최근 주요 저점 아래
▶ 이익실현: 추세 강도를 고려하여 단계적으로 이익실현
■ 기관 매도 신호 활용 전략
• 추세 전환 시나리오:
▶ 설정: 상승 추세 중 강한 기관 매도 신호 발생
▶ 진입: 신호 확인 후 다음 캔들에서 매도
▶ 손절: 신호 캔들의 고점 위
▶ 이익실현: 이전 주요 지지선 도달 시 또는 추세 강도가 약해질 때
• 추세 지속 시나리오:
▶ 설정: 하락 추세 중 반등 후 기관 매도 신호 발생
▶ 진입: 신호 확인 후 매도
▶ 손절: 최근 주요 고점 위
▶ 이익실현: 추세 강도를 고려하여 단계적으로 이익실현
■ 다중 시간프레임 접근법
• 상위 시간프레임 방향성 확인:
▶ 일봉/4시간봉에서 기관 신호 및 추세 강도 확인
▶ 주 트레이딩 방향 설정에 활용
• 하위 시간프레임 진입점 찾기:
▶ 상위 시간프레임 방향과 일치하는 하위 시간프레임 신호 대기
▶ 정밀한 진입점 포착에 활용
• 시간프레임 간 신호 일치 확인:
▶ 여러 시간프레임에서 동일한 방향의 신호가 발생할 때 신호 강도 증가
▶ 높은 확률의 트레이딩 기회 포착
─────────────────────────────────────
◆ 지표 설정 가이드
■ 주요 설정 매개변수
• Institutional Continuity Period (기관 연속성 확인 기간):
▶ 목적: 기관의 연속적인 매수/매도 활동을 확인할 기간 설정
▶ 낮은 값: 더 많은 신호 생성, 반응성 증가
▶ 높은 값: 신호 수 감소, 신뢰성 증가
• Trend Strength Threshold (추세 강도 임계값):
▶ 목적: 추세가 강하다고 판단할 최소 임계값 설정
▶ 낮은 값: 더 많은 신호, 낮은 필터링
▶ 높은 값: 더 강한 추세에서만 신호 생성, 높은 필터링
─────────────────────────────────────
◆ 다른 지표와의 시너지
• 지지/저항 레벨:
▶ 주요 지지/저항 레벨에서 발생하는 기관 신호는 확률이 더 높음
▶ 기술적 분석의 핵심 레벨과 기관 활동의 결합은 강력한 시그널 제공
• 이동평균선:
▶ 주요 이동평균선(50MA, 200MA) 근처에서 발생하는 기관 신호 주목
▶ 이동평균선 돌파와 기관 신호가 일치할 때 강한 추세 변화 가능성
• RSI/모멘텀 지표:
▶ 과매수/과매도 상태에서 발생하는 기관 신호는 반전 가능성 높임
▶ 모멘텀 다이버전스와 기관 신호의 일치는 강력한 반전 신호
• 볼륨 프로파일:
▶ 높은 볼륨 노드에서 발생하는 기관 신호는 중요한 가격 레벨 확인
▶ 주요 거래 영역에서의 기관 활동은 가격 방향에 큰 영향 미침
• 시장 구조:
▶ 주요 시장 구조(높은 고점/저점, 낮은 고점/저점) 근처에서 발생하는 기관 신호는 구조 변화 암시
▶ 시장 구조 변화와 기관 활동의 일치는 중요한 추세 전환점 표시
─────────────────────────────────────
◆ 결론
Coinbase Institutional Smart Money Detector는 코인베이스 프라임을 통한 기관 투자자들의 현물 비트코인 거래 활동을 실시간으로 추적하여 트레이더들에게 귀중한 통찰력을 제공합니다. 어떤 거래소의 비트코인 차트에도 적용 가능하기 때문에, 여러분이 선호하는 트레이딩 플랫폼에서 바로 활용할 수 있습니다.
이 지표의 핵심 가치는 일반 트레이더들이 접근하기 어려운 기관 자금 흐름 데이터를 직관적으로 시각화하여 제공한다는 점입니다. 연속적인 가격 움직임, 거래량 증가, 그리고 추세 강도를 종합적으로 분석하여 기관의 활동을 포착함으로써, 여러분은 시장의 큰 손들과 함께 움직일 수 있는 기회를 얻게 됩니다.
코인베이스 프라임 데이터를 기반으로 한 명확한 매수/매도 신호와 실시간 추세 강도 측정은 트레이더들이 시장 상황을 한눈에 파악하고 신속하게 전략적 결정을 내릴 수 있게 도와줍니다. 이 강력한 도구를 여러분의 트레이딩 전략에 통합함으로써, 시장의 스마트 머니가 어디로 흘러가는지 파악하고 그에 따라 포지셔닝할 수 있는 경쟁 우위를 확보하세요.
─────────────────────────────────────
※ 면책 조항: 모든 트레이딩 도구와 마찬가지로, Institutional Smart Money Detector는 보조 지표로 사용해야 하며 트레이딩 결정을 전적으로 의존해서는 안 됩니다. 과거의 기관 행동 패턴이 미래 시장 움직임을 보장하지는 않습니다. 항상 적절한 리스크 관리 전략을 트레이딩에 활용하세요.
Automated Scalping Signals with TP/SL Indicator [QuantAlgo]🟢 Overview
The Automated Scalping Signals with Take Profit & Stop Loss Indicator is a multi-timeframe trading system that combines market structure analysis with directional bias filtering to identify potential scalping opportunities. It detects Points of Interest (POI) including Fair Value Gaps (FVG) and Order Blocks (OB) while cross-referencing entries with higher timeframe exponential moving average positioning to create systematic entry conditions.
The indicator features adaptive timeframe calculations that automatically scale analysis periods based on your chart timeframe, maintaining consistent analytical relationships across different trading sessions. It provides integrated trade management with stop loss calculation methods, configurable risk-reward ratios, and real-time performance tracking through dashboard displays showing trade statistics, bias direction, and active position status.
This advanced system is designed for low timeframe trading, typically performing optimally on 1 to 15-minute charts across popular instruments such as OANDA:XAUUSD , CME_MINI:MES1! , CME_MINI:ES1! , CME_MINI:MNQ1! , CBOT_MINI:YM1! , CBOT_MINI:MYM1! , BYBIT:BTCUSDT.P , BYBIT:ETHUSDT.P , or any asset and timeframe of your preference.
🟢 How It Works
The indicator operates using a dual-timeframe mathematical framework where higher timeframe exponential moving averages establish directional bias through cross-over analysis, while simultaneously scanning for specific market structure patterns on the POI timeframe. The timeframe calculation engine uses multiplication factors to determine analysis periods, ensuring the bias timeframe provides trend context while the POI timeframe captures structural formations.
The structural analysis begins with FVG detection, which systematically scans price action to identify imbalances where gaps exist between consecutive candle ranges with no overlapping wicks. When such gaps are detected, the algorithm measures their size against minimum thresholds to filter out insignificant formations. Concurrently, OB recognition analyzes three-candle sequences, examining specific open/close relationships that indicate potential institutional accumulation zones. Once these structural patterns are identified, the algorithm cross-references them against the higher timeframe bias direction, creating a validation filter that only permits entries aligned with the prevailing EMA cross-over state. When price subsequently intersects these validated POI zones, entry signals generate with the system calculating entry levels at zone midpoints, then applying the selected stop loss methodology combined with the configured risk-reward ratio to determine take profit placement.
To mirror realistic trading conditions, the indicator incorporates configurable slippage calculations that account for execution differences between intended and actual fill prices. When trades reach their take profit or stop loss levels, the algorithm applies slippage adjustments that worsen the exit prices in a conservative manner - reducing take profit fills and increasing stop loss impact. This approach ensures backtesting results reflect more realistic performance expectations by accounting for spread costs, market volatility during execution, and liquidity constraints that occur in live trading environments.
It also has a performance dashboard that continuously tracks and displays comprehensive trading metrics:
1/ Bias TF / POI TF: Displays the calculated timeframes used for bias analysis and POI detection, showing the actual periods (e.g., "15m / 5m") that result from the multiplier settings to confirm proper adaptive timeframe selection
2/ Bias Direction: Shows current market trend assessment (Bullish, Bearish, or Sideways) derived from EMA cross-over analysis to indicate which trade directions align with prevailing momentum
3/ Data Processing: Indicates how many price bars have been analyzed by the system, helping users verify if complete historical data has been processed for comprehensive strategy validation
4/ Total Trades: Displays the cumulative number of completed trades plus any active positions, providing volume assessment for statistical significance of other metrics
5/ Wins/Losses: Shows the raw count of profitable versus unprofitable trades, offering immediate insight into strategy effectiveness frequency
6/ Win Rate: Reveals the percentage of successful trades, where values above 50% generally indicate effective entry timing and values below suggest strategy refinement needs
7/ Total R-Multiple: Displays cumulative risk-reward performance across all trades, with positive values demonstrating profitable system operation and negative values indicating net losses requiring analysis
8/ Average R Win/Loss: Shows average risk-reward ratios for winning and losing trades separately, where winning averages approaching the configured take profit ratio indicate minimal slippage impact while losing averages near -1.0 suggest effective stop loss execution
9/ TP Ratio / Slippage: Displays the configured take profit ratio and slippage settings with calculated performance impact, showing how execution costs affect actual versus theoretical returns
10/ Profit Factor: Calculates the ratio of total winning amounts to total losing amounts, where values above 1.5 suggest robust profitability, values between 1.0-1.5 indicate modest success, and values below 1.0 show net losses
11/ Maximum Drawdown: Tracks the largest peak-to-trough decline in R-multiple terms, with smaller negative values indicating better capital preservation and risk control during losing streaks
🟢 How to Use
Start by applying the indicator to your chart and observe its performance across different market conditions to understand how it identifies bias direction and POI formations. Then navigate to the settings panel to configure the Bias Timeframe Multiplier for trend context sensitivity and POI Timeframe Multiplier for structural analysis frequency according to your trading preference and objectives.
Next, fine-tune the EMA periods in Bias Settings to control trend detection sensitivity and select your preferred POI types based on your analytical preference. Proceed to configure your Risk Management approach by selecting from the available stop loss calculation methods and setting the Take Profit ratio that aligns with your risk tolerance and profit objectives. Complete the setup by customizing Display Settings to control table visibility and trade visualization elements, adjusting UI positioning and colors for optimal chart readability, then activate Alert Conditions for automated notifications on trade entries, exits, and bias direction changes to support systematic trade management.
🟢 Examples
OANDA:XAUUSD
CME_MINI:MES1!
CME_MINI:ES1!
CME_MINI:MNQ1!
CBOT_MINI:YM1!
BYBIT:BTCUSDT.P
BINANCE:SOLUSD
*Disclaimer: Past performance is not indicative of future results. None of our statements, claims, or signals from our indicators are intended to be financial advice. All trading involves substantial risk of loss, not just upside potential. Users are highly recommended to carefully consider their financial situation and risk tolerance before trading.
KST Strategy [Skyrexio]Overview
KST Strategy leverages Know Sure Thing (KST) indicator in conjunction with the Williams Alligator and Moving average to obtain the high probability setups. KST is used for for having the high probability to enter in the direction of a current trend when momentum is rising, Alligator is used as a short term trend filter, while Moving average approximates the long term trend and allows trades only in its direction. Also strategy has the additional optional filter on Choppiness Index which does not allow trades if market is choppy, above the user-specified threshold. Strategy has the user specified take profit and stop-loss numbers, but multiplied by Average True Range (ATR) value on the moment when trade is open. The strategy opens only long trades.
Unique Features
ATR based stop-loss and take profit. Instead of fixed take profit and stop-loss percentage strategy utilizes user chosen numbers multiplied by ATR for its calculation.
Configurable Trading Periods. Users can tailor the strategy to specific market windows, adapting to different market conditions.
Optional Choppiness Index filter. Strategy allows to choose if it will use the filter trades with Choppiness Index and set up its threshold.
Methodology
The strategy opens long trade when the following price met the conditions:
Close price is above the Alligator's jaw line
Close price is above the filtering Moving average
KST line of Know Sure Thing indicator shall cross over its signal line (details in justification of methodology)
If the Choppiness Index filter is enabled its value shall be less than user defined threshold
When the long trade is executed algorithm defines the stop-loss level as the low minus user defined number, multiplied by ATR at the trade open candle. Also it defines take profit with close price plus user defined number, multiplied by ATR at the trade open candle. While trade is in progress, if high price on any candle above the calculated take profit level or low price is below the calculated stop loss level, trade is closed.
Strategy settings
In the inputs window user can setup the following strategy settings:
ATR Stop Loss (by default = 1.5, number of ATRs to calculate stop-loss level)
ATR Take Profit (by default = 3.5, number of ATRs to calculate take profit level)
Filter MA Type (by default = Least Squares MA, type of moving average which is used for filter MA)
Filter MA Length (by default = 200, length for filter MA calculation)
Enable Choppiness Index Filter (by default = true, setting to choose the optional filtering using Choppiness index)
Choppiness Index Threshold (by default = 50, Choppiness Index threshold, its value shall be below it to allow trades execution)
Choppiness Index Length (by default = 14, length used in Choppiness index calculation)
KST ROC Length #1 (by default = 10, value used in KST indicator calculation, more information in Justification of Methodology)
KST ROC Length #2 (by default = 15, value used in KST indicator calculation, more information in Justification of Methodology)
KST ROC Length #3 (by default = 20, value used in KST indicator calculation, more information in Justification of Methodology)
KST ROC Length #4 (by default = 30, value used in KST indicator calculation, more information in Justification of Methodology)
KST SMA Length #1 (by default = 10, value used in KST indicator calculation, more information in Justification of Methodology)
KST SMA Length #2 (by default = 10, value used in KST indicator calculation, more information in Justification of Methodology)
KST SMA Length #3 (by default = 10, value used in KST indicator calculation, more information in Justification of Methodology)
KST SMA Length #4 (by default = 15, value used in KST indicator calculation, more information in Justification of Methodology)
KST Signal Line Length (by default = 10, value used in KST indicator calculation, more information in Justification of Methodology)
User can choose the optimal parameters during backtesting on certain price chart.
Justification of Methodology
Before understanding why this particular combination of indicator has been chosen let's briefly explain what is KST, Williams Alligator, Moving Average, ATR and Choppiness Index.
The KST (Know Sure Thing) is a momentum oscillator developed by Martin Pring. It combines multiple Rate of Change (ROC) values, smoothed over different timeframes, to identify trend direction and momentum strength. First of all, what is ROC? ROC (Rate of Change) is a momentum indicator that measures the percentage change in price between the current price and the price a set number of periods ago.
ROC = 100 * (Current Price - Price N Periods Ago) / Price N Periods Ago
In our case N is the KST ROC Length inputs from settings, here we will calculate 4 different ROCs to obtain KST value:
KST = ROC1_smooth × 1 + ROC2_smooth × 2 + ROC3_smooth × 3 + ROC4_smooth × 4
ROC1 = ROC(close, KST ROC Length #1), smoothed by KST SMA Length #1,
ROC2 = ROC(close, KST ROC Length #2), smoothed by KST SMA Length #2,
ROC3 = ROC(close, KST ROC Length #3), smoothed by KST SMA Length #3,
ROC4 = ROC(close, KST ROC Length #4), smoothed by KST SMA Length #4
Also for this indicator the signal line is calculated:
Signal = SMA(KST, KST Signal Line Length)
When the KST line rises, it indicates increasing momentum and suggests that an upward trend may be developing. Conversely, when the KST line declines, it reflects weakening momentum and a potential downward trend. A crossover of the KST line above its signal line is considered a buy signal, while a crossover below the signal line is viewed as a sell signal. If the KST stays above zero, it indicates overall bullish momentum; if it remains below zero, it points to bearish momentum. The KST indicator smooths momentum across multiple timeframes, helping to reduce noise and provide clearer signals for medium- to long-term trends.
Next, let’s discuss the short-term trend filter, which combines the Williams Alligator and Williams Fractals. Williams Alligator
Developed by Bill Williams, the Alligator is a technical indicator that identifies trends and potential market reversals. It consists of three smoothed moving averages:
Jaw (Blue Line): The slowest of the three, based on a 13-period smoothed moving average shifted 8 bars ahead.
Teeth (Red Line): The medium-speed line, derived from an 8-period smoothed moving average shifted 5 bars forward.
Lips (Green Line): The fastest line, calculated using a 5-period smoothed moving average shifted 3 bars forward.
When the lines diverge and align in order, the "Alligator" is "awake," signaling a strong trend. When the lines overlap or intertwine, the "Alligator" is "asleep," indicating a range-bound or sideways market. This indicator helps traders determine when to enter or avoid trades.
The next indicator is Moving Average. It has a lot of different types which can be chosen to filter trades and the Least Squares MA is used by default settings. Let's briefly explain what is it.
The Least Squares Moving Average (LSMA) — also known as Linear Regression Moving Average — is a trend-following indicator that uses the least squares method to fit a straight line to the price data over a given period, then plots the value of that line at the most recent point. It draws the best-fitting straight line through the past N prices (using linear regression), and then takes the endpoint of that line as the value of the moving average for that bar. The LSMA aims to reduce lag and highlight the current trend more accurately than traditional moving averages like SMA or EMA.
Key Features:
It reacts faster to price changes than most moving averages.
It is smoother and less noisy than short-term EMAs.
It can be used to identify trend direction, momentum, and potential reversal points.
ATR (Average True Range) is a volatility indicator that measures how much an asset typically moves during a given period. It was introduced by J. Welles Wilder and is widely used to assess market volatility, not direction.
To calculate it first of all we need to get True Range (TR), this is the greatest value among:
High - Low
abs(High - Previous Close)
abs(Low - Previous Close)
ATR = MA(TR, n) , where n is number of periods for moving average, in our case equals 14.
ATR shows how much an asset moves on average per candle/bar. A higher ATR means more volatility; a lower ATR means a calmer market.
The Choppiness Index is a technical indicator that quantifies whether the market is trending or choppy (sideways). It doesn't indicate trend direction — only the strength or weakness of a trend. Higher Choppiness Index usually approximates the sideways market, while its low value tells us that there is a high probability of a trend.
Choppiness Index = 100 × log10(ΣATR(n) / (MaxHigh(n) - MinLow(n))) / log10(n)
where:
ΣATR(n) = sum of the Average True Range over n periods
MaxHigh(n) = highest high over n periods
MinLow(n) = lowest low over n periods
log10 = base-10 logarithm
Now let's understand how these indicators work in conjunction and why they were chosen for this strategy. KST indicator approximates current momentum, when it is rising and KST line crosses over the signal line there is high probability that short term trend is reversing to the upside and strategy allows to take part in this potential move. Alligator's jaw (blue) line is used as an approximation of a short term trend, taking trades only above it we want to avoid trading against trend to increase probability that long trade is going to be winning.
Almost the same for Moving Average, but it approximates the long term trend, this is just the additional filter. If we trade in the direction of the long term trend we increase probability that higher risk to reward trade will hit the take profit. Choppiness index is the optional filter, but if it turned on it is used for approximating if now market is in sideways or in trend. On the range bounded market the potential moves are restricted. We want to decrease probability opening trades in such condition avoiding trades if this index is above threshold value.
When trade is open script sets the stop loss and take profit targets. ATR approximates the current volatility, so we can make a decision when to exit a trade based on current market condition, it can increase the probability that strategy will avoid the excessive stop loss hits, but anyway user can setup how many ATRs to use as a stop loss and take profit target. As was said in the Methodology stop loss level is obtained by subtracting number of ATRs from trade opening candle low, while take profit by adding to this candle's close.
Backtest Results
Operating window: Date range of backtests is 2023.01.01 - 2025.05.01. It is chosen to let the strategy to close all opened positions.
Commission and Slippage: Includes a standard Binance commission of 0.1% and accounts for possible slippage over 5 ticks.
Initial capital: 10000 USDT
Percent of capital used in every trade: 60%
Maximum Single Position Loss: -5.53%
Maximum Single Profit: +8.35%
Net Profit: +5175.20 USDT (+51.75%)
Total Trades: 120 (56.67% win rate)
Profit Factor: 1.747
Maximum Accumulated Loss: 1039.89 USDT (-9.1%)
Average Profit per Trade: 43.13 USDT (+0.6%)
Average Trade Duration: 27 hours
These results are obtained with realistic parameters representing trading conditions observed at major exchanges such as Binance and with realistic trading portfolio usage parameters.
How to Use
Add the script to favorites for easy access.
Apply to the desired timeframe and chart (optimal performance observed on 1h BTC/USDT).
Configure settings using the dropdown choice list in the built-in menu.
Set up alerts to automate strategy positions through web hook with the text: {{strategy.order.alert_message}}
Disclaimer:
Educational and informational tool reflecting Skyrexio commitment to informed trading. Past performance does not guarantee future results. Test strategies in a simulated environment before live implementation.
S4_IBS_Mean_Rev_3candleExitOverview:
This is a rules-based, mean reversion strategy designed to trade pullbacks using the Internal Bar Strength (IBS) indicator. The system looks for oversold conditions based on IBS, then enters long trades , holding for a maximum of 3 bars or until the trade becomes profitable.
The strategy includes:
✅ Strict entry rules based on IBS
✅ Hardcoded exit conditions for risk management
✅ A clean visual table summarizing key performance metrics
How It Works:
1. Internal Bar Strength (IBS) Setup:
The IBS is calculated using the previous bar’s price range:
IBS = (Previous Close - Previous Low) / (Previous High - Previous Low)
IBS values closer to 0 indicate price is near the bottom of the previous range, suggesting oversold conditions.
2. Entry Conditions:
IBS must be ≤ 0.25, signaling an oversold setup.
Trade entries are only allowed within a user-defined backtest window (default: 2024).
Only one trade at a time is permitted (long-only strategy).
3. Exit Conditions:
If the price closes higher than the entry price, the trade exits with a profit.
If the trade has been open for 3 bars without showing profit, the trade is forcefully exited.
All trades are closed automatically at the end of the backtest window if still open.
Additional Features:
📊 A real-time performance metrics table is displayed on the chart, showing:
- Total trades
- % of profitable trades
- Total P&L
- Profit Factor
- Max Drawdown
- Best/Worst trade performance
📈 Visual markers indicate trade entries (green triangle) and exits (red triangle) for easy chart interpretation.
Who Is This For?
This strategy is designed for:
✅ Traders exploring systematic mean reversion approaches
✅ Those who prefer strict, rules-based setups with no subjective decision-making
✅ Traders who want built-in performance tracking directly on the chart
Note: This strategy is provided for educational and research purposes. It is a backtested model and past performance does not guarantee future results. Users should paper trade and validate performance before considering real capital.
Canuck Trading Trader StrategyCanuck Trading Trader Strategy
Overview
The Canuck Trading Trader Strategy is a high-performance, trend-following trading system designed for NASDAQ:TSLA on a 15-minute timeframe. Optimized for precision and profitability, this strategy leverages short-term price trends to capture consistent gains while maintaining robust risk management. Ideal for traders seeking an automated, data-driven approach to trading Tesla’s volatile market, it delivers strong returns with controlled drawdowns.
Key Features
Trend-Based Entries: Identifies short-term trends using a 2-candle lookback period and a minimum trend strength of 0.2%, ensuring responsive trade signals.
Risk Management: Includes a configurable 3.0% stop-loss to cap losses and a 2.0% take-profit to lock in gains, balancing risk and reward.
High Precision: Utilizes bar magnification for accurate backtesting, reflecting realistic trade execution with 1-tick slippage and 0.1 commission.
Clean Interface: No on-chart indicators, providing a distraction-free trading experience focused on performance.
Flexible Sizing: Allocates 10% of equity per trade with support for up to 2 simultaneous positions (pyramiding).
Performance Highlights
Backtested from March 1, 2024, to June 20, 2025, on NASDAQ:TSLA (15-minute timeframe) with $1,000,000 initial capital:
Net Profit: $2,279,888.08 (227.99%)
Win Rate: 52.94% (3,039 winning trades out of 5,741)
Profit Factor: 3.495
Max Drawdown: 2.20%
Average Winning Trade: $1,050.91 (0.55%)
Average Losing Trade: $338.20 (0.18%)
Sharpe Ratio: 2.468
Note: Past performance is not indicative of future results. Always validate with your own backtesting and forward testing.
Usage Instructions
Setup:
Apply the strategy to a NASDAQ:TSLA 15-minute chart.
Ensure your TradingView account supports bar magnification for accurate results.
Configuration:
Lookback Candles: Default is 2 (recommended).
Min Trend Strength: Set to 0.2% for optimal trade frequency.
Stop Loss: Default 3.0% to cap losses.
Take Profit: Default 2.0% to secure gains.
Order Size: 10% of equity per trade.
Pyramiding: Allows up to 2 orders.
Commission: Set to 0.1.
Slippage: Set to 1 tick.
Enable "Recalculate After Order is Filled" and "Recalculate on Every Tick" in backtest settings.
Backtesting:
Run backtests over March 1, 2024, to June 20, 2025, to verify performance.
Adjust stop-loss (e.g., 2.5%) or take-profit (e.g., 1–3%) to suit your risk tolerance.
Live Trading:
Use with a compatible broker or TradingView alerts for automated execution.
Monitor execution for slippage or latency, especially given the high trade frequency (5,741 trades).
Validate in a demo account before deploying with real capital.
Risk Disclosure
Trading involves significant risk and may result in losses exceeding your initial capital. The Canuck Trading Trader Strategy is provided for educational and informational purposes only. Users are responsible for their own trading decisions and should conduct thorough testing before using in live markets. The strategy’s high trade frequency requires reliable execution infrastructure to minimize slippage and latency.
Adaptive Momentum Deviation Oscillator | QuantMACAdaptive Momentum Deviation Oscillator | QuantMAC 📊
Overview 🎯
The Adaptive Momentum Deviation Oscillator (AMDO) is an advanced technical analysis indicator that combines the power of Bollinger Bands with adaptive momentum calculations to identify optimal entry and exit points in financial markets. This sophisticated oscillator creates dynamic bands that adapt to market volatility while providing clear visual signals for both trending and ranging market conditions.
How It Works 🔧
Core Methodology
The AMDO employs a sophisticated multi-layered approach to market analysis through four distinct phases:
Bollinger Band Foundation : The indicator begins by establishing a volatility baseline using traditional Bollinger Bands. These bands are calculated using a simple moving average as the center line, with upper and lower bands positioned at a specific number of standard deviations away from this centerline. The distance between these bands expands and contracts based on market volatility, creating a dynamic envelope around price action.
BB% Normalization Process : The raw price data is then transformed into a normalized percentage format that represents where the current price sits within the Bollinger Band envelope. When price is at the lower band, this percentage reads 0%; at the upper band, it reads 100%. This normalization allows for consistent comparison across different timeframes and price levels, creating a standardized oscillator that oscillates between extreme values.
Adaptive Momentum Band Construction : The normalized BB% values undergo a secondary volatility analysis where their own standard deviation is calculated over a specified period. This creates "bands around the bands" - upper and lower boundaries that adapt to the volatility of the normalized price position itself. These adaptive bands expand during periods of high momentum volatility and contract during consolidation phases.
Intelligent Signal Synthesis : The final layer combines the adaptive momentum bands with user-defined threshold levels to create a sophisticated trigger system. The indicator monitors when the dynamic bands cross above or below these thresholds, filtering out noise while capturing significant momentum shifts. This creates a dual-confirmation system where both volatility adaptation and threshold breaches must align for signal generation.
Key Components 🛠️
Adaptive Momentum Bands 📈
Dynamic Volatility Response : These bands automatically widen during periods of high momentum volatility and narrow during consolidation phases. Unlike fixed oscillator boundaries, they continuously recalibrate based on recent price behavior within the Bollinger Band framework.
Dual-Layer Calculation : The bands are derived from the volatility of the normalized price position itself, creating a "volatility of volatility" measurement. This provides early warning signals when momentum characteristics are changing, even before price breakouts occur.
State-Aware Visualization : The bands employ intelligent color coding that transitions between active and neutral states based on their interaction with threshold levels. Active states indicate high-probability momentum conditions, while neutral states suggest consolidation or indecision.
Momentum Persistence Tracking : The bands maintain memory of recent momentum characteristics, allowing them to distinguish between genuine momentum shifts and temporary price spikes or dips.
Threshold Levels 🎚️
Statistical Significance Boundaries : The threshold levels (default 83 for long, 40 for short) are positioned to capture statistically significant momentum events while filtering out market noise. These levels represent points where momentum probability shifts meaningfully in favor of directional moves.
Asymmetric Design Philosophy : The intentional asymmetry between long and short thresholds (83 vs 40) reflects the natural upward bias of many financial markets and the different risk/reward profiles of long versus short positions.
Contextual Sensitivity : The thresholds work in conjunction with the adaptive bands to create context-sensitive triggers. A threshold breach is only meaningful when it occurs in the proper sequence with band interactions.
Risk-Adjusted Positioning : The threshold levels are calibrated to provide favorable risk-adjusted entry points, considering both the probability of success and the potential magnitude of subsequent moves.
Bollinger Bands Overlay 📊
Multi-Timeframe Context : The price chart overlay provides essential context by showing traditional Bollinger Bands alongside the oscillator. This dual perspective allows traders to see both the absolute price position and the momentum characteristics simultaneously.
Support/Resistance Identification : The filled band area creates a visual representation of dynamic support and resistance levels. Price interaction with these bands provides additional confirmation for oscillator signals.
Volatility Environment Assessment : The width and slope of the bands offer immediate visual feedback about the current volatility environment, helping traders adjust their expectations and risk management accordingly.
Confluence Analysis : The overlay enables traders to identify confluence between price action at Bollinger Band levels and oscillator signals, creating higher-probability trade setups.
Signal Generation ⚡
The AMDO generates signals through precise mathematical crossover events:
Long Signals 🟢
Momentum Accumulation Detection : Long signals are generated when the lower adaptive momentum band crosses above the 83 threshold, indicating that downside momentum has exhausted and bullish momentum is beginning to accumulate. This represents a shift from defensive to offensive market posture.
Statistical Edge Confirmation : The crossing event occurs only when momentum characteristics have shifted sufficiently to provide a statistical edge for long positions. The adaptive nature ensures the signal quality remains consistent across different market volatility regimes.
Visual State Synchronization : Upon signal generation, the entire indicator ecosystem shifts to a bullish state - bar colors change, band states update, and the visual hierarchy emphasizes the long bias until conditions change.
Momentum Persistence Validation : The signal incorporates momentum persistence analysis to distinguish between genuine trend starts and false breakouts, reducing whipsaw trades in choppy market conditions.
Short Signals 🔴
Momentum Exhaustion Recognition : Short signals trigger when the upper adaptive momentum band crosses below the 40 threshold, signaling that bullish momentum has peaked and bearish momentum is emerging. This asymmetric threshold reflects the different dynamics of bullish versus bearish market phases.
Volatility-Adjusted Timing : The adaptive band system ensures that short signals are generated with appropriate timing regardless of the underlying volatility environment, maintaining signal quality in both high and low volatility conditions.
Regime-Aware Activation : Short signals are only active in Long/Short trading mode, recognizing that not all trading strategies benefit from short positions. The indicator adapts its behavior based on the selected trading approach.
Risk-Calibrated Thresholds : The 40 threshold is specifically calibrated to capture meaningful bearish momentum shifts while accounting for the higher risk typically associated with short positions.
Cash Signals 💰
Defensive Positioning Logic : In Long/Cash mode, cash signals are generated when short conditions are met, allowing traders to move to a defensive cash position rather than taking on short exposure. This preserves capital during unfavorable market conditions.
Risk Mitigation Strategy : Cash signals represent a risk-off approach that removes market exposure when momentum conditions favor the short side, protecting long-biased portfolios from adverse market movements.
Opportunity Cost Optimization : The cash position allows traders to avoid negative returns while maintaining flexibility to re-enter long positions when momentum conditions improve, optimizing the risk-adjusted return profile.
Features & Customization ⚙️
Color Schemes 🎨
9 pre-built color schemes (Classic through Classic9)
Custom color override option
Dynamic color changes based on signal states
Trading Modes 📈
Long/Short : Full bidirectional trading capability
Long/Cash : Long-only strategy with cash positions
Performance Metrics 📊
The indicator includes a comprehensive suite of advanced performance analytics that provide deep insights into strategy effectiveness:
Risk-Adjusted Return Metrics
Sortino Ratio : Measures returns relative to downside deviation only, providing a more accurate assessment of risk-adjusted performance by focusing on harmful volatility rather than total volatility. This metric is particularly valuable for asymmetric return distributions.
Sharpe Ratio : Calculates excess return per unit of total risk, offering a standardized measure of risk-adjusted performance that allows for comparison across different strategies and timeframes.
Omega Ratio : Employs probability-weighted analysis to compare the likelihood and magnitude of gains versus losses, providing insights into the overall shape of the return distribution and tail risk characteristics.
Drawdown and Risk Analysis
Maximum Drawdown : Tracks the largest peak-to-trough equity decline, providing crucial information about the worst-case scenario and helping traders understand the emotional and financial stress they might encounter.
Dynamic Drawdown Monitoring : Continuously updates drawdown calculations in real-time, allowing traders to monitor current drawdown levels relative to historical maximums.
Trade Statistics and Profitability
Profit Factor Analysis : Compares gross profits to gross losses, revealing the efficiency of the trading approach and the relationship between winning and losing trades.
Win Rate Calculation : Provides the percentage of profitable trades, which must be interpreted in conjunction with profit factor and average trade size for meaningful analysis.
Trade Frequency Tracking : Monitors total trade count to assess strategy turnover and transaction cost implications.
Position Sizing Guidance
Half Kelly Percentage : Calculates optimal position sizing based on Kelly Criterion methodology, then applies a conservative 50% reduction to account for parameter uncertainty and reduce volatility. This provides mathematically-based position sizing guidance that balances growth with risk management.
Parameters & Settings 🔧
BMD Settings
- Base Length : Period for Bollinger Band calculation (default: 10)
- Source : Price data source (default: close)
- Standard Deviation Length : Period for volatility calculation (default: 35)
- SD Multiplier : Bollinger Band width multiplier (default: 1.0)
- BB% Multiplier : Scaling factor for BB% calculation (default: 100)
BMD Settings
Base Length : Period for Bollinger Band calculation (default: 10)
Source : Price data source (default: close)
Standard Deviation Length : Period for volatility calculation (default: 35)
SD Multiplier : Bollinger Band width multiplier (default: 1.0)
BB% Multiplier : Scaling factor for BB% calculation (default: 100)
Signal Thresholds 🎯
Long Threshold : Trigger level for long signals (default: 83)
Short Threshold : Trigger level for short signals (default: 40)
Display Options 🖥️
Toggleable metrics table with 6 position options
Customizable date range limiter
Multiple visual elements for comprehensive analysis
Use Cases & Applications 💡
Trend Following
Identifies momentum shifts in trending markets
Provides early entry signals during trend continuations
Adaptive bands adjust to changing volatility conditions
Mean Reversion
Detects oversold/overbought conditions
Signals potential reversal points
Works effectively in ranging markets
Risk Management
Built-in performance metrics for strategy evaluation
Half Kelly percentage for position sizing guidance
Maximum drawdown monitoring
Advantages ✅
Adaptive Nature : Automatically adjusts to market volatility
Dual Display : Oscillator and price chart components work together
Comprehensive Metrics : Built-in performance analysis
Flexible Trading Modes : Supports different trading strategies
Visual Clarity : Color-coded signals and states
Customizable : Extensive parameter adjustment options
Important Considerations ⚠️
This indicator is designed for educational and analysis purposes
Should be used in conjunction with other technical analysis tools
Proper risk management is essential when trading
Backtest thoroughly before implementing in live trading
Market conditions can change rapidly, affecting indicator performance
Disclaimer ⚠️
Past performance is not indicative of future results. Trading involves substantial risk of loss and is not suitable for all investors. The information provided by this indicator should not be considered as financial advice. Always conduct your own research.
No indicator guarantees profitable trades - Always use proper risk management! 🛡️
Kijun Shifting Band Oscillator | QuantMAC🎯 Kijun Shifting Band Oscillator | QuantMAC
📊 **Revolutionary Technical Analysis Tool Combining Ancient Ichimoku Wisdom with Cutting-Edge Statistical Methods**
🌟 Overview
The Kijun Shifting Band Oscillator represents a sophisticated fusion of traditional Japanese technical analysis and modern statistical theory. Built upon the foundational concepts of the Ichimoku Kinko Hyo system, this indicator transforms the classic Kijun-sen (base line) into a dynamic, multi-dimensional analysis tool that provides traders with unprecedented market insights.
This advanced oscillator doesn't just show you where price has been – it reveals the underlying momentum dynamics and volatility patterns that drive market movements, giving you a statistical edge in your trading decisions.
🔥 Key Features & Innovations
Dual Trading Modes for Maximum Flexibility: 🚀
Long/Short Mode: Full bidirectional trading capability for aggressive traders seeking to capitalize on both bullish and bearish market conditions
Long/Cash Mode: Conservative approach perfect for risk-averse traders, taking long positions during uptrends and moving to cash during downtrends (avoiding short exposure)
Advanced Visual Intelligence: 🎨
9 Professional Color Schemes: From classic blue/navy to vibrant orange/purple combinations, each optimized for different chart backgrounds and personal preferences
Dynamic Gradient Histogram: Color intensity reflects oscillator strength, providing instant visual feedback on momentum magnitude
Intelligent Overlay Bands: Semi-transparent fills create clear visual boundaries without cluttering your chart
Smart Candle Coloring: Real-time color changes reflect current market state and trend direction
Customizable Threshold Lines: Clearly marked entry and exit levels with contrasting colors
Professional-Grade Analytics: 📊
Real-Time Performance Metrics: Live calculation of 9 key performance indicators
Risk-Adjusted Returns: Sharpe, Sortino, and Omega ratios for comprehensive performance evaluation
Position Sizing Guidance: Half-Kelly percentage for optimal risk management
Drawdown Analysis: Maximum drawdown tracking for risk assessment
📈 Deep Technical Foundation
Kijun-Based Mathematical Framework: 🧮
The indicator begins with the traditional Kijun-sen calculation but extends it significantly:
Statistical Enhancements: 📉
Adaptive Volatility: Bands expand and contract based on market volatility
Momentum Filtering: EMA smoothing of oscillator for trend confirmation
State Management: Intelligent signal filtering prevents whipsaws and false signals
Multi-Timeframe Compatibility: Optimized algorithms work across all timeframes
⚙️ Comprehensive Parameter Control
Kijun Core Settings: 🎛️
Kijun Length (Default: 30): Controls the lookback period for the base calculation. Shorter periods = more responsive, longer periods = smoother signals
Source Selection: Choose from Close, Open, High, Low, or HL2. Close price recommended for most applications
Calculation Method: Uses traditional Ichimoku methodology ensuring compatibility with classic analysis
Advanced Oscillator Configuration: 📊
Standard Deviation Length (Default: 36): Determines volatility measurement period. Affects band width and sensitivity
SD Multiplier (Default: 2.1): Fine-tune band distance from basis line. Higher values = wider bands, lower values = tighter bands
Oscillator Multiplier (Default: 100): Scales the final oscillator output. Useful for matching other indicators or personal preference
Smoothing Algorithm: Built-in EMA smoothing prevents noise while maintaining responsiveness
Signal Threshold Optimization: 🎯
Long Threshold (Default: 83): Oscillator level that triggers long entries. Higher values = fewer but stronger signals
Short Threshold (Default: 42): Oscillator level that triggers short entries. Lower values = fewer but stronger signals
Threshold Logic: Crossover-based system with state management prevents signal overlap
Customization Range: Fully adjustable to match your trading style and risk tolerance
Precision Date Control: 📅
Start Date/Month/Year: Precise backtesting control down to the day
Historical Analysis: Test strategies on specific market periods or events
Strategy Validation: Isolate performance during different market conditions
📊 Professional Metrics Dashboard
Risk Assessment Metrics: 💼
Maximum Drawdown %: Largest peak-to-trough decline in portfolio value. Critical for understanding worst-case scenarios and position sizing
Sortino Ratio: Risk-adjusted return measure focusing only on downside volatility. Superior to Sharpe ratio for asymmetric return distributions
Sharpe Ratio: Classic risk-adjusted performance metric. Values above 1.0 considered good, above 2.0 excellent
Omega Ratio: Probability-weighted ratio capturing all moments of return distribution. More comprehensive than Sharpe or Sortino
Performance Analytics: 📈
Profit Factor: Gross Profit ÷ Gross Loss. Values above 1.0 indicate profitability, above 2.0 considered excellent
Win Rate %: Percentage of profitable trades. Consider alongside average win/loss size for complete picture
Net Profit %: Total return on initial capital. Accounts for compounding effects
Total Trades: Sample size for statistical significance assessment
Advanced Position Sizing: 🎯
Half Kelly %: Optimal position size based on Kelly Criterion, reduced by 50% for safety margin
Risk Management: Helps determine appropriate position size relative to account equity
Mathematical Foundation: Based on win probability and profit factor calculations
Practical Application: Directly usable percentage for position sizing decisions
🎨 Advanced Display Options
Flexible Interface Design: 🖥️
6 Positioning Options: Top/Bottom/Middle × Left/Right combinations for optimal chart organization
Toggle Functionality: Show/hide metrics table for clean chart presentation during analysis
Color Coordination: Metrics table colors match selected oscillator color scheme
Professional Styling: Clean, readable format with proper spacing and alignment
Visual Hierarchy: 🎭
Oscillator Histogram: Primary focus with gradient intensity showing momentum strength
Threshold Lines: Clear horizontal references for entry/exit levels
Zero Line: Neutral reference point for trend bias determination
Background Bands: Subtle overlay context without chart clutter
🚀 Advanced Signal Generation System
Multi-Layer Signal Logic: ⚡
Primary Signal Generation: Oscillator crossover above Long Threshold (default 83) triggers long entries
Exit Signal Processing: Oscillator crossunder below Short Threshold (default 42) triggers position exits
State Management System: Prevents duplicate signals and ensures clean position transitions
Mode-Specific Logic: Different behavior for Long/Short vs Long/Cash modes
Date Range Filtering: Signals only generated within specified backtesting period
Confirmation Requirements: Bar confirmation prevents false signals from intrabar price spikes
Intelligent Position Management: 🧠
Entry Tracking: Precise entry price recording for accurate P&L calculations
Position State Monitoring: Continuous tracking of long/short/cash positions
Automatic Exit Logic: Seamless position closure and new position initiation
Performance Calculation: Real-time P&L tracking with compounding effects
📉📈 Comprehensive Band Interpretation Guide
Dynamic Band Analysis: 🔍
Upper Band Function: Represents dynamic resistance based on recent volatility. Price approaching upper band suggests potential reversal or breakout
Lower Band Function: Represents dynamic support with volatility adjustment. Price near lower band indicates oversold conditions or support testing
Middle Line (Basis): Trend direction indicator. Price above = bullish bias, price below = bearish bias
Band Width Interpretation: Wide bands = high volatility, narrow bands = low volatility/potential breakout setup
Band Slope Analysis: Rising bands = strengthening trend, falling bands = weakening trend
Oscillator Interpretation: 📊
Values Above 50: Price in upper half of recent range, bullish momentum
Values Below 50: Price in lower half of recent range, bearish momentum
Extreme Values (>80 or <20): Overbought/oversold conditions, potential reversal zones
Momentum Divergence: Oscillator direction vs price direction for early reversal signals
Trend Confirmation: Oscillator direction confirming or contradicting price trends
💡 Strategic Trading Applications
Primary Trading Strategies: 🎯
Trend Following: Use threshold crossovers to capture major directional moves. Best in trending markets with clear directional bias
Mean Reversion: Identify extreme oscillator readings for counter-trend opportunities. Effective in range-bound markets
Breakout Trading: Monitor band compressions followed by expansions for breakout signals
Swing Trading: Combine oscillator signals with band interactions for swing position entries/exits
Risk Management: Use metrics dashboard for position sizing and risk assessment
Market Condition Optimization: 🌊
Trending Markets: Increase threshold separation for fewer, stronger signals
Choppy Markets: Decrease threshold separation for more responsive signals
High Volatility: Increase SD multiplier for wider bands
Low Volatility: Decrease SD multiplier for tighter bands and earlier signals
⚙️ Advanced Configuration Tips
Parameter Optimization Guidelines: 🔧
Kijun Length Adjustment: Shorter periods (10-20) for faster signals, longer periods (50-100) for smoother trends
SD Length Tuning: Match to your trading timeframe - shorter for responsive, longer for stability
Threshold Calibration: Backtest different levels to find optimal entry/exit points for your market
Color Scheme Selection: Choose schemes that provide best contrast with your chart background and other indicators
Integration with Other Indicators: 🔗
Volume Indicators: Confirm oscillator signals with volume spikes
Support/Resistance: Use key levels to filter oscillator signals
Momentum Indicators: RSI, MACD confirmation for signal strength
Trend Indicators: Moving averages for overall trend bias confirmation
⚠️ Important Usage Notes & Limitations
Indicator Characteristics: ⚡
Lagging Nature: Based on historical price data - signals occur after moves have begun
Best Practice: Combine with leading indicators and price action analysis
Market Dependency: Performance varies across different market conditions and instruments
Backtesting Essential: Always validate parameters on historical data before live implementation
Optimization Recommendations: 🎯
Parameter Testing: Systematically test different combinations on your preferred instruments
Walk-Forward Analysis: Regularly re-optimize parameters to maintain effectiveness
Market Regime Awareness: Adjust parameters for different market conditions (trending vs ranging)
Risk Controls: Implement maximum drawdown limits and position size controls
🔧 Technical Specifications
Performance Optimization: ⚡
Efficient Algorithms: Optimized calculations for smooth real-time operation
Memory Management: Smart array handling for metrics calculations
Visual Optimization: Balanced detail vs performance for responsive charts
Multi-Symbol Ready: Consistent performance across different assets
---
The Kijun Shifting Band Oscillator represents the evolution of technical analysis, bridging the gap between traditional methods and modern quantitative approaches. This indicator provides traders with a comprehensive toolkit for market analysis, combining the intuitive wisdom of Japanese candlestick analysis with the precision of statistical mathematics.
🎯 Designed for serious traders who demand professional-grade analysis tools with institutional-quality metrics and risk management capabilities. Whether you're a discretionary trader seeking visual confirmation or a systematic trader building quantitative strategies, this indicator provides the foundation for informed trading decisions.
⚠️ IMPORTANT DISCLAIMER
Past Performance Warning: 📉⚠️
PAST PERFORMANCE IS NOT INDICATIVE OF FUTURE RESULTS. Historical backtesting results, while useful for strategy development and parameter optimization, do not guarantee similar performance in live trading conditions. Market conditions change continuously, and what worked in the past may not work in the future.
Remember: Successful trading requires discipline, continuous learning, and adaptation to changing market conditions. No indicator or strategy guarantees profits, and all trading involves substantial risk of loss.
LotSize CalculatorLotSize Calculator Documentation
Overview
The LotSize Calculator is a powerful TradingView indicator designed to help traders calculate optimal position sizes based on risk management principles. It provides a visual representation of trade setups, including entry points, stop losses, and take profits, while calculating the appropriate lot size based on your risk preferences.
Key Features
Automatic lot size calculation based on risk amount
Support for multiple asset classes (forex, commodities, indices, etc.)
Visual R-multiple levels (1R to 5R)
Real-time position tracking with drawdown and run-up statistics
Customizable visual elements and display options
Input Parameters
Risk Management Settings
Risk Amount Type: Choose between risking a fixed amount in dollars ($) or a specific lot size.
Risk Amount: The amount you want to risk on the trade (in dollars if Risk Amount Type is set to $, or in lots if set to Lots).
Overwrite TP: Optional setting to automatically set take profit at a specific R-multiple (1R, 2R, 3R, 4R, or 5R).
Table Comments: Optional field to add personal notes to the position table.
Trade Setup Levels
Trigger Price: The price at which your trade will be entered.
Stop Loss: Your predetermined exit price to limit losses.
Take Profit: Your target price to secure profits.
Time Of Setup Start Bar: The starting time for your trade setup window.
Display Settings
Plot Position Labels: Toggle to show/hide position information labels on the chart.
Plot Position Table: Toggle to show/hide the position information table.
Show Money: Toggle to display monetary values ($) in the labels and table.
Show Points: Toggle to display point values in the labels and table.
Show Ticks: Toggle to display tick values in the labels and table.
Visual Appearance
Entry Color: Color for entry level line and labels.
Take Profit Color: Color for take profit level line and labels.
Stop Loss Color: Color for stop loss level line and labels.
Label Text Color: Color for text in the position labels.
Table Background: Background color for the position information table.
Table Text: Text color for the position information table.
R Labels: Color for the R-multiple level labels.
Table Position: Position of the information table on the chart (options: Bottom Right, Bottom Left, Bottom Middle, Top Right, Top Middle).
How to Use
Basic Setup
Set your entry price in the "Trigger Price" field.
Set your stop loss level in the "Stop Loss" field.
Set your take profit level in the "Take Profit" field.
Choose your risk amount type ($ or Lots) and enter the risk amount.
Optionally, select an R-multiple for automatic take profit calculation.
Understanding the Display
The indicator will show:
Horizontal lines for entry, stop loss, and take profit levels
Colored zones between entry and take profit (potential profit zone) and between entry and stop loss (potential loss zone)
R-multiple levels based on your risk (1R, 2R, 3R, 4R, 5R)
A table displaying:
Position type (long/short) and size
Original risk and reward figures
Maximum run-up and drawdown during the trade
Trade Monitoring
Once a trade is triggered (either by price crossing a stop entry or reaching a limit entry), the indicator tracks:
Current position value
Maximum run-up (highest profit seen)
Maximum drawdown (largest loss seen)
Trade outcome when take profit or stop loss is hit
Advanced Features
Asset Type Detection
The LotSize Calculator automatically detects the type of asset being traded (forex, commodity, index, etc.) and adjusts calculations accordingly to ensure accurate position sizing.
R-Multiple Visualization
R-multiples help visualize potential reward relative to risk. For example, 2R means the potential reward is twice the amount risked. The indicator displays these levels directly on your chart for easy reference.
Adaptive Position Labels
Position labels adjust their display based on trade direction (long or short) and include relevant information about risk, reward, and current position status.
Best Practices
Always confirm your risk is appropriate for your account size (typically 1-2% of account per trade).
Use the R-multiple visualization to ensure your trades offer favorable risk-to-reward ratios.
The indicator works best when used alongside your existing strategy for entry and exit signals.
Customize the visual appearance to match your chart theme for better visibility.
Troubleshooting
If position calculations seem incorrect, verify that the indicator is detecting the correct instrument type.
For forex pairs, ensure your broker's lot size conventions match those used by the indicator.
The indicator may need adjustment for certain exotic instruments or markets with unusual tick sizes.
Stochastic RSI with MTF TableShort Description of the Script
The provided Pine Script indicator, titled "Stochastic RSI with MTF Table," calculates and displays the Stochastic RSI for the current timeframe and multiple other timeframes (5m, 15m, 30m, 60m, 240m, and daily). The Stochastic RSI is a momentum indicator that blends the Relative Strength Index (RSI) and Stochastic Oscillator to identify overbought and oversold conditions, as well as potential trend reversals via K and D line crossovers.
Key features of the script include:
Inputs: Customizable parameters such as K smoothing (default 3), D smoothing (default 3), RSI length (default 14), Stochastic length (default 14), source price (default close), and overbought/oversold levels (default 80/20).
MTF Table: A table displays the Stochastic RSI status for each timeframe:
"OB" (overbought) if K > 80, "OS" (oversold) if K < 20, or "N" (neutral) otherwise.
Crossovers: "K↑D" for bullish (K crosses above D) and "K↓D" for bearish (K crosses below D).
Visualization: Plots the K and D lines for the current timeframe, with horizontal lines at 80 (overbought), 50 (middle), and 20 (oversold), plus a background fill for clarity.
Table Position: Configurable to appear in one of four chart corners (default: top-right).
This indicator helps traders assess momentum across multiple timeframes simultaneously, aiding in the identification of trend strength and potential entry/exit points.
Trading Strategy with 50EMA and 200EMA for Highest Winning Rate
To create a strategy with the best probability of a high winning rate using the Stochastic RSI MTF indicator alongside the 50-period Exponential Moving Average (50EMA) and 200-period Exponential Moving Average (200EMA), we can combine trend identification with momentum-based entry timing. The 50EMA and 200EMA are widely used to determine medium- and long-term trends, while the Stochastic RSI MTF table provides multi-timeframe momentum signals. Here’s the strategy:
1. Determine the Overall Trend
Bullish Trend: The 50EMA is above the 200EMA on the current timeframe (e.g., daily or 60m chart). This suggests an uptrend, often associated with a "Golden Cross."
Bearish Trend: The 50EMA is below the 200EMA on the current timeframe. This indicates a downtrend, often linked to a "Death Cross."
Implementation: Plot the 50EMA and 200EMA on your chart and visually confirm their relative positions.
2. Identify Entry Signals Using the Stochastic RSI MTF Table
In a Bullish Trend (50EMA > 200EMA):
Look for timeframes in the MTF table showing:
Oversold (OS): K < 20, indicating a potential pullback in the uptrend where price may rebound.
Bullish Crossover (K↑D): K crosses above D, signaling rising momentum and a potential entry point.
Example: If the 60m and 240m timeframes show "OS" or "K↑D," this could be a buy signal.
In a Bearish Trend (50EMA < 200EMA):
Look for timeframes in the MTF table showing:
Overbought (OB): K > 80, suggesting a rally in the downtrend where price may reverse downward.
Bearish Crossover (K↓D): K crosses below D, indicating declining momentum and a potential short entry.
Example: If the 30m and daily timeframes show "OB" or "K↓D," this could be a sell/short signal.
Current Timeframe Check: Use the plotted K and D lines on your trading timeframe for precise entry timing (e.g., confirm a K↑D crossover on a 60m chart for a long trade).
3. Confirm Signals Across Multiple Timeframes
Strengthen the Signal: A higher winning rate is more likely when multiple timeframes align with the trend and signal. For instance:
Bullish trend + "OS" or "K↑D" on 60m, 240m, and daily = strong buy signal.
Bearish trend + "OB" or "K↓D" on 15m, 60m, and 240m = strong sell signal.
Prioritize Higher Timeframes: Signals from the 240m or daily timeframe carry more weight due to their indication of broader trends, increasing reliability.
4. Set Stop-Loss and Take-Profit Levels
Long Trades (Bullish):
Stop-Loss: Place below the most recent swing low or below the 50EMA, whichever is closer, to protect against trend reversals.
Take-Profit: Target a key resistance level or use a risk-reward ratio (e.g., 2:1 or 3:1) based on the stop-loss distance.
Short Trades (Bearish):
Stop-Loss: Place above the most recent swing high or above the 50EMA, whichever is closer.
Take-Profit: Target a key support level or apply a similar risk-reward ratio.
Trailing Stop Option: As the trend progresses, trail the stop below the 50EMA (for longs) or above it (for shorts) to lock in profits.
5. Risk Management
Position Sizing: Risk no more than 1-2% of your trading capital per trade to minimize losses from false signals.
Volatility Consideration: Adjust stop-loss distances and position sizes based on the asset’s volatility (e.g., wider stops for volatile stocks or crypto).
Avoid Overtrading: Wait for clear alignment between the EMA trend and MTF signals to avoid low-probability setups.
Example Scenario
Chart: 60-minute timeframe.
Trend: 50EMA > 200EMA (bullish).
MTF Table: 60m shows "OS," 240m shows "K↑D," and daily is "N."
Action: Enter a long position when the 60m K line crosses above D, confirming the table signal.
Stop-Loss: Below the recent 60m swing low (e.g., 2% below entry).
Take-Profit: At the next resistance level or a 3:1 reward-to-risk ratio.
Outcome: High probability of success due to trend alignment and multi-timeframe confirmation.
Why This Strategy Works
Trend Following: Trading in the direction of the 50EMA/200EMA trend reduces the risk of fighting the market’s momentum.
Momentum Timing: The Stochastic RSI MTF table pinpoints pullbacks or reversals within the trend, improving entry timing.
Multi-Timeframe Confirmation: Alignment across timeframes filters out noise, increasing the win rate.
Risk Control: Defined stop-loss and position sizing protect against inevitable losses.
Caveats
No strategy guarantees a 100% win rate; false signals can occur, especially in choppy markets.
Test this strategy on historical data or a demo account to verify its effectiveness for your asset and timeframe.
This approach leverages the strengths of both trend-following (EMA) and momentum (Stochastic RSI) tools, aiming for a high-probability, disciplined trading system.
Step-Based Trailing Stop-Loss IndicatorThis indicator is built for momentum traders who want to maximize winning trades and minimize losses through a smart, step-based trailing stop-loss system. Instead of using a fixed Take Profit, this tool dynamically protects profits once the trade reaches a favorable RR (Risk-to-Reward) level.
How It Works:
Manual Entry Input
You enter your Entry Price and select Buy/Sell in the settings.
This flexibility allows backtesting or live trade tracking.
Initial Setup
Default SL: 50 ticks(Tested on us30,but works on any pair you just need to adjust SL)
TP for reference: 4R — can be used for benchmarking, but we don't limit profits with a hard TP.
Trailing Logic
Once price reaches 3R in profit:
The SL begins trailing.
It starts at 2R, keeping a 1R cushion behind the max profit.
For every 0.5R gain, SL also moves up by 0.5R:
Example: At 3.5R → SL is at 2.5R
At 5.0R → SL is at 4.0R
This trailing continues until the SL is hit or the trend exhausts.
Chart Features
🟧 Entry Line
🔴 Initial SL
🟢 Reference TP (4R, optional)
🟣 Dynamic Trailing SL
🏷️ Labels for Entry & SL levels
EMA 34 Crossover with Break Even Stop LossEMA 34 Crossover with Break Even Stop Loss Strategy
This trading strategy is based on the 34-period Exponential Moving Average (EMA) and aims to enter long positions when the price crosses above the EMA 34. The strategy is designed to manage risk effectively with a dynamic stop loss and take-profit mechanism.
Key Features:
EMA 34 Crossover:
The strategy generates a long entry signal when the closing price of the current bar crosses above the 34-period EMA, with the condition that the previous closing price was below the EMA. This crossover indicates a potential upward trend.
Risk Management:
Upon entering a trade, the strategy sets a stop loss at the low of the previous bar. This helps in controlling the downside risk.
A take profit level is set at a 10:1 risk-to-reward ratio, meaning the potential profit is ten times the amount risked on the trade.
Break-even Stop Loss:
As the price moves in favor of the trade and reaches a 3:1 risk-to-reward ratio, the strategy moves the stop loss to the entry price (break-even). This ensures that no loss will be incurred if the market reverses, effectively protecting profits.
Exit Conditions:
The strategy exits the trade when either the stop loss is hit (if the price drops below the stop loss level) or the take profit target is reached (if the price rises to the take profit level).
If the price reaches the break-even level (entry price), the stop loss is adjusted to lock in profits and prevent any loss.
Visualization:
The stop loss and take profit levels are plotted on the chart for easy visualization, helping traders track the status of their trade.
Trade Management Summary:
Long Entry: When price crosses above the 34-period EMA.
Stop Loss: Set to the low of the previous candle.
Take Profit: Set to a 10:1 risk-to-reward ratio.
Break-even: Stop loss is moved to entry price when a 3:1 risk-to-reward ratio is reached.
Exit: The trade is closed either when the stop loss or take profit levels are hit.
This strategy is designed to minimize losses by employing a dynamic stop loss and to maximize gains by setting a favorable risk-to-reward ratio, making it suitable for traders who prefer a structured, automated approach to risk management and trend-following.
Guntavnook Katta - Fair Value PROOverview:
This script is designed to help long-term investors estimate the fair value of a stock using a combination of fundamental financial metrics and a proprietary multi-factor scoring model. It is especially useful for those who wish to assess whether a stock is undervalued or overvalued based on key fundamentals and recent price behavior.
This script is suitable for stocks, and is best applied on the Daily timeframe.
Purpose:
Many investors rely on Price-to-Earnings (PE) ratios, but not all businesses deserve the same PE due to differences in quality, growth visibility, brand strength, and financial health. This tool attempts to automate the estimation of a fair PE ratio for each company, based on key qualitative and quantitative metrics.
Core Logic:
The script takes the EPS (Earnings Per Share) for the recent financial year from TradingView’s built-in fundamental database and multiplies it by a calculated ideal PE ratio, derived from scoring logic applied to the following parameters:
Financial Parameters Considered:
ROCE (Return on Capital Employed): Indicates how efficiently a company is using its capital to generate profits. Higher ROCE generally reflects strong capital allocation.
ROE (Return on Equity): Shows how effectively the company uses shareholders’ equity. A high ROE may imply strong profitability.
Dividend Yield: Companies that share profits with shareholders via dividends are generally viewed favorably, especially if the yield is sustainable.
Promoter Holding: Higher promoter holding reflects confidence of the founders or promoters in the business. Companies with very low promoter holding might raise governance concerns.
Debt to Equity Ratio: Measures financial risk. Companies with low debt are generally safer, except for banks and NBFCs where high debt is normal.
Sales Growth (5 Years): Reflects business expansion. Consistent growth signals strong demand and operational scalability.
Profit Growth (5 Years): Indicates the company’s ability to grow net earnings over time. High profit growth with low sales growth can sometimes indicate improved margins.
Brand Value: Users can assign qualitative ratings to the company's brand strength, which significantly affects valuation.
Professional Management: If promoter holding is 0%, the company may be professionally or institutionally managed, which adds value in many sectors.
Special Edge: A user-defined optional scoring input for businesses with a strong moat, monopoly, or hard-to-replicate model.
Each of these parameters contributes positively or negatively to the Ideal PE score, which is then used to compute the Fair Value = EPS × Ideal PE.
Why This Scoring Approach?
In fast-moving and diverse market environments, the concept of fair value cannot be treated as a one-size-fits-all number. Traditional valuation models often apply a static PE ratio across stocks, overlooking the individual nuances that define each business. However, real-world investing calls for a more contextual approach—one that acknowledges the dynamic nature of companies, sectors, and economic cycles.
This script attempts to address that gap by offering a systematic way to estimate the fair price of a stock, based on both qualitative and quantitative parameters. The scoring logic is derived from concepts and patterns observed in popular books on fundamental investing and valuation. It encapsulates capital efficiency, ownership structure, growth performance, and brand power—all of which influence a company’s ability to command a premium valuation. The goal is not to suggest decisions but to enable custom, data-supported valuation assessments.
User Instructions:
Apply the script to a stock chart using Daily timeframe.
Open the indicator Settings Panel.
Choose either:
Auto-calculated PE: Let the script determine Ideal PE from scoring inputs.
Manual PE: If you're confident in the fair PE value, input it directly.
Hover over (i) icons in settings for explanation of each input.
Most inputs like ROE, ROCE, D/E ratio, etc., can be found from official filings, annual reports, or financial platforms.
Overbought & Oversold Signals:
This script also provides technical signals based on price deviation from fair value:
Uses RSI-based crossover logic in combination with user-defined price deviation thresholds.
Users can enable/disable signals independently.
Thresholds define how far above/below fair value the stock should move before a signal is triggered.
For example:
If the price moves above the fair value by a percentage equal to or greater than the Overbought threshold set by the user and the RSI crosses below 70, a red Overbought label appears.
If the price drops below the fair value by a percentage equal to or greater than the Oversold threshold set by the user and the RSI crosses above 30, a green Oversold label appears.
You can use the average deviation values displayed in the info table to determine suitable threshold levels based on historical price behavior.
Why RSI?
The Relative Strength Index (RSI) is a widely accepted momentum indicator used to assess whether a stock is overbought or oversold based on recent price performance. In this script, RSI serves as a reliable trigger mechanism when combined with fair value deviations. While the fair value estimation captures long-term fundamentals, RSI helps identify short-term extremes in price action. By using RSI crossovers, the script ensures signals are technically validated and not triggered solely by deviation, thus improving accuracy.
Visual Aids:
The green line shows the calculated Fair Value.
Candle colors:
Red: RSI ≥ 70
Green: RSI ≤ 30
Yellow: Neutral zone
An info table at the top-right displays:
Ideal PE
Current PE (based on FY EPS)
Calculated Fair Value
Avg Upper and Lower Price Deviation % from Fair Value
Note:
This tool is primarily optimized for evaluating Indian stocks, especially those listed on NSE/BSE, where metrics like promoter holding and ROCE are commonly used.
Disclaimer:
This script is intended for educational and research purposes only. It is not investment advice. The logic is based on publicly available data and scoring heuristics designed for learning and valuation awareness.
Momentum Volume Divergence (MVD) EnhancedMomentum Volume Divergence (MVD) Enhanced is a powerful indicator that detects price-momentum divergences and momentum suppression for reversal trading. Optimized for XRP on 1D charts, it features dynamic lookbacks, ATR-adjusted thresholds, and SMA confirmation. Signals include strong divergences (triangles) and suppression warnings (crosses). Includes a detailed user guide—try it out and share your feedback!
Setup: Add to XRP 1D chart with defaults (mom_length_base=8, vol_length_base=10). Signals: Red triangle (sell), Green triangle (buy), Orange cross (bear warning), Yellow cross (bull warning). Confirm with 5-day SMA crossovers. See full guide for details!
Disclaimer: This indicator is for educational purposes only, not financial advice. Trading involves risk—use at your discretion.
Momentum Volume Divergence (MVD) Enhanced Indicator User Guide
Version: Pine Script v6
Designed for: TradingView
Recommended Use: XRP on 1-day (1D) chart
Date: March 18, 2025
Author: Herschel with assistance from Grok 3 (xAI)
Overview
The Momentum Volume Divergence (MVD) Enhanced indicator is a powerful tool for identifying price-momentum divergences and momentum suppression patterns on XRP’s 1-day (1D) chart. Plotted below the price chart, it provides clear visual signals to help traders spot potential reversals and trend shifts.
Purpose
Detect divergences between price and momentum for buy/sell opportunities.
Highlight momentum suppression as warnings of fading trends.
Offer actionable trading signals with intuitive markers.
Indicator Components
Main Plot
Volume-Weighted Momentum (vw_mom): Blue line showing momentum adjusted by volume.
Above 0 = bullish momentum.
Below 0 = bearish momentum.
Zero Line: Gray dashed line at 0, separating bullish/bearish zones.
Key Signals
Strong Bearish Divergence:
Marker: Red triangle at the top.
Meaning: Price makes a higher high, but momentum weakens, confirmed by a drop below the 5-day SMA.
Action: Potential sell/short signal.
Strong Bullish Divergence:
Marker: Green triangle at the bottom.
Meaning: Price makes a lower low, but momentum strengthens, confirmed by a rise above the 5-day SMA.
Action: Potential buy/long signal.
Bearish Suppression:
Marker: Orange cross at the top + red background.
Meaning: Strong bullish momentum with low volume in a volume downtrend, suggesting fading strength.
Action: Warning to avoid longs or exit early.
Bullish Suppression:
Marker: Yellow cross at the bottom + green background.
Meaning: Strong bearish momentum with low volume in a volume uptrend, suggesting fading weakness.
Action: Warning to avoid shorts or exit early.
Debug Plots (Optional)
Volume Ratio: Gray line (volume vs. its MA) vs. yellow line (threshold).
Momentum Threshold: Purple lines (positive/negative momentum cutoffs).
Smoothed Momentum: Orange line (raw momentum).
Confirmation SMA: Purple line (price trend confirmation).
Labels
Text labels (e.g., "Bear Div," "Bull Supp") mark detected patterns.
How to Use the Indicator
Step-by-Step Trading Process
1. Monitor the Chart
Load your XRP 1D chart with the indicator applied.
Observe the blue vw_mom line and signal markers.
2. Spot a Signal
Primary Signals: Look for red triangles (strong_bear) or green triangles (strong_bull).
Warnings: Note orange crosses (suppression_bear) or yellow crosses (suppression_bull).
3. Confirm the Signal
For Strong Bullish Divergence (Buy):
Green triangle appears.
Price closes above the 5-day SMA (purple line) and a recent swing high.
Optional: Volume ratio (gray line) exceeds the threshold (yellow line).
For Strong Bearish Divergence (Sell):
Red triangle appears.
Price closes below the 5-day SMA and a recent swing low.
Optional: Volume ratio (gray line) falls below the threshold (yellow line).
4. Enter the Trade
Long:
Buy at the close of the signal bar.
Stop loss: Below the recent swing low or 2 × ATR(14) below entry.
Short:
Sell/short at the close of the signal bar.
Stop loss: Above the recent swing high or 2 × ATR(14) above entry.
5. Manage the Trade
Take Profit:
Aim for a 2:1 or 3:1 risk-reward ratio (e.g., risk $0.05, target $0.10-$0.15).
Or exit when an opposite suppression signal appears (e.g., orange cross for longs).
Trailing Stop:
Move stop to breakeven after a 1:1 RR move.
Trail using the 5-day SMA or 2 × ATR(14).
Early Exit:
Exit if a suppression signal appears against your position (e.g., suppression_bull while short).
6. Filter Out Noise
Avoid trades if a suppression signal precedes a divergence within 2-3 days.
Optional: Add a 50-day SMA on the price chart:
Longs only if price > 50-SMA.
Shorts only if price < 50-SMA.
Example Trades (XRP 1D)
Bullish Trade
Signal: Green triangle (strong_bull) at $0.55.
Confirmation: Price closes above 5-SMA and $0.57 high.
Entry: Buy at $0.58.
Stop Loss: $0.53 (recent low).
Take Profit: $0.63 (2:1 RR) or exit on suppression_bear.
Outcome: Price hits $0.64, exit at $0.63 for profit.
Bearish Trade
Signal: Red triangle (strong_bear) at $0.70.
Confirmation: Price closes below 5-SMA and $0.68 low.
Entry: Short at $0.67.
Stop Loss: $0.71 (recent high).
Take Profit: $0.62 (2:1 RR) or exit on suppression_bull.
Outcome: Price drops to $0.61, exit at $0.62 for profit.
Tips for Success
Combine with Price Levels:
Use support/resistance zones (e.g., weekly pivots) to confirm entries.
Monitor Volume:
Rising volume (gray line above yellow) strengthens signals.
Adjust Sensitivity:
Too many signals? Increase div_strength_threshold to 0.7.
Too few signals? Decrease to 0.3.
Backtest:
Review 20-30 past signals on XRP 1D to assess performance.
Avoid Choppy Markets:
Skip signals during low volatility (tight price ranges).
Troubleshooting
No Signals:
Lower div_strength_threshold to 0.3 or mom_threshold_base to 0.2.
Check if XRP’s volatility is unusually low.
False Signals:
Increase sma_confirm_length to 7 or add a 50-SMA filter.
Indicator Not Loading:
Ensure the script compiles without errors.
Customization (Optional)
Change Colors: Edit color.* values (e.g., color.red to color.purple).
Add Alerts: Use TradingView’s alert menu for "Strong Bearish Divergence Confirmed," etc.
Test Other Assets: Experiment with BTC or ETH, adjusting inputs as needed.
Disclaimer
This indicator is for educational purposes only and not financial advice. Trading involves risk, and past performance does not guarantee future results. Use at your own discretion.
Setup: Use on XRP 1D with defaults (mom_length_base=8, vol_length_base=10). Signals: Red triangle (sell), Green triangle (buy), Orange cross (bear warning), Yellow cross (bull warning). Confirm with 5-day SMA cross. Stop: 2x ATR(14). Profit: 2:1 RR or suppression exit. Full guide available separately!
AO Smart Scalper – 5M Dynamic SL Edition📈 AO Signals with Fixed and Dynamic SL – Optimized for 5-Minute Charts 📉
This indicator is built for 5-minute timeframe trading, combining powerful momentum signals from the Awesome Oscillator (AO) with both Fixed and Dynamic Stop Loss (SL) levels to enhance trade management and risk control.
✅ Buy/Sell Signals:
The indicator generates clear BUY and SELL signals based on the AO crossing above or below the zero line, helping traders capture momentum shifts early.
🛑 Fixed Stop Loss:
Each trade signal comes with a Fixed SL, calculated based on the high (for shorts) or low (for longs) of the previous candle, with a customizable percentage offset. This SL is plotted with a red line, providing a clear initial risk level.
⚡ Dynamic Stop Loss: Continuous Presence, Strategic Use:
A secondary Dynamic SL line is plotted, which is continuously present on the chart. This dynamic level responds to market conditions and can serve as a trailing stop or key decision point.
💡 Recommended Use: It is recommended to actively start using the Dynamic SL once the trade has moved into profit. This allows protecting obtained profits and minimizing the risk of losses in case of a market reversal.
🛡️ Enhanced Dynamic Stop-Loss Strategy:
🔒 Initial Protection: Utilize the Fixed SL as the initial stop-loss, placed below relevant lows (for longs) or above relevant highs (for shorts), or as provided by the fixed SL indicator.
🛤️ Dynamic Tracking:
🟢 Long Trades: Once in profit, the Dynamic SL will dynamically adjust, moving upwards as higher lows are formed, effectively trailing the price and securing profits.
🔴 Short Trades: Conversely, in short trades, once in profit, the Dynamic SL will move downwards as lower highs are formed, protecting gains.
🔄 Alternatively the dynamic stop loss will follow the dynamic SL line provided by the indicator.
🚪 Exiting Trades: When the price crosses below the Dynamic SL line in a LONG trade, or above it in a SHORT trade, the recommended action is to exit the trade.
↩️ Re-entry Consideration: You may consider re-entering only if the price clearly returns above the Dynamic SL (for longs) or below it (for shorts).
⚠️ IMPORTANT - 5-Minute Strategy Guidance ⏱️
This tool is specifically optimized for the 5-minute timeframe. This approach helps filter out weak setups and maintain discipline in volatile market conditions.
✨ Additional Features:
👁️ Visual and editable SL levels
📊 200-period SMA for trend context
💻 Simple and effective interface for intraday trading setups
🎯 Ideal for traders seeking a clean, rule-based system that combines momentum entry signals with layered stop loss protection.
🔑 Key Changes:
It was emphasized that the Dynamic SL is always present, but its active use is recommended once the trade is in profit.
It was clarified the use of the Fixed SL, giving the option to use the one provided by the indicator, or to place it according to the price action.
Mile Runner - Swing Trade LONGMile Runner - Swing Trade LONG Indicator - By @jerolourenco
Overview
The Mile Runner - Swing Trade LONG indicator is designed for swing traders who focus on LONG positions in stocks, BDRs (Brazilian Depositary Receipts), and ETFs. It provides clear entry signals, stop loss, and take profit levels, helping traders identify optimal buying opportunities with a robust set of technical filters. The indicator is optimized for daily candlestick charts and combines multiple technical analysis tools to ensure high-probability trades.
Key Features
Entry Signals: Visualized as green triangles below the price bars, indicating a potential LONG entry.
Stop Loss and Take Profit Levels: Automatically plotted on the chart for easy reference.
Stop Loss: Based on the most recent pivot low (support level).
Take Profit: Calculated using a Fibonacci-based projection from the entry price to the stop loss.
Trend and Momentum Filters: Ensures trades align with the prevailing trend and have sufficient momentum.
Volume and Volatility Confirmation: Verifies market interest and price movement potential.
How It Works
The indicator uses a combination of technical tools to filter and confirm trade setups:
Exponential Moving Averages (EMAs):
A short EMA (default: 9 periods) and a long EMA (default: 21 periods) identify the trend.
A bullish crossover (EMA9 crosses above EMA21) signals a potential upward trend.
Money Flow Index (MFI):
Confirms buying pressure when MFI > 50.
Average True Range (ATR):
Ensures sufficient volatility by checking if ATR exceeds its 20-period moving average.
Volume:
Confirms market interest when volume exceeds its 20-period moving average.
Pivot Lows:
Identifies recent support levels (pivot lows) to set the stop loss.
Ensures the pivot low is recent (within the last 10 bars by default).
Additional Trend Filter:
Confirms the long EMA is rising, reinforcing the bullish trend.
Inputs and Customization
The indicator is highly customizable, allowing traders to tailor it to their strategies:
EMA Periods: Adjust the short and long EMA lengths.
ATR and MFI Periods: Modify lookback periods for volatility and momentum.
Pivot Lookback: Control the sensitivity of pivot low detection.
Fibonacci Level: Adjust the Fibonacci retracement level for take profit.
Take Profit Multiplier: Fine-tune the aggressiveness of the take profit target.
Max Pivot Age: Set the maximum bars since the last pivot low for relevance.
Usage Instructions
Apply the Indicator:
Add the "Mile Runner - Swing Trade LONG" indicator to your TradingView chart.
Best used on daily charts for swing trading.
Look for Entry Signals:
A green triangle below the price bar signals a potential LONG entry.
Set Stop Loss and Take Profit:
Stop Loss: Red dashed line indicating the stop loss level.
Take Profit: Purple dashed line showing the take profit level.
Monitor the Trade:
The entry price is marked with a green dashed line for reference.
Adjust trade management based on the plotted levels.
Set Alerts:
Use the built-in alert condition to get notified of new LONG entry signals.
Important Notes
For LONG Positions Only : Designed exclusively for swing trading LONG positions.
Timeframe: Optimized for daily charts but can be tested on other timeframes.
Asset Types: Works best with stocks, BDRs, and ETFs.
Risk Management: Always align stop loss and take profit levels with your risk tolerance.
Why Use Mile Runner?
The Mile Runner indicator simplifies swing trading by integrating trend, momentum, volume, and volatility filters into one user-friendly tool. It helps traders:
Identify high-probability entry points.
Establish clear stop loss and take profit levels.
Avoid low-volatility or low-volume markets.
Focus on assets with strong buying pressure and recent support.
By following its signals and levels, traders can make informed decisions and enhance their swing trading performance. Customize the inputs and test it on your favorite assets—happy trading!
Cash And Carry Arbitrage BTC Compare Month 6 by SeoNo1Detailed Explanation of the BTC Cash and Carry Arbitrage Script
Script Title: BTC Cash And Carry Arbitrage Month 6 by SeoNo1
Short Title: BTC C&C ABT Month 6
Version: Pine Script v5
Overlay: True (The indicators are plotted directly on the price chart)
Purpose of the Script
This script is designed to help traders analyze and track arbitrage opportunities between the spot market and futures market for Bitcoin (BTC). Specifically, it calculates the spread and Annual Percentage Yield (APY) from a cash-and-carry arbitrage strategy until a specific expiry date (in this case, June 27, 2025).
The strategy helps identify profitable opportunities when the futures price of BTC is higher than the spot price. Traders can then buy BTC in the spot market and short BTC futures contracts to lock in a risk-free profit.
1. Input Settings
Spot Symbol: The real-time BTC spot price from Binance (BTCUSDT).
Futures Symbol: The BTC futures contract that expires in June 2025 (BTCUSDM2025).
Expiry Date: The expiration date of the futures contract, set to June 27, 2025.
These inputs allow users to adjust the symbols or expiry date according to their trading needs.
2. Price Data Retrieval
Spot Price: Fetches the latest closing price of BTC from the spot market.
Futures Price: Fetches the latest closing price of BTC futures.
Spread: The difference between the futures price and the spot price (futures_price - spot_price).
The spread indicates how much higher (or lower) the futures price is compared to the spot market.
3. Time to Maturity (TTM) and Annual Percentage Yield (APY) Calculation
Current Date: Gets the current timestamp.
Time to Maturity (TTM): The number of days left until the futures contract expires.
APY Calculation:
Formula:
APY = ( Spread / Spot Price ) x ( 365 / TTM Days ) x 100
This represents the annualized return from holding a cash-and-carry arbitrage position if the trader buys BTC at the spot price and sells BTC futures.
4. Display Information Table on the Chart
A table is created on the chart's top-right corner showing the following data:
Metric: Labels such as Spread and APY
Value: Displays the calculated spread and APY
The table automatically updates at the latest bar to display the most recent data.
5. Alert Condition
This sets an alert condition that triggers every time the script runs.
In practice, users can modify this alert to trigger based on specific conditions (e.g., APY exceeds a threshold).
6. Plotting the APY and Spread
APY Plot: Displays the annualized yield as a blue line on the chart.
Spread Plot: Visualizes the futures-spot spread as a red line.
This helps traders quickly identify arbitrage opportunities when the spread or APY reaches desirable levels.
How to Use the Script
Monitor Arbitrage Opportunities:
A positive spread indicates a potential cash-and-carry arbitrage opportunity.
The larger the APY, the more profitable the arbitrage opportunity could be.
Timing Trades:
Execute a buy on the BTC spot market and simultaneously sell BTC futures when the APY is attractive.
Close both positions upon futures contract expiry to realize profits.
Risk Management:
Ensure you have sufficient margin to hold both positions until expiry.
Monitor funding rates and volatility, which could affect returns.
Conclusion
This script is an essential tool for traders looking to exploit price discrepancies between the BTC spot market and futures market through a cash-and-carry arbitrage strategy. It provides real-time data on spreads, annualized returns (APY), and visual alerts, helping traders make informed decisions and maximize their profit potential.
Forex Hammer and Hanging Man StrategyThe strategy is based on two key candlestick chart patterns: Hammer and Hanging Man. These chart patterns are widely used in technical analysis to identify potential reversal points in the market. Their relevance in the Forex market, known for its high liquidity and volatile price movements, is particularly pronounced. Both patterns provide insights into market sentiment and trader psychology, which are critical in currency trading, where short-term volatility plays a significant role.
1. Hammer:
• Typically occurs after a downtrend.
• Signals a potential trend reversal to the upside.
• A Hammer has:
• A small body (close and open are close to each other).
• A long lower shadow, at least twice as long as the body.
• No or a very short upper shadow.
2. Hanging Man:
• Typically occurs after an uptrend.
• Signals a potential reversal to the downside.
• A Hanging Man has:
• A small body, similar to the Hammer.
• A long lower shadow, at least twice as long as the body.
• A small or no upper shadow.
These patterns are a manifestation of market psychology, specifically the tug-of-war between buyers and sellers. The Hammer reflects a situation where sellers tried to push the price down but were overpowered by buyers, while the Hanging Man shows that buyers failed to maintain the upward movement, and sellers could take control.
Relevance of Chart Patterns in Forex
In the Forex market, chart patterns are vital tools because they offer insights into price action and market sentiment. Since Forex trading often involves large volumes of trades, chart patterns like the Hammer and Hanging Man are important for recognizing potential shifts in market momentum. These patterns are a part of technical analysis, which aims to forecast future price movements based on historical data, relying on the psychology of market participants.
Scientific Literature on the Relevance of Candlestick Patterns
1. Behavioral Finance and Candlestick Patterns:
Research on behavioral finance supports the idea that candlestick patterns, such as the Hammer and Hanging Man, are relevant because they reflect shifts in trader psychology and sentiment. According to Lo, Mamaysky, and Wang (2000), patterns like these could be seen as representations of collective investor behavior, influenced by overreaction, optimism, or pessimism, and can often signal reversals in market trends.
2. Statistical Validation of Chart Patterns:
Studies by Brock, Lakonishok, and LeBaron (1992) explored the profitability of technical analysis strategies, including candlestick patterns, and found evidence that certain patterns, such as the Hammer, can have predictive value in financial markets. While their study primarily focused on stock markets, their findings are generally applicable to the Forex market as well.
3. Market Efficiency and Candlestick Patterns:
The efficient market hypothesis (EMH) posits that all available information is reflected in asset prices, but some studies suggest that markets may not always be perfectly efficient, allowing for profitable exploitation of certain chart patterns. For instance, Jegadeesh and Titman (1993) found that momentum strategies, which often rely on price patterns and trends, could generate significant returns, suggesting that patterns like the Hammer or Hanging Man may provide a slight edge, particularly in short-term Forex trading.
Testing the Strategy in Forex Using the Provided Script
The provided script allows traders to test and evaluate the Hammer and Hanging Man patterns in Forex trading by entering positions when these patterns appear and holding the position for a specified number of periods. This strategy can be tested to assess its performance across different currency pairs and timeframes.
1. Testing on Different Timeframes:
• The effectiveness of candlestick patterns can vary across different timeframes, as market dynamics change with the level of detail in each timeframe. Shorter timeframes may provide more frequent signals, but with higher noise, while longer timeframes may produce more reliable signals, but with fewer opportunities. This multi-timeframe analysis could be an area to explore to enhance the strategy’s robustness.
2. Exit Strategies:
• The script incorporates an exit strategy where positions are closed after holding them for a specified number of periods. This is useful for testing how long the reversal patterns typically take to play out and when the optimal exit occurs for maximum profitability. It can also help to adjust the exit logic based on real-time market behavior.
Conclusion
The Hammer and Hanging Man patterns are widely recognized in technical analysis as potential reversal signals, and their application in Forex trading is valuable due to the market’s high volatility and liquidity. This strategy leverages these candlestick patterns to enter and exit trades based on shifts in market sentiment and psychology. Testing and optimization, as offered by the script, can help refine the strategy and improve its effectiveness.
For further refinement, it could be valuable to consider combining candlestick patterns with other technical indicators or using multi-timeframe analysis to confirm patterns and increase the probability of successful trades.
References:
• Lo, A. W., Mamaysky, H., & Wang, J. (2000). Foundations of Technical Analysis: Computational Algorithms, Statistical Inference, and Empirical Implementation. The Journal of Finance, 55(4), 1705-1770.
• Brock, W., Lakonishok, J., & LeBaron, B. (1992). Simple Technical Trading Rules and the Stochastic Properties of Stock Returns. The Journal of Finance, 47(5), 1731-1764.
• Jegadeesh, N., & Titman, S. (1993). Returns to Buying Winners and Selling Losers: Implications for Stock Market Efficiency. The Journal of Finance, 48(1), 65-91.
This provides a theoretical basis for the use of candlestick patterns in trading, supported by academic literature and research on market psychology and efficiency.