OPEN-SOURCE SCRIPT
מעודכן

LANZ Strategy 5.0

420
🔷 LANZ Strategy 5.0 — Intraday BUY Signals, Dynamic Lot Size per Account, Real-Time Dashboard and Smart Execution

LANZ Strategy 5.0 is a powerful intraday tool designed for traders who need a visual-first, data-backed BUY system, enhanced with risk-aware lot size calculation and a real-time performance dashboard. This indicator intelligently detects strong momentum setups and provides visual and statistical clarity throughout the session.

📌 This is an indicator, not a strategy — It does not place trades automatically but provides precise conditions, alerts, and visual guides to support execution.

🧠 Core Logic & Features

BUY Entry Conditions (Signal Engine)
A BUY signal is triggered when:

  1. The current price is above the EMA200 (trend filter)
  2. The last 3 candles are bullish (candle body close > open)
  3. You are within the defined session window (NY time)


When all conditions are met and you haven’t reached the daily trade limit, a signal appears on the chart and an optional alert is triggered.

Operational Hours Filter (NY Time)
You define:

  • Start time (e.g., 01:15 NY)
  • End time (e.g., 16:00 NY)


The system only evaluates and executes signals within this period. If a BUY setup occurs outside the window, it’s ignored. The chart is also highlighted with a transparent teal background to visually show active trading hours.

Lot Size Panel with Per-Account Risk Management
Designed for traders managing multiple accounts or capital sources. You can enable up to 5 accounts, each with:

  • Its own capital
  • Its own risk percentage per trade


The system uses the defined SL in pips, plus the instrument’s pip value, to calculate the lot size per account. All values are shown in a dedicated panel at the bottom-right, automatically updating with each new trade.
The emojis (🐣🦊🦁🐲🐳) distinguish each account visually.


Trade Visualization with Customizable Lines
When a signal is triggered:

  • An Entry Point (EP) line is drawn at the candle’s close.
  • A Stop Loss (SL) line is placed X pips below the entry.
  • A Take Profit (TP) line is placed Y pips above the entry.


All three lines are fully customizable in style, color, and thickness. You define how many bars the lines should extend.

Outcome Tracking & Real-Time Dashboard
Each trade outcome is measured:

  • SL hit = –1.00%
  • TP hit = +3.00%
  • Manual close = calculated dynamically based on price at close time


Each result is labeled on the chart near its level, and stored.
The top-right dashboard updates in real time:


  • ✅ Number of trades
  • 📈 Cumulative % gain/loss of the day (color-coded)


Alerts You Can Trust:

  • You’ll get a Buy Alert when a valid signal is formed
  • You’ll get a Trade Executed Alert when the visual operation is plotted
  • You’ll get a SL/TP Hit Alert with price and result
  • You’ll get a Manual Close Alert if the configured time is reached and the trade is still active


⚙️ Step-by-Step Execution Flow

At every bar, the system checks:
  • Are we within the session time window?
  • Is price above EMA?
  • Are the last 3 candles bullish?


✅ If yes:

A BUY signal is plotted
  • Entry/SL/TP lines are drawn
  • Lot sizes are calculated and displayed
  • Trade is added to the daily count
  • 🕐 At the configured Manual Close time (e.g., 16:00 NY):
  • If the trade is still open, it's closed
  • A label is added with the exact result in %


💡 Ideal For:


  • Intraday traders who operate within fixed time sessions
  • Traders managing multiple accounts or capital pools
  • Anyone who wants full visual clarity of every decision point
  • Traders who appreciate dynamic lot size calculation and clean execution tracking


👨‍💻 Credits:

💡 Developed by: LANZ
🧠 Strategy concept & execution model: LANZ
🧪 Tested on: 1H charts with visual-only execution
📈 Designed for: Clarity, adaptability, and full intraday control
הערות שחרור
⚡Update

This version of LANZ Strategy 5.0 introduces a significant optimization to the dashboard and lot size panel system. Both components now update in real time on every bar, ensuring full synchronicity with active trades and daily results. Additionally, the internal daily counter now resets based on the configured session start time, offering improved alignment with real-world trading routines. These changes enhance precision, responsiveness, and overall strategy transparency without altering the core trade logic. Highly recommended for users running intraday sessions with multiple signals.
הערות שחרור
👀 Update

The plotshape() used for BUY signals was replaced with label.new() including a configurable vertical offset in pips, to reduce memory usage and prevent system crashes. This optimization enhances visual performance by displaying entry signals without overloading the chart or freezing the script on long historical data.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.