I have develop and EA which trades breakout and retest of price level.
Resume how the EA works:
Requirements:
- The EA know by user input which price level to trade
Conditions to trade (logic on 15 min candle):
- 1. Breakout: valid if price breaks the price level and closes 3 candles above price level.
- 2. Retest: valid if price comes back, touches price level but closes above.
- 3. Buy Candle Pattern: if breakout and retest valid, the EA waits for a buy candle pattern to finaly set the trade.
MY PROBLEM:
All my conditions are bases on candle information,see code:
This conditions expect a very clean breakout and retest pattern. But reality is that there are a lot of market noise.
After testing this EA several month I notice that having conditions base on candles are a suboptimal approach, because there will allways be a market situation where with is not regonise by the logic I have.
I need a technique/indicador/approach with wich I can determinate my breakout and retest pattern with market noises.
Check Resistance:
Check Retest
Check Candle Pattern
daily HL EA
fibonacci V1
hiloBars EA
horizontal break V1.1
Il Outbreak EA
level_trading 123 EA
LondonBreakout EA
WHERE they are already dealing with BO from levels, or parallel channel, or Asian/London open or close price Box, from Pivot etc... all are with source code and they also dealing already with the pending order sending matter, like limit, SL, TP; type of Broker digits, ECN STP etc
Now if you could implement your method and technically improve those EA with your way of "break and retest'" technique, to improve the odd that the breakout we intend to trade we dont have got a fake breakout, that would it be great code
Hope you will have soon success, not being a programmer I have searched and waited for the break and retest for a long time ...
there is one more tips, there is a scanner for fibo pivot level where the check near, bounced off the level already implemented, with source code available, if you need to clarify some coding tricks

- www.mql5.com
I have develop and EA which trades breakout and retest of price level.
Resume how the EA works:
Requirements:
- The EA know by user input which price level to trade
Conditions to trade (logic on 15 min candle):
- 1. Breakout: valid if price breaks the price level and closes 3 candles above price level.
- 2. Retest: valid if price comes back, touches price level but closes above.
- 3. Buy Candle Pattern: if breakout and retest valid, the EA waits for a buy candle pattern to finaly set the trade.
MY PROBLEM:
All my conditions are bases on candle information,see code:
This conditions expect a very clean breakout and retest pattern. But reality is that there are a lot of market noise.
After testing this EA several month I notice that having conditions base on candles are a suboptimal approach, because there will allways be a market situation where with is not regonise by the logic I have.
I need a technique/indicador/approach with wich I can determinate my breakout and retest pattern with market noises.
Check Resistance:
Check Retest
Check Candle Pattern
Nice code! I am using Python for my statistical analysis but your code for the retest and bounce is helpful.
One question though, why take up memory with ohlc(3) in retest check? It is not used in the code you show...
Until you can state your requirements in concrete terms, it can not be coded.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have develop and EA which trades breakout and retest of price level.
Resume how the EA works:
Requirements:
- The EA know by user input which price level to trade
Conditions to trade (logic on 15 min candle):
- 1. Breakout: valid if price breaks the price level and closes 3 candles above price level.
- 2. Retest: valid if price comes back, touches price level but closes above.
- 3. Buy Candle Pattern: if breakout and retest valid, the EA waits for a buy candle pattern to finaly set the trade.
MY PROBLEM:
All my conditions are bases on candle information,see code:
This conditions expect a very clean breakout and retest pattern. But reality is that there are a lot of market noise.
After testing this EA several month I notice that having conditions base on candles are a suboptimal approach, because there will allways be a market situation where with is not regonise by the logic I have.
I need a technique/indicador/approach with wich I can determinate my breakout and retest pattern with market noises.
Check Resistance:
Check Retest
Check Candle Pattern