Forum

Use of Matrix and Vectors!!! MQL structures are in infant stage?

@Lorentzos Roussos @Dominik Egert I was just trying to start with Matrix and Vectors, but reading this thread ( https://www.mql5.com/en/forum/448355 ) makes me think again. Tell me frankly man, is it worth to invest time in learning them? The documentation is very poor to explain the correct ways

help on Errors: leaked string/memory and objects left | Even though I have deleted the Class(s) in OnDeinit()

int OnInit () { cMASlow = new CiVWMA(gSymbol,gTimeFrame,MAPeriodSlow,VWMA_AppliedPrice,VWMA_MAMethod); cMAMid = new CiVWMA(gSymbol,gTimeFrame,MAPeriodMid,VWMA_AppliedPrice,VWMA_MAMethod); cMAFast = new

Compilation error while trying new approach to use CLASS(s) for a multi symbol Expert

Dear Fellow Members I am trying to use, possibly a new approach with classes to create a multi symbol expert advisor. The main logic of it is explained below: The ArunFX.mq5, the expert will have different parameters and create instances of ExpertBase class for each symbol; The ExpertBase.mqh class

anyone can help me to find which line of code is causing ZeroDivideError? MQL message is not with enough details.

Hi Can someone help me to know which piece of code is causing Zero Divide error, so I can fix it. 2024.03.09 13:30:06.707 login (build 4153) 2024.03.09 13:30:06.722 template file tester.tpl added. 7012 bytes loaded 2024.03.09 13:30:06.725 expert file added: Experts\Algo\EAToTest\TestEA_iVP-v6.ex5

Clarification on Real v/s Tick Volume

Deal Fellows If I used following code to dynamically select Real or Tick volume , is there any known issues? // Automatic selection of Volume Type. If real volume data available, we use it in calculation /* vVol = (appliedVolume == VOLUME_REAL) ? (double)aRate.real_volume

Help needed to return [true] once a new session is found. Current code returns multiple [true]

Wishing all a happy weekend. I have coded a IsNewBarSession, which is supposed to return true at first cross of timeStamp with cATS.checkTimeCross(vHour,vMinute,vCurrTime,vPrevTime). I could not apply a proper logic/condition to return [false] if timeStamp have been crossed. For Asian Session start

Help requested on a for..loop to get IsNewSession() value

Dear Fellows Please help me to rectify the below code to get correct IsNewSession value when a new session has started. I failed to resolve it. //+-----------------------------------------------------------------------------------------------------------------------------+ //| METHOD

is there any known issue with CheckLoadHistory() ?

Dear fellows I am having hard time with CheckLoadHistory() of article https://www.mql5.com/en/docs/series/timeseries_access and seeking guidance here if any known issues with it or I am doing something wrong? I am using following code to sync data and when I start the MQL Platform the indicator

how to use OnTick() on weekend and get return values for testing purpose

Hello Everyone This post is somehow related to my previous topic at https://www.mql5.com/en/forum/456103 where in following suggestion was there from @William Roeder Don't try to use any price (or indicator) or server related functions in OnInit (or on load or in OnTimer before you've

Help: array out of range, though in do...while loop I have tried to check error and exit

Dear Fellows I am getting frequent '2024.01.21 16:20:11.328 iSessionVP v1.99 (XAUUSD,M15) array out of range in 'SessionVPHisto.mqh' (258,23) error. //+---------------------------------------------------------------------------------------------------------------------------+ //| We