거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
지표

Basket Break-Even Lines - buy, sell and net break-even with target price - MetaTrader 5용 지표

Muhammad Muqeem Korejo
Muhammad Muqeem Korejo
Hi, I'm Muhammad Muqeem Korejo, an MQL4/MQL5 developer from Pakistan with 1.5 years of trading experience.
I build and fix trading tools for MetaTrader 4 and MetaTrader 5:
• Expert Advisors (EAs) built from your strategy rules
• Custom indicators, alerts and on-chart panels
조회수:
142
평가:
(1)
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

With a grid, an averaging basket or a hedge you often have several positions open on one symbol at different prices. The terminal shows the profit of each position, but not the price at which the whole basket is back at zero. This indicator draws that price and keeps it up to date on every tick:

  • Buy BE: the price where all buy positions together are at zero.
  • Sell BE: the price where all sell positions together are at zero.
  • Net BE: the price where buys and sells together are at zero. It is drawn when both sides are open.
  • Target: the price where the whole basket makes the profit you enter, in the account currency.
Four planned entries on EURUSD M15 with a 10 USD target (demo account, no open positions)

An info block in the lower left corner shows the number of buys and sells with their volume, the floating result of the open positions and the basket levels.

How it is calculated

The result of a basket is result(P) = k × ((buy lots − sell lots) × P − (Σ buy lots × open price − Σ sell lots × open price)) + swap, where k is the money for a move of 1.0 with 1 lot (tick value / tick size). Setting the result to zero, or to the target, gives each level. Swap can be included. Without swap the break-even levels are exact; the swap part and the target use the current tick value, so on symbols whose profit currency is not the account currency they are close approximations. The spread and commission are not included: buys close at Bid and sells at Ask, so the buy level is a Bid price and the sell level an Ask price.

When buys and sells have the same volume the basket is fully hedged: its result does not change with price and there is no net level. The info block says so instead of drawing a meaningless line.

Planned positions

Before you add to a basket, type the planned entries in the input, for example B 0.10 1.0850; B 0.10 1.0820; S 0.05 1.0900. They are added to the open positions for the calculation only; nothing is traded. The screenshot shows four planned entries on EURUSD M15 with a 10 USD target, on an account without open positions.

Inputs

Input Default Meaning
Only this magic number -1 -1 = all positions on the chart symbol
Include swap true
Target profit line 0 in account currency, 0 = off
Planned positions empty B or S, lots, price; entries separated by ;
Buy / Sell / Net break-even line true show or hide each line
Colours, line style and width chosen to be readable on dark and white charts
Info block, colour and font size true lower left corner

The indicator only reads positions. It never opens, changes or closes a trade.

Telegram Trade Notifier - opens, closes, pending orders and daily summary Telegram Trade Notifier - opens, closes, pending orders and daily summary

Sends every opened and closed position, pending orders and a daily account summary to your Telegram chat. It never trades on your account.

Equity Guard - daily loss, max drawdown and profit target lock Equity Guard - daily loss, max drawdown and profit target lock

Closes all trades and keeps the account flat when the daily loss limit, the maximum drawdown or a daily profit target is reached. Prop-firm style rules, an on-chart panel, and a state that survives terminal restarts.

Multi-TF Data Grabber Lite — Free Clean CSV Export (M1/M15/H1 + Indicators) Multi-TF Data Grabber Lite — Free Clean CSV Export (M1/M15/H1 + Indicators)

Free script exporting clean, deterministic OHLC + tick volume + 4 indicators (MA, RSI, MACD, ATR) for M1/M15/H1 to CSV. Closed bars only, zero lookahead — ideal for analysis and ML datasets.

Compression Breakout Channels with Buy and Sell Volume Compression Breakout Channels with Buy and Sell Volume

Finds volatility compressions as they form, boxes each one as a channel with ATR edge bands and marks the bar that breaks out of it. Inside the live channels: buy and sell volume split from M1 bars, drawn as candles and text, plus a gauge of the current volume delta. Breakout arrows in buffers for EAs.