Another Millionaire toolBack with another Millionaire tool script, put like a solid 12 minutes here curve fitting the moving averages. THIS WILL MAKE YOU A MILLIONAIRE. It is so easy, it makes one of the hardest industries very very easy. Works on any market. I'VE DECIDED TO SHARE THE SCRIPT AND MAKE IT PUBLIC SO WE CAN ALL BE RICH TOGETHER, MILLIONAIRES
Поиск скриптов по запросу "the script"
Understanding order sizestype: properties manipulation, no programming needed
time required: 15minutes, at least
level: medium (need to know contracts, trading pairs)
A strategy can "appear" to work or be broken depending on the pile of cash that is working on. This amount is defined in the strat properties, under "order size".
For noobs (like me) this is very confusing at first :)
A strat opens/closes positions using units, a generic measure for the chart being operated on. Thes "units" can be a fixed amount of cash, a fixed amount of contracts, or a floating amount based on the last profits made. I recommend checking my previous strat to figure the case of contracts .
So, any trading price is the amount of "things" you get for some "cash". The things are the first unit, the "cash" is the second. Some examples:
XAU/USD - 1 xau oz is worth x dollars
BTC/USD - 1 bitcoin is worth x dollars
GBP/EUR - 1 pound is worth x euros
To add to confusion, a lot of markets the "unit size" is different from what the strat thinks it is. An options contract is 100 shares(the unit), 1 xau contract is 10 oz(units), 1 eur/usd contract is 100k euros and so on... so, after figuring out how the sizes work in a strat, then the sizes must be adapted for the specific market in question.
The choice os using the ETHUSD pair is because:
1 - you can buy 1eth, unlike a gold contract for example, so 1 "unit" = 1 eth, easier to get
2 - ETH is around 12 bucks, wich gives round numbers on the math, easier to wrap the brains around :)
3- is an unusual pair, so the regular contract sizes don't apply, and the brain is not conditioned to work inside the box ;)
You will have to access the script properties, to change the values. As these values are changed you will see exactly the differences in the values of the strat.
Text is too long, check the comments for all the cases
BarUpDn time limitedtrying to understand strategies, it appears that there is a lot of black magic in how a strat works behind the scenes.
anyway, it's hard to analyse what's all the data with one gazillion entries, and i wanted to know how we can manipulate/do stuff with a chart.
so, i needed to know how to "give" the script my values to work on. bundled two wants/needs into one, and created a script that only applies a strategy from the date given onwards.
how to use:
at the chart, go to the "format" little button, then the input tab, and there is all the date fields i created. fun to set it to the current date, then start going backwards and see all the little arrows filing up the chart :)
Parabolic SAR Strategy with MACD Confirmation & Trend Zone Highl📝 Description (SEO + Follower-Friendly):
🚀 Powerful Trend Strategy Using Parabolic SAR + MACD
This advanced Pine Script combines the classic Parabolic SAR trend-following system with MACD crossover confirmation, improving entry precision and filtering out false signals. The script also features:
✅ Dynamic trend zone background highlighting when SAR is below price
✅ MACD filter ensures trades align with market momentum
✅ Custom SAR logic with adaptive acceleration
✅ Clean visual SAR plots for easy trend tracking
✅ Fully backtestable with strategy.entry logic
🔎 Ideal for traders seeking early trend entries, momentum confirmation, and visual clarity.
📈 Works on all timeframes and pairs — perfect for swing traders, scalpers, and crypto enthusiasts.
💡 Use it as a base strategy or combine with your favorite indicators.
❤️ If you find this helpful, don't forget to like, comment, and follow for more premium strategies!
Backtest [OptAlgo]This backtest script is designed to convert ideas or indicators into backtest results. The script creates buy/sell signals by comparing price sources against fixed values or other imported plots using many comparison methods. It has many features including multiple exit systems: TP/SL, custom plot-based stops and more. It supports full trading automation through webhook alerts with live signal processing.
🔢 Signal Creation System
→ Values Group : Compare price sources against fixed numerical values
→ Plots Group : Compare two different price sources/indicators against each other
→ Flexible Comparisons : 15+ comparison methods (equal, crossover, rising...)
→ Signal Types : Long, Short, Close All, Block signals, and combination signals
→ Merge Rules : Minimum condition requirements for signal activation
🔀 Advanced Signal Logic
→ Counter Signals : Choose between reversing positions or closing them
→ Signal Inversion : Flip all buy/sell signals with one toggle
→ External Signal Import : Import coded signals (1=Long, -1=Short, 0=Close)
→ Day Blocker : Enable/disable trading on specific weekdays
→ Session Control : Limit trading to specific market sessions
⚙️ Strategy Settings
→ Position Sides : All Ways, Long Only, or Short Only modes
→ Signal Control : Individual enable/disable for long and short signals
→ Counter Signal Mode : Reverse Open Position vs Close Open Position
→ Signal Reversal : Global signal inversion capability
🔰 Risk Management (Limiter Settings)
→ Leverage Control : Leverage with liquidation warnings
→ Drawdown Limit : Auto-halt strategy at specified drawdown percentage
→ Tradable Ratio : Use portion of available balance (0.01-1.0)
→ Contract Limit : Cap maximum contract size regardless of balance
🎯 TP/SL System
→ Fixed TP/SL : Set percentage-based take profit and stop loss
→ Custom Plot Stops : Use any indicator/plot as dynamic stop loss
→ ATR-Based Exits : Volatility-adjusted TP/SL using Average True Range
→ Realistic Protection : Prevents unrealistic TP/SL prices in live trading
→ Stop Modes : Instant (Sudden) vs Candle Close execution
→ ATR Stop Loss : Override fixed SL with volatility-based calculations
→ ATR Take Profit : Dynamic TP based on market volatility
→ Trailing Options : Safe, Normal, or Aggressive trailing methods
→ Calculation Modes : Normal, Volume-weighted, or Limited (with max %) options
→ Volume Integration : ATR levels adjust based on volume influx
🤖 Automation & Alerts
→ Webhook Integration : Send JSON alerts for automated execution
→ Live Signals : Real-time signal processing (every tick vs bar close)
→ Strategy Key : Unique identifier for automated systems
→ Early Entry : Send alerts X seconds before candle close
→ Fast Execution : Prevent signal lag in automated trading
🐞 Development Tools
→ Alert Plotting : Visualize signals directly on chart (disable for live alerts)
→ Professional Mode : Remove UI controls for faster calculation
→ Debug : Metrics are plotted in data window.
📊 Key Advantages
→ Multi-Condition Logic : Combine multiple indicators with flexible rules
→ Risk-First Design : Built-in drawdown and leverage protection
→ Automation Ready : Full webhook and alert system integration
⚠️ Important Warnings
→ High leverage combined with high SL may adjust to liquidation price
→ Use consistent leverage across all strategies on same trading isolated margin pair
→ Live signals require "Calculate on every tick" enabled in settings
→ Disable alert plotting when creating actual alerts to prevent latency
SPXL Futures Strategy- Buy/sell signals for SPXL using futures momentum.
- For real-time signals at close, use ES1! on 2 minute chart and sign up for real-time cboe mini futures data feed in tradingview.
- All buys and sells are at near close of US RTH market at 4pm.
- Best to use the script with other breadth signals to decide on trading strategy.
- Script is compatible with SPY, SPXL, RSP, QQQ, TQQQ and many other SPX correlated tickers, however it’s primarily developed for SPX.
VGrego - Triple Regression StrategyI developed this strategy with perpetual contracts like the ones offered by Bitmex and FTX for Bitcoin.
This script uses complex regressions to analyze past, present and future to place long calls.
The script performs well on 1H charts on most perpetual contracts scenario.
MarketCipher B Backtest (FOR TESTING ONLY, NOT SAFE TO TRADE)A script to backtest the strategy outlined. This is not a final version of the script and is therefore not safe to trade. If you choose to ignore this warning, trade at your own risk.
Ema BacktesterA simple, but useful script for backtesting purposes. Find the optimal Settings for your strategy.
tips are always welcome at: 38uGQJDDZDL6wX48x4gYTccPeQ3ZHVYmY4 (btc)
I hope you enjoy the script :)
Trending CMF MultiTimeFrame - Strategythis is the strategy for the script below
Multi time frame crypto trader
Bitmex Bot 5m candlesThis script was made for our customers to test the strategies of our Bitmex Bot.
I'm not going to give you permission to use the Script, only if you become our client.
Telegram @rmgslash
BitMex Trailing Stop StrategyThis script is designed for those who want to use BitMex's trailing stop. It's not meant to be used as entry exits, but rather to get an idea of how wide the trailing stop needs to be. I suggest you backtest with different values. The script can also be integrated into an existing strategy which does give entry/exits to act as its stop loss.
LFH/ Long positions using MACD histogram, long EMA and short EMADisclaimer: I'm a noob.
Hey there!
I'm trying to implement a script which enter market long position when long EMA crossover short EMA and MACD histogram is positive and histogram at T time is lesser than histogram at T-1.
And when short EMA crossover long EMA, plus MACD histogram is negative and histogram at T is greater than histogram at T-1, I want the script to exit market long position.
Now, I have something pretty close to what I am looking for. What I am missing and can't figure out yet is:
How to moderate entries, ie. I would like it to enter positions when trends are really interesting not just every time the conditions are fulfilled (same for exits) as there is way too much positions
I need to find a way to exit appropriated positions.
Ali.E New York Sesssion Hunter with 10 EnteryNY Session Hunter trades simple breakouts of the New York session range and auto-manages the position.
* Marks NY session **High/Low** and enters on breakout (above high for longs, below low for shorts).
* Scales in up to **10** legs using your offsets and size multipliers.
* TP/SL are set relative to the current position average and update as legs fill.
* **Line colors on chart:**
* **Blue** = Position average price (shown only while a position is open)
* **Green** = Take-profit line
* **Red** = Stop-loss line
* **Light green fill** between the blue (average) and green (TP)
* **Light red fill** between the blue (average) and red (SL)
* **NY High** line = **green**, **NY Low** line = **red**
* Includes a **1-bar cooldown** after closing a position to avoid immediate re-entry.
* Compact stats table shows closed profit, positions closed, win rate, TP/SL counts, and last position P/L.
Access instructions (30-day trial):
1) Send me your exact TradingView username (username) here.
2) After approval, I’ll add you via the script’s “Manage access”.
3) Access is active for 30 days and will be removed afterwards (message me for renewal).
Rules:
- Source code is hidden. Redistribution/resale/sharing is prohibited.
- Access is tied to your personal account only.
- For educational purposes only; trade at your own risk.
Support/Access requests: DM allepcsoft@gmail.com
ValdesTradingBot BB %B / BBW (Long & Short)ValdesTradingBot BB %B / BBW (Long & Short)
Overview
ValdesTradingBot BB %B / BBW (Long & Short) is a volatility and trend-based strategy that uses Bollinger Bands (%B and Band Width) to detect potential re-entry signals in both directions. It is designed for cryptocurrency trading but can be applied to other markets as well.
The strategy combines entry signals from band re-entries with optional filters for trend direction (EMA) and volatility (BBW). Once in a trade, it manages positions using multiple take-profit levels, trailing exits, and a configurable breakeven system.
How it works
Entry conditions (high-level):
Long signals: Price re-enters from below the Bollinger Band or %B crosses upward.
Short signals: Price re-enters from above the Bollinger Band or %B crosses downward.
Filters:
EMA filter: Optional, only takes longs above the EMA and shorts below.
BBW filter: Optional, requires a minimum band width and can require expansion.
Risk management & exits:
Stop Loss: ATR-based initial stop.
Breakeven: Optional; moves stop to entry once price has moved X% in favor (user-defined).
Take Profits: Up to 4 fixed TP levels, each with configurable percentages of the position size.
Trailing Stops: 2 trailing slices that lock in gains as price extends.
Inputs & settings
Bollinger Band Length & Multiplier – defines bands.
EMA Trend Filter – on/off + EMA length.
BBW Filter – on/off, min width, require rising.
ATR Length & Multiplier – defines initial stop distance.
TP1–TP4 % & Allocation – user can set levels and how much to close at each.
TP5–TP6 Trailing % & Allocation – trailing stops and allocations.
Breakeven Trigger % – percent move required to shift stop to entry.
Cooldown bars – blocks instant re-entries after closing a trade.
Recommended usage
Best timeframe: 30-minute chart.
Markets: Crypto pairs (BTC, ETH, majors); adaptable to Forex or stocks.
Starting settings:
EMA filter ON with EMA 200.
BB Multiplier: 1.9–2.2.
ATR Stop x: 5–8.
Breakeven Trigger: 1–2%.
BBW filter OFF (enable if too many signals).
Alerts & automation
The script includes alert conditions for:
Enter Long
Enter Short
All Exited / Flat
Alerts are provided with JSON payloads so they can be used in automation platforms (e.g., via webhooks). Configure on “Any alert() function call” or per-condition basis.
Notes & disclaimer
This is a strategy for research and educational purposes only.
Results vary by market, timeframe, and settings — always forward-test before live trading.
This does not guarantee profits and is not financial advice.
Past performance is not indicative of future results.
EMA Crossover StrategyAs the name suggests. It is an EMA crossover with a custom buy, sell signal on the chart with the take profit signal on the chart itself. SL would be the original candle low on the candle where the buy sell signal is generated. kindly give a feedback on the script so i can update it.
Supertrend Strategy with ATR TP and SLSupertrend Strategy with ATR TP and SL
Overview
The Supertrend strategy is a trend-following trading system that utilizes the Average True Range (ATR) to determine the market's volatility and to set dynamic support and resistance levels. This strategy employs the Supertrend indicator to identify entry and exit points for trades, specifically focusing on long and short positions in the market.
Key Components
Inputs
ATR Period: This defines the lookback period for calculating the ATR, which helps in understanding market volatility. The default value is set to 10.
Supertrend Multiplier: This multiplier adjusts the sensitivity of the Supertrend indicator. A value of 3 is used, affecting the upper and lower bands of the Supertrend calculation.
TP (Take Profit) ATR Multiplier: This multiplier is used to calculate the take profit level based on the ATR (default value is 3).
SL (Stop Loss) ATR Multiplier: This multiplier dictates the stop loss distance from the entry point concerning the ATR, set to a value of 1.5.
Number of Bars to Use for Backtest: This setting determines how many bars are analyzed during testing, set to a default of 240.
Trading Mode: Options are provided to choose whether to take only long positions or only short positions.
ATR Calculation
The ATR is computed using a specified period, allowing traders to gauge market volatility effectively. This is crucial for setting appropriate stop loss and take profit levels.
Supertrend Calculation
The Supertrend indicator is calculated using the ATR and the multiplier to derive upper and lower bands. The current market price is compared against these bands to determine the trend direction.
Trade Signals
Buy Signal: Generated when the price closes above the Supertrend line, indicating a potential upward trend.
Sell Signal: Generated when the price closes below the Supertrend line, indicating a potential downward trend.
Entry and Exit Strategies
When a buy signal is triggered, the strategy will enter a long position while setting the take profit and stop loss based on the ATR values.
Conversely, if a sell signal occurs, a short position is opened with respective take profit and stop loss levels.
Alert Conditions
Alerts are set up for both buy and sell signals, allowing users to be notified when trade opportunities arise.
Visualization
The Supertrend line is plotted on the chart, along with take profit and stop loss levels for each trade. Labels indicate entry points to facilitate easy tracking of trades.
Conclusion
This Supertrend strategy is designed to simplify trading decisions by automating the entry and exit points based on well-defined market conditions. By utilizing the ATR for dynamic risk management, traders can adapt their approach according to market volatility. This strategy is suitable for many trading styles and can be backtested to assess its performance across different market conditions.
Usage
To use this strategy, simply apply the script in TradingView and adjust the input parameters based on your trading preferences. The strategy can be modified further to enhance its performance according to specific market scenarios.
Hassi XAUUSD Advanced FVG EMA/BOS/RSI/Volume + Session FilterWhat it does :
This strategy automates a popular ICT-style idea on XAUUSD (Gold): trade only when price taps back into a Fair Value Gap (FVG), but filter entries with trend, structure, momentum, volume, and session rules. It manages risk with fixed TP/SL (points) and shows a compact backtest panel on chart.
Core Logic
1) Market Structure (BOS)
Detects recent swing highs/lows and flags a Break of Structure:
BOS Up when price breaks the latest swing high.
BOS Down when price breaks the latest swing low.
2) FVG Detection (3-candle)
Bullish FVG when low > high and low > high .
Bearish FVG when high < low and high < low .
The most recent qualifying gap is drawn as a shaded box (optional).
3) Bias & Filters
Trend Bias: price vs EMA (default 200). Longs only above EMA; shorts only below.
Momentum: optional RSI filter (default 14); avoid longs in OB & shorts in OS.
Volume: optional filter requiring current volume > SMA(20) × multiplier.
Sessions: optional London / New York (PKT) time windows.
Entries & Exits
Long Entry (all must be true)
Above EMA, RSI bullish, volume ok, session ok, BOS Up.
A recent Bullish FVG exists (within N bars).
Price taps back into the FVG (low ≤ top & close > bottom) with a bullish candle.
Short Entry (mirror)
Below EMA, RSI bearish, volume ok, session ok, BOS Down.
A recent Bearish FVG exists (within N bars).
Price taps (high ≥ bottom & close < top) with a bearish candle.
Risk / R:R
Exits use fixed points on XAUUSD (default TP 100, SL 50).
On many gold feeds 1.0 = 10 points; inputs convert to price automatically.
“One-trade-at-a-time”: a new signal won’t fire until the previous position is flat.
Chart Labels
On entry, the script plots BUY/SELL plus fixed TP/SL lines & labels anchored to the entry bar (they don’t drift with price).
Visuals & Tools
EMA line (green/red by bias).
Swing points (tiny triangles) to see structure.
FVG boxes (green/red, optional).
Session shading (subtle blue overlay).
Stats Panel (top-right):
Total Trades, TP Hits, SL Hits, Win Rate, Profit Factor, Net P&L.
Inputs (quick guide)
EMA Length (default 200)
Swing Lookback for BOS (default 5)
FVG Box Length (how far the zone extends to the right)
TP / SL (points) for XAUUSD + display Risk:Reward
Sessions (PKT): London & New York windows + toggle
Filters: Volume (multiplier), RSI (length, OB/OS)
Visibility: show/hide FVG boxes & TP/SL drawings
Alerts
Buy Signal / Sell Signal on valid entries
Position Opened / Position Closed notifications
Best Practices & Notes
Designed for XAUUSD 15-minute. You can test other timeframes, but retune TP/SL points and filters accordingly.
Broker ticks differ: if your symbol steps are not 0.1, adjust TP/SL points.
Use with a HTF confluence (e.g., D1/4H bias, key S/R, news awareness).
Backtests are approximations; real results vary with spreads, slippage, and execution.
Disclaimer: This tool is for educational purposes. It is not financial advice. Always test before using on live capital.
Institution Accumulation/DistributionLeveraging the Williams%R oscillator, the script has been optimized to pick out key turning point in the market specifically at Resistance (Overbought) or Support (Oversold)
The algo has been programmed to print both buy and sell alerts at extremes/when conditions flip eg a long position will be closed simultaneously opening a short position above resistance.
Best used as a scalping tool targeting 30m and below works well with currency pairs
Simple Symmetrical Triangle Strategy (6 points)Overview
This strategy identifies triangle patterns formed by a series of key high and low price points. A trade is triggered when the price breaks out from the pattern's final confirmation points: a buy signal occurs on a close above the last high point, and a sell signal on a close below the last low point. To ensure relevance, any pattern that doesn't break out within 10 bars is automatically discarded.
This helps filter out patterns that lose momentum and focuses only on the most imminent breakouts.
How It Works
1. Pattern Detection: The script continuously scans for a sequence of three declining highs (points H1, H2, H3) and three rising lows (points L1, L2, L3) to form a triangle.
2. Entry Logic: The logic is straightforward and based on breaking the last confirmed pivot:
* Long Entry: A buy order is executed if the price closes above the level of the last high (H3).
* Short Entry: A sell order is executed if the price closes below the level of the last low (L3).
3. Pattern Expiration: A triangle only remains "active" for 10 bars after its formation. If a breakout doesn't occur within this window, the pattern is removed from analysis, avoiding trades on prolonged, unresolved consolidations.
Key Features
* Automatic Detection: Identifies and draws triangles for you.
* Simple Breakout Logic: Easy to understand, trades by following the price action.
* Time Filter: Its main advantage is discarding patterns that do not resolve quickly.
* Customizable: You can adjust the sensitivity of the pivot detection in the settings.
Important Disclaimer
This strategy is designed as an entry system and DOES NOT INCLUDE A STOP LOSS OR TAKE PROFIT.
Automation Ready
Want to automate this or ANY strategy on your broker or MetaTrader (MT4/MT5) without keeping your computer on or needing a VPS? You can use WebhookTrade.
Breakout asia USD/CHF1 — Customizable Parameters
sess1 & sess2: The two time ranges that define the Asian session (e.g., 20:00–23:59 and 00:00–08:00).
Important: format is HHMM-HHMM.
rr: The risk/reward ratio (default = 3.0, meaning TP = 3× risk size).
onePerSess: Toggle to allow only one trade per Asian session or multiple.
bufTicks: Extra margin for the SL beyond the signal candle.
2 — Detecting the Asian Session
The script checks if the candle’s time is inside the first range (sess1) or inside the second range (sess2).
While inside the Asian session, it updates the current high and low.
When the session ends, it locks in these levels as rangeHigh and rangeLow.
3 — Step 1: Detecting the Initial Breakout
Bullish breakout → close above rangeHigh → flag breakoutUp is set to true.
Bearish breakout → close below rangeLow → flag breakoutDown is set to true.
No trade yet — this is just the breakout signal.
4 — Step 2: Waiting for the Retest
If a bullish breakout occurred, wait for the price to return to or slightly below rangeHigh and then close back above it.
If a bearish breakout occurred, wait for the price to return to or slightly above rangeLow and then close back below it.
5 — Entry & Exit
When the retest is confirmed:
strategy.entry() is triggered.
SL = behind the retest confirmation candle (with optional bufTicks margin).
TP = entry price ± RR × risk size.
If onePerSess is enabled, no further trades happen until the next Asian session.
6 — Chart Display
Green line = locked Asian session high.
Red line = locked Asian session low.
Light blue background = active Asian session hours.
Trade entries are shown on the chart when retests occur.
Ultimate Scalping Strategy v2Strategy Overview
This is a versatile scalping strategy designed primarily for low timeframes (like 1-min, 3-min, or 5-min charts). Its core logic is based on a classic EMA (Exponential Moving Average) crossover system, which is then filtered by the VWAP (Volume-Weighted Average Price) to confirm the trade's direction in alignment with the market's current intraday sentiment.
The strategy is highly customizable, allowing traders to add layers of confirmation, control trade direction, and manage exits with precision.
Core Strategy Logic
The strategy's entry signals are generated when two primary conditions are met simultaneously:
Momentum Shift (EMA Crossover): It looks for a crossover between a fast EMA (default length 9) and a slow EMA (default length 21).
Buy Signal: The fast EMA crosses above the slow EMA, indicating a potential shift to bullish momentum.
Sell Signal: The fast EMA crosses below the slow EMA, indicating a potential shift to bearish momentum.
Trend/Sentiment Filter (VWAP): The crossover signal is only considered valid if the price is on the "correct" side of the VWAP.
For a Buy Signal: The price must be trading above the VWAP. This confirms that, on average, buyers are in control for the day.
For a Sell Signal: The price must be trading below the VWAP. This confirms that sellers are generally in control.
Confirmation Filters (Optional)
To increase the reliability of the signals and reduce false entries, the strategy includes two optional confirmation filters:
Price Action Filter (Engulfing Candle): If enabled (Use Price Action), the entry signal is only valid if the crossover candle is also an "engulfing" candle.
A Bullish Engulfing candle is a large green candle that completely "engulfs" the body of the previous smaller red candle, signaling strong buying pressure.
A Bearish Engulfing candle is a large red candle that engulfs the previous smaller green candle, signaling strong selling pressure.
Volume Filter (Volume Spike): If enabled (Use Volume Confirmation), the entry signal must be accompanied by a surge in volume. This is confirmed if the volume of the entry candle is greater than its recent moving average (default 20 periods). This ensures the move has strong participation behind it.
Exit Strategy
A position can be closed in one of three ways, creating a comprehensive exit plan:
Stop Loss (SL): A fixed stop loss is set at a level determined by a multiple of the Average True Range (ATR). For example, a 1.5 multiplier places the stop 1.5 times the current ATR value away from the entry price. This makes the stop dynamic, adapting to market volatility.
Take Profit (TP): A fixed take profit is also set using an ATR multiplier. By setting the TP multiplier higher than the SL multiplier (e.g., 2.0 for TP vs. 1.5 for SL), the strategy aims for a positive risk-to-reward ratio on each trade.
Exit on Opposite Signal (Reversal): If enabled, an open position will be closed automatically if a valid entry signal in the opposite direction appears. For example, if you are in a long trade and a valid short signal occurs, the strategy will exit the long position immediately. This feature turns the strategy into more of a reversal system.
Key Features & Customization
Trade Direction Control: You can enable or disable long and short trades independently using the Allow Longs and Allow Shorts toggles. This is useful for trading in harmony with a higher-timeframe trend (e.g., only allowing longs in a bull market).
Visual Plots: The strategy plots the Fast EMA, Slow EMA, and VWAP on the chart for easy visualization of the setup. It also plots up/down arrows to mark where valid buy and sell signals occurred.
Dynamic SL/TP Line Plotting: A standout feature is that the strategy automatically draws the exact Stop Loss and Take Profit price lines on the chart for every active trade. These lines appear when a trade is entered and disappear as soon as it is closed, providing a clear visual of your risk and reward targets.
Alerts: The script includes built-in alertcondition calls. This allows you to create alerts in TradingView that can notify you on your phone or execute trades automatically via a webhook when a long or short signal is generated.
Matrix Trading Strategy**Matrix Trading Strategy** is a multi-signal framework designed to identify and exploit intraday trends with controlled precision. It combines three independent entry engines—Opening Range Breakout (ORB), Ultimate Trend via ATR trailing, and a moving average crossover (MA Cross)—which can operate alone or in any combination, offering traders maximum flexibility.
Risk management is fully parameterizable: position sizing by percent of equity, fixed cash amount, or fixed quantity; SL/TP in pips aligned to the instrument’s tick size (`pipSize`); automatic break-even; ATR-based trailing stop (with an option to anchor to the UT line itself); and configurable partial exits (TP1/TP2). Daily trade limits, entry cooldowns, and forced end-of-session liquidation enforce strict discipline.
Visually, the script plots EMAs, a 1-minute VWAP, ORB levels, the UT trailing line, and signal markers, and it colors candles by RSI for rapid momentum assessment. Ready-to-use alerts for ORB, UT, and MA signals support seamless automation via webhooks.
All together, Matrix Trading is a modular framework that adapts effortlessly to cryptocurrencies, metals, or global indices, delivering realistic executions and transparent metrics in both backtests and live trading.