Lesson 3 of 24, 3 min video

When the program enters and when it does not

The program does not catch every price jump. Three jumps show the rule by which it decides whether to enter a trade, and what affects that with a real broker.

  1. Video
  2. Trainer
  3. Check

Three jumps

In the first lesson the program caught a price jump. But it does not catch every one. This lesson has three jumps: the program buys on the first, skips the second and sells on the third. Along the way the rule behind its decision becomes clear.

The gap: how far the feed has moved from the broker

The lesson is recorded on training prices: the jumps are set in advance to show the rule. The simplest strategy of the program, Impulse, is at work.

The program constantly compares the fast feed price and the broker's price. It calls the difference between them the gap and counts it in points. While the prices move together, the gap is near zero.

The entry boundary: the threshold plus the spread

Not every gap is worth entering. For each trade you pay the broker the spread, and a small gap will not cover it. That is why the settings have a gap threshold, and the program adds the broker's current spread to it.

Gap threshold
10 points
Broker's spread
11 points
Entry boundary
21 points

On the lower chart the boundary is drawn as a dashed line, and the bars show the gap. While the bars are below the line, the program waits.

Three jumps: a buy, a skip, a sell

  1. 1
    A jump of 36 points up: a buy

    The bar is above the line, and the program buys at the broker's price, which has not changed yet. A third of a second later the broker catches up with the feed, and the trade closes with a profit.

  2. 2
    A jump of 14 points up: a skip

    It did not reach the line, and there is no trade. That is by design: once the spread is subtracted, almost nothing is left of such a move.

  3. 3
    A jump of 40 points down: a sell

    Now the program sells, and everything repeats in mirror image.

What depends on the broker

On a real account the result depends on the broker. Three things are worth watching.

Price lag
This is where the gap comes from: the more the broker lags behind the feed, the more often trades happen.
The spread
The narrower it is, the lower the entry boundary and the more jumps reach it.
How precisely trades are filled
The price of a trade can differ slightly from the one at the moment of entry. This is called slippage.

What to remember

  • The program enters when the gap is greater than the threshold plus the spread.
  • It skips weak jumps.
  • The result depends on how far your broker lags behind.

Trainer: will the program enter

Change the jump, the threshold, the spread and the lead. The trainer uses the same rule as the program and shows whether there will be a trade.

OnlyFast-LD4Brokerlead 350 ms
entryexit +22 pt
Gap, pt21
Buy entry
+22 pt, +0.22 USD at a 0.01 lot on XAUUSD
+36 pt
Jumps from the lesson
10 pt
11 pt
Entry boundary10 + 11 = 21 pt
350 ms

The 36 pt gap is above the 21 pt boundary. The buy fills at the broker's old price. After 0.35 s the broker catches up with the feed, the profit is 25 pt: 36 minus the 11 pt spread. The trailing stop closes the trade when the price pulls back by 3 pt.

The model is simplified: the jump is instant, the price then pulls back by 3 pt, and there is no slippage. The trailing stop is set as in the lesson: it switches on at 10 pt of profit, offset 3 pt.

Check yourself

Questions on the lesson. You can change an answer.

  1. The gap threshold is 15, the broker's spread is 9. At what gap will the program enter a trade?

  2. A jump of 14 points, the entry boundary is 21 points. What will the program do?

  3. The broker widened the spread from 11 to 25 points, the gap threshold is the same: 10. What changes?

Try it on your own broker

The test drive is free. The program trades on live quotes and only on a test account, the time starts from the first run.

Open the test drive