Forum

Counter variable keep increasing in OnTick

Dear All , I'm facing my daily struggling with MQL4. I need to update a counter variable ONCE every time a condition is met. I have created a 2D array which list all lot sizes and I'm trying to select those sizes according to OrderProfit <> 0. For example : Size[count1][count2]; if(OrderProfit() >

PROBLEM with candlesticks plot

Hi Guys , Does anybody know what's wrong with this code ? //+------------------------------------------------------------------+ //| Chart_Candles.mq5 | //| Copyright 2020, MetaQuotes Software Corp. | //|

CRect - Reference guide totally wrong ????

Hi Guys, Does anybody know where are CRect methods described inside the reference ? Thank you very much indeed

Poblem with SymbolInfoInteger( )

Hey guys, I've been trying to get Symbol int properties through SymbolInfoInteger() but most of the ENUM_SYMBOL_INFO_INTEGER like SYMBOL_VOLUME ,SYMBOL_SESSION_BUY_ORDERS, SYMBOL_VOLUME always return 0. It's seams that the data isn't available at all. Is this issue related to the broker or am I

PROBLEM with Standard Library !!!

Hi there , I'm using Trade.mqh but I'm not able to refer and Initialize the declared class structures . Does anybody know how to define them in a separate file ? I tried to call the constructor but I just get compiling errors. Thank you very much indeed

Problem with copy buffer

Hi Guys , I'm having a problem with CopyBuffer(). As soon as I change the input parameter indicator buffer from 0 to 1 no data is shown on the chart. Does anybody know what's going on ? The reference guide is not helpful at all. Thank you very much indeed. int OnInit () { //--- indicator buffers

MQL5 Lackness of Learning Resources

Hi Guys , I'm amazed by the lackness of learning resources about MQL5. The reference guide is an insane unclear mess of 6k pages. I simply don't understand why in 10 years Metaquotes didn't make anything about. Does anybody know any starting point to understand the underlying logic in order to gain