Price and indicators
A cross, a breakout, a divergence, a squeeze. If you can write the condition, you can be told about it.
See the exampleBuild · Alerts
An alert watches for something and sends you a message. In AlgoBarsX the alert also carries its own rules: how often to check, whether it may repeat, how long to wait, and when to stop.
This one checks every minute. It tells you when today's loss passes 2% of the account, or when your margin level gets low. Then it waits 4 hours before it may speak again.
check says how often to lookrepeat and cooldown stop it from nagging youalert "Daily risk guard"check: every 1mrepeat: every timecooldown: 4hwhen history.today.pnl < -(2% of account.balance) or account.margin_level < 150%:notify "Daily P&L {history.today.pnl:$0.00}, margin level {account.margin_level:0}%"Daily risk guard is an alert that checks every 1 minute, can fire every time its condition is met and waits 4 hours between alerts.
When today's closed profit or loss is below minus 2% of the account balance or the margin level is below 150%, it sends the notification "Daily P&L {history.today.pnl:$0.00}, margin level {account.margin_level:0}%".
A cross, a breakout, a divergence, a squeeze. If you can write the condition, you can be told about it.
See the exampleBalance, equity, margin level, open trades and today's result are all values an alert can read.
See the exampleCheck every minute, not just at the close, for fast moves and spikes.
See the exampleKnow when a session opens with a gap, or when a market wakes up.
See the exampleAn alert can mark the spot where it fired, so you can look back later.
Read more about marks on the chartRun an alert over past prices. See every message it would have sent, and the ones its own rules held back.
Read more about test before you trustIts own settings decide. The default is once per bar. cooldown sets the shortest gap between messages and expires turns the alert off.
No. The code reads like plain words, it reads itself back in English, and you can type your idea in plain English and press Convert to AlgoBarsX.
No. An alert tells you that something you described has happened. It is not advice, and what you do next is up to you.
Pick an example. Change the numbers. Switch it on.
Create my free account$0 a month · No card needed · Not a trial
Trading is risky. You can lose money. It is not right for everyone.