Skip to main content

How to Trade a Session High/Low Breakout

Build a session high/low breakout strategy in Profectus.AI. Learn how to save the London session range, trade New York breakouts, prevent duplicate trades, and test the EA in MT5 Visual Mode.

Summary

This article shows how to build a simple session breakout strategy in Profectus.AI.

The idea:

  • Save the high and low of one trading session

  • Wait for the next session

  • Buy if price breaks above the saved high

  • Sell if price breaks below the saved low

Example used in this article:

Trade New York session breakouts using the London session high and low.

Also known as: session breakout, London breakout, high/low breakout, price action breakout, New York breakout strategy.

This is an educational example, not investment advice. Always export and test in MT5 Visual Mode before using the EA on demo or live.


What the strategy does

The EA first records two price levels:

London_High London_Low

Then, during the New York session, it checks whether price breaks those levels.

If price crosses above London_High, the EA can open a buy trade.

If price crosses below London_Low, the EA can open a sell trade.


Trading logic

1. Create two variables

Create these variables:

London_High = 0 London_Low = 0

These variables will store the session range.


2. Save the London high and low

Use Run at Time at the end of the London session.

Example:

Run at Time: 15:00

Then use Modify Variables:

London_High = Highest Candle High from Candle ID 1 to Candle ID 8 London_Low = Lowest Candle Low from Candle ID 1 to Candle ID 8

This example assumes you run the EA on the 1H timeframe and want to look back over the last 8 completed hourly candles.

If you use another timeframe, adjust the candle range.

Example:

  • 1H chart, 8 hours = Candle ID 1 to 8

  • 30M chart, 8 hours = Candle ID 1 to 16

  • 15M chart, 8 hours = Candle ID 1 to 32


3. Trade the breakout during New York

Use Run in Session for the New York session.

Example:

Run in Session: 15:00 to 21:00

Use your broker/server time, not your local time, unless they are the same.


Buy logic

During the New York session, check:

Price crosses above London_High

Then add Count Trades:

Buy trades = 0

Then execute:

Buy Now

Simple structure:

Run in Session → Trade Rule: Price crosses above London_High → Count Trades: Buy trades = 0 → Buy Now

Sell logic

For sells, use the opposite logic:

Price crosses below London_Low

Then add Count Trades:

Sell trades = 0

Then execute:

Sell Now

Simple structure:

Run in Session → Trade Rule: Price crosses below London_Low → Count Trades: Sell trades = 0 → Sell Now

Main blocks used

Run at Time

Used to save the London session high and low at a specific time.

Modify Variables

Stores the calculated session high and low into variables.

Run in Session

Only allows breakout logic to run during the selected trading session.

Trade Rule

Checks whether price crosses above or below the saved session level.

Count Trades

Prevents duplicate buy or sell trades.

Buy Now / Sell Now

Opens the market trade when the breakout condition is valid.


How to use it

  1. Create London_High and London_Low variables.

  2. Use Run at Time at the end of the London session.

  3. Store the highest high and lowest low of the session.

  4. Use Run in Session for the New York session.

  5. Add buy logic for a break above London_High.

  6. Add sell logic for a break below London_Low.

  7. Add Count Trades before Buy Now and Sell Now.

  8. Export the EA as EX5/MQ5.

  9. Test it in MT5 Visual Mode.

In Visual Mode, check that the saved high and low match the correct session before judging the trade logic.


Make it your own

You can adjust this strategy by changing:

  • Which session range you save, for example Tokyo, London, or New York

  • Which session you trade afterward

  • The number of candles used to calculate the high and low

  • The timeframe used in MT5

  • Whether you allow one buy, one sell, or only one total trade per day

  • Stop loss and take profit logic

  • Spread filter

  • Session filter

  • Draw on Chart blocks to visualize London_High and London_Low

For better debugging, draw both levels on the chart before testing entries.


Conclusion

A session breakout strategy uses a previous session’s high and low as breakout levels.

In this example, the EA saves the London session range, then trades breakouts during the New York session.

The core logic is simple:

Save session high/low → Wait for next session → Trade break above or below the range → Prevent duplicate trades

Always export and test in MT5 Visual Mode to confirm the levels, timing, and entries behave correctly.

Did this answer your question?