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

Daily Risk Monitor Lite - MetaTrader 5용 지표

조회수:
764
평가:
(2)
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Daily Risk Monitor Lite is a free and open-source MetaTrader 5 indicator for traders who want to monitor intraday account risk clearly on the chart.


This indicator focuses on a small, explainable, and practical feature set:

- Daily Realized P/L
- Floating P/L
- Daily Total
- Current Drawdown %
- SAFE / WARNING / DANGER status with color highlighting

The goal of this project is simple: help traders see daily account risk in real time.

This is a read-only monitoring tool. It does not close positions, block trading, or act as a full protection engine. It is intentionally positioned as a lightweight CodeBase sample for monitoring, learning, and further custom development.

### Main Features

- Compact on-chart panel
- Account-level daily risk statistics
- Daily realized P/L from closed deals
- Floating P/L from open positions
- Daily total calculation
- Current drawdown percentage
- Color-based risk status
- Optional commission inclusion
- Optional swap inclusion
- Broker day or manual day-start logic
- Custom draggable on-chart panel during the active session

### Data Scope

- Account level only
- No symbol-level split
- No multi-account aggregation

### Calculation Rules

#### Daily Realized P/L

- Counts closed deals inside the active daily range
- Only exit deals are included
- Commission can be included or excluded
- Swap can be included or excluded

#### Floating P/L

- Uses the current floating result of all open positions in the account
- Swap can be included or excluded

#### Daily Total

- `Daily Realized P/L + Floating P/L`

#### Current Drawdown %

- `max((Balance - Equity) / Balance * 100, 0)`
- If `Balance <= 0`, drawdown is displayed as `N/A`

#### Risk Usage %

- Only calculated when `Daily Total < 0`
- Formula:
`abs(Daily Total) / Daily Loss Limit * 100`
- Warning threshold: `50%`
- Danger threshold: `80%`

### Day Definition

- If `InpUseBrokerDay = true`, the day starts at broker server `00:00`
- If `InpUseBrokerDay = false`, the day starts at `InpManualDayStartHour` on broker server time



### What This Indicator Does Not Do

- No auto close
- No trade blocking
- No one-click close
- No ON/OFF protection mode
- No full account-protection state machine
- No push notifications
- No report export
- No prop firm full-rule engine
- No complex multi-page UI


### Input Parameters

- `InpDailyLossLimitMoney`
- `InpIncludeCommission`
- `InpIncludeSwap`
- `InpUseBrokerDay`
- `InpManualDayStartHour`
- `InpCorner`
- `InpXOffset`
- `InpYOffset`
- `InpFontSize`
- `InpPanelBgColor`
- `InpSafeColor`
- `InpWarnColor`
- `InpDangerColor`

### Installation

1. Place the project folder under `MQL5/Indicators/`
2. Open `DailyRiskMonitorLite.mq5` in MetaEditor
3. Compile the indicator
4. Attach it to any chart

### How To Use

1. Attach the indicator to a chart
2. Set your daily loss limit
3. Choose broker day or manual day-start mode
4. Watch Daily Realized, Floating, Daily Total, and Drawdown in real time
5. Use the panel colors for quick risk awareness
6. Drag the custom panel to a preferred chart position if needed

### Suitable For

- Manual traders
- Traders who want quick intraday risk awareness
- Traders who want a lightweight account-level monitor
- Developers who want a clean MT5 sample for daily risk calculations

### Not Intended For

- Users looking for auto-trading systems
- Users expecting enforced account protection
- Users expecting trade restrictions or close-all actions
- Users looking for a full prop firm compliance engine

### Notes

- This is a monitoring tool only
- It does not execute protective actions
- Dragged panel position is intended for the active session
- On accounts with zero commission or zero swap, the related parameter toggles may not produce visible differences

L1 Trend Filter Demo L1 Trend Filter Demo

The script shows the usage of L1 Trend Filter methods in MQL5 for float and double vectors on random walk simulated data.

Easy Range Breakout EA - MT5 Easy Range Breakout EA - MT5

This EA implements a range breakout trading strategy. It calculates a price range between start and end times defined by the user, draws a visual rectangle on the chart to mark the high and low of that range, and then monitors price action after the range closes. If the market breaks above the range high, it opens a buy trade; if it breaks below the range low, it opens a sell trade.

Self-Aware Trend System Self-Aware Trend System

Self-Aware Trend System (SATS) is an advanced MQL5 indicator that combines an adaptive SuperTrend engine with a Trend Quality Index (TQI) dashboard, offering dynamic signal detection, risk management levels, and self-learning calibration for smarter, more reliable trade entries.

Calculate Lot Percent Calculate Lot Percent

Function for lot calculation from deposit percentage