Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Previous article Candlestick breakdown 3 - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 Resources

author EAcpu | 3 reads | 0 comments |

Previous Candle Breakdown 3 - expert for MetaTrader 5

Development of Version 2: Last Candle Breakout 2

Parameters added

Assume that our total position is 2.5 lots, the maximum volume position is 3.3 lots, and we receive a trading signal. On initial inspection, the opening volume was 1.5. 2.5 + 1.5 > 3.3, which means no new positions are opened.

The EA waits for the breakdown of any time frame (from 1 minute to 1 month). Checks bar #1 for a breakdown of the previous candle within the specified time frame. Two filters can also be enabled - Moving Average.

In the EA, trailing is implemented (when the stop loss level is modified for the first time) to move the stop loss to breakeven.

Position size can be permanent ( a lot above zero and risk equal to zero) and dynamically calculated risk percentage for each trade ( a lot above zero and risk equal to zero).

notes! The following situations are not allowed:

All positions will be closed once the target profit is achieved and all positions are closed. The EA ensures that no more than one previous candlestick position is opened in each direction within the specified time frame.

Previous Candle Breakdown 3 - expert for MetaTrader 5

Figure 1. Current time range: M15, subdivision set to H4


Attachment download

📎 previous_candle_breakdown_3.mq5 (55.04 KB)

Source: MQL5 #22145

Verification code Refresh