Tutorials / Tradingview Alerts
Trading rules
Your own limits on new trades from your alerts, your bots and the Trade Copier.
How the rules apply
Rules are on Trading rules and cover every MT5 account on the license set. Saved rules apply from the next alert. Alerts that close or modify a trade always go through, so you can always get out of a trade. Skipped alerts are listed on Failures, marked Skipped.
Each rule has three tick boxes under Applies to: TradingView alerts, Your MT5 Bots (your own EAs (Bots) on an MT5 on our server) and Trade Copier (trades it copies to your accounts). A rule saved before the tick boxes came covers alerts and the copier.
Ticked for Your MT5 Bots, a bot's trade that breaks the rule is closed at once and that bot is switched off. We email you, and it shows on Failures. A bot trade with no stop-loss counts as over Maximum risk, Trades per day counts bot trades on each MT5 apart from your alerts, and the Daily loss limit switches every bot on that MT5 off for the day. Our EA checks it, version 1.18 or newer.
The rules and their values are yours. We don't suggest any.
The rules
| Rule | What it does |
|---|---|
| Pause new trades | One switch. It doesn't close open trades. Overview shows a note while it's on. |
| Trading hours | Days, hours and a timezone. It only decides whether a new trade opens, and doesn't close trades still open when the hours end. |
| Allowed symbols | New trades only on the listed symbols, written as TradingView sends them: XAUUSD, not XAUUSD.x. |
| Trades per day | At most this many new trades a day per MT5 account. Every BUY or SELL alert counts, filled or not. |
| Maximum quantity per trade | For alerts that set lots. |
| Maximum risk per trade | For alerts sized by risk, as an amount or a percent. |
| Daily loss limit | An amount, or a percent of the day's starting balance. You can also have it close every open trade on the account when it's hit: once, at that moment, including manual trades. |
The trading day starts at 17:00 New York time. The daily loss limit needs EA 1.05 or newer, the page lists any terminal where it isn't enforced yet, and EAs pick up a change within about two minutes.
Related
This is how the software works, for education only: not investment advice, and not a recommendation to buy or sell anything. Symbols and numbers are examples of the format. Trading is risky. Diehard Trader carries out alerts and rules you set yourself.