A Code block to detect A “New Candle/Bar” using bars history (very effective way) – EA MetaTrader 5

A Code block to detect A "New Candle/Bar" using bars history (very effective way) - expert for MetaTrader 5
In previous code I used the time to detect a new bar. This time let’s use the bars count to detect a new bar. it’s way lighter and faster than using the time method. Declare the variables in integer data type to store the bar counts.  Assign the bars count for the “BarsTotal_OnInt” at the … Read more

Class CalcFrac – Number of bars before and after the current High / Low (calculated fractal) – library MetaTrader 5

Class CalcFrac - Number of bars before and after the current High / Low (calculated fractal) - library for MetaTrader 5
Calculates fractals and lets you specify the number of bars separately before and after the current High / Low (fractal).Functions: //+——————————————————————+ //| calculate lower fractals                                         | //+——————————————————————+ bool CalcFrac :: is_lower_fr(int number_of_bars) //+——————————————————————+ //| calculate upper fractals                                         | //+——————————————————————+ bool CalcFrac :: is_upper_fr(int number_of_bars) Sample: Indicator : FractalsPeriod Class CalcFrac – Number of bars before and after … Read more

‘Am I missing bars in my chart?’ two simple indicators to show you – indicator MetaTrader 4

'Am I missing bars in my chart?' two simple indicators to show you - indicator for MetaTrader 4
Description: I wrote these to help me find visually where my data was patchy. It’s wasn’t intended for publication, so WYSIWYG! I’m happy for people to use them for their own personal (or even company) use, but I would be annoyed if someone decided to sell them. The logic takes weekends (49 hours) into account, … Read more

VQ bars – indicator MetaTrader 5

VQbars
Real author: raff1410 Trend indicator that sets color dots on a price chart according to a trend direction. Smoothing algorithms can be selected out of ten possible versions: SMA – simple moving average; EMA – exponential moving average; SMMA – smoothed moving average; LWMA – linear weighted moving average; JJMA – JMA adaptive average; JurX … Read more

Breakout Bars Trend EA – EA MetaTrader 5

Sell false signal
For the Expert Advisor work you need the BreakoutBarsTrend_v2 custom indicator (download in the MQL5/Indicators folder, and the given Expert Advisor is in the MQL5/Experts folder). The meaning is in the following: the position opens in the trend reversal. If the “Number of false signals” parameter is equal to zero, the position opens on each … Read more