Forum

Horizontal lines(levels) indicator lagging MT5

I have noticed that this level indicator on chart causes bad price lagging when US market opens and trading activity steps in. How to reduce the number of lines so that lines are drawn only in the active screen? At the moment lot of lines will be drawn. #property indicator_chart_window #property

Range Breakout EA MT5 issues

I wrote that code by some youtube programming channel. No errors, compiles fine but in tester DrawingObjects doesn't look right(specially range) and finally it stops taking trades(probably because of that buggy range) //+------------------------------------------------------------------+ //|

Fibo based on yesterday high-low

Hi guys, I'm trying to understand one of Mladen fibo indicator calculations and plots. So todays fibo lines are calculated by yesterday range in this simple way: if ( Bars ( _Symbol , _Period )<rates_total) return (- 1 ); MqlRates dailyRates[]; int dailyRatesCopied= CopyRates ( _Symbol

MqlRates close price for many symbols

I'm using multi symbol ea with classes and need to get close of last bar but through the usual method with MqlRates I get last close only for the 1st pair in list. bool CTradingEngine31::SearchTradingSignals( void ) { MqlRates rates[]; ArraySetAsSeries (rates, true ); if (

MQL5: Multi Symbol EA doubled trades

I would like to get that EA to trade only one deal per signal but while testing this EA I noticed that sometimes it opens two trades at the same time or it opens a trade after signal and then another trade comes one bar later. //+------------------------------------------------------------------+

Indicator disappearing from the chart MT5

I'm trying to use SetSymbol indicator on MT5. After attaching indicator everything seems to work but then suddenly indicator disappears from the chart. Indicator window still shows indicator and also there is no error showing. SetSymbol.cpp #define PROPERTY_COPYRIGHT "Copyright © by iDiamond @

Many custom indicators in one indicator or in EA ?

I have many indicators which I use in my EA at the moment. Could be very stupid question but what you guys are suggesting? Is there any big difference if I call all indictors in EA or I call all indicators in one indicator and then using this one master indicator for EA

Breakeven mystery

I found nice little EA only for modifying SL and TP here https://www.mql5.com/en/code/23037 EA moves positions to Breakeven+profit. Now when I test it I see that if there is 1 BUY position open, TP is correctly where it should be(let say 30 pips). But as soon as there is coming more BUY positions

EA in tester does not trade most of YEN pairs

I tested my EA in tester and suddenly discovered mysterious problem. EA does not trade YEN pairs except USDJPY. But has no problem with live trading, all yen pairs works there. Digits as always: int digits_adjust= 1 ; if (m_symbol. Digits ()== 3 || m_symbol. Digits ()== 5 ) digits_adjust= 10

Can't find right buffer for iCustom MT5

I'm trying to call iCustom from attached volume indicator but no success. Indicator shows Rising and Climax volume. I need to get the buffer which shows red or green bar, it means Bullish and Bearish Climax. Buffers from the volume indicator double Phantom[], Normal[], PVA[], PVA_Colors[];