Size by risk
Say how much you are willing to lose, as a percent or as money. The lot size is worked out for you and rounded down.
Read more about size by riskBuild · Strategies
A strategy is a set of rules that buy, sell and look after trades. In AlgoBarsX a whole strategy fits on one screen, and anyone on your team can read it.
This one buys when a fast average crosses above a slow one. It risks 1% of the account. It sets a stop and a target. It closes on the opposite cross.
strategy "EMA Cross"market: EURUSDbars: 15minput fast = 20input slow = 50when crosses_above(ema(close, fast), ema(close, slow)):buy risk: 1%, stop: 25 pips, target: 2Rwhen crosses_below(ema(close, fast), ema(close, slow)):close_allWhen the EMA of the close over fast bars crosses above the EMA of the close over slow bars, it buys at market, risking 1% of the balance, with a stop 25 pips from the entry and with a target 2R from the entry.
When the EMA of the close over fast bars crosses below the EMA of the close over slow bars, it closes all trades.
All of it is part of the language. Nothing to install.
Say how much you are willing to lose, as a percent or as money. The lot size is worked out for you and rounded down.
Read more about size by riskMove the stop to breakeven. Close part at a level. Trail the rest. Exit after a number of bars.
Read more about look after the tradeList what a setup needs. Ask for all of them, or at least three of five. The report shows which ones earned their place.
Read more about name your confirmationsSweep, reclaim, retest. A sequence waits for each step in order and resets if the idea breaks.
Read more about setups in stepsEvery 4th time. At most 2 a day. A 30-minute cooldown. Only in the London session.
Read more about say when a rule may fireCap open trades, daily loss and drawdown at the top of the script. When the daily limit is hit, trading stops for the day.
Read more about set hard limitsManagement lines sit under the order they belong to. The plan for the trade is in one place.
when liquidity_grab.completed from 08:00 to 11:00 Europe/London:buy risk: 1%, stop: liquidity_grab.sweep.low - 3 points, target: 2R + 5 pips, tag: "breakout":breakeven at: 1R, offset: 2 pipspartial 30% at: 1.5Rpartial 30% at: 2.5Rtrail by: atr(14), after: 2Rexit after: 48 barsexit when: crosses_below(close, ema(close, 20))Type the rules. Or write your idea in plain English and press Convert to AlgoBarsX.
Pick the market, the bar size and how far back. Read the report. Watch the test play back trade by trade.
Start it on a demo or a live account. You pick the market and the trade size when you start it.
32 of the 61 examples are complete strategies.
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. Tests use past prices and leave out spread, fees, swaps and slippage. Past results do not tell you what will happen next.
Yes. List them under markets: in the header. You can also start the same script on a different market when you deploy it.
No. AlgoBars is software, not a broker. It links to accounts at supported brokers. It never holds money and it does not give advice.
Start with one rule. Read it back. Test it. It is free.
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.