A strategy is a short list of rules. Each rule says when to open a trade and how to manage it. Everything is made of a few kinds of blocks, each with its own colour.
Rules
A rule has a side (buy or sell), an entry condition and its exits. Most strategies have one buy rule and one sell rule that mirror each other. You can add more rules, for example a second buy rule for a different setup.
Decisions are taken when a candle of the trading timeframe closes. A market order is then filled at the open of the next candle, at the price available at that moment, spread included.
Values
Conditions compare values. A value is one of:
- an indicator, for example RSI 14, EMA 200 or the upper Bollinger band;
- a price of the candle: open, high, low or close;
- a number you type, for example 30.
Every value can look back: previous candle means the candle before the one that just closed. Indicators and prices can also be read on a higher timeframe.
Comparisons
| Block | True when |
|---|---|
| is above / is below | the first value is above (below) the second at the close |
| crosses above / crosses below | it was below (above) on the previous candle and is above (below) now |
| is between | the value lies inside a range |
| is rising / is falling | the value went up (down) since the previous candle |
| for N candles | the condition held on each of the last N candles |
| within N candles | the condition held at least once in the last N candles |
Group conditions with all of (every condition must be true) or any of (one is enough), and turn a condition around with not.
Filters
Filters apply to every rule. Use them for what should block all trades:
- Session: only trade between two times of the day (server time).
- Days: only some days of the week.
- No news: no new trade a few minutes around high-impact economic news.
Orders and exits
- Order: market (next open), or stop and limit orders placed at a distance from the close, valid for a number of candles.
- Stop loss (required): in points, in multiples of the ATR, or in % of price.
- Take profit: in points, ATR, % or R, where 1 R is the distance to the stop. Split the position over several targets with a share for each.
- Break-even: move the stop to the entry once the trade has made a given number of R.
- Exit condition: close at a candle close when a condition becomes true.
- Maximum duration: close after a number of candles.
Risk
Each trade risks a fixed percentage of the starting balance (no compounding), so a 1% risk always means the same amount of money. The position size is computed from the distance to the stop, including the conversion of the quote currency to USD.
Try it on real dataBuild the strategy with blocks and test it on real ticks with spreads, commissions and swaps. The free plan needs no card.
Start free