Anil Varma
Anil Varma
Anil Varma
Added topic Error: calculating opposite slope direction for Linear Regression | Using vectors with MQL functions
Hi Happy Weekend to everyone I am trying to calculate Slope of Linear Regression line with vectors. It is calculated but with a opposite direction signal i.e. positive slope is returned as negative slope. I checked the code and it seems
Anil Varma
Added topic Error: vctReturns is not a Class, Struct or Union
Please update me why I am getting these error : 'vctReturns' is not a class , struct or union    CMomentum.mqh   48        21 'Std' - undeclared identifier  
Anil Varma
Added topic ArgMax() returns bar index different than iHighest() | Guide me why?
//+------------------------------------------------------------------+ //| Script program start
Anil Varma
Added topic Strategy Tester: not enough available memory
I have 8 Core with 32GB RAM, still get this error. 2024.07.26 18:10:35.495 Core 1 not enough available memory, 11500 Mb used, 16322 Mb available, maximal available block is 16322 Mb How can I handle this? Thanks and regards
Anil Varma
Added topic Where can I get help, if it is not resolved on the Forum!!! | "Waiting for Update" error in strategy tester
Hello Friends Is there a way to contact 'Service Desk' for technical issues which remained unresolved on the forum? I have been struggling for almost three weeks now, since the last release of MQL on 21st June 2024 after which the problem started
Anil Varma
Added topic Invalid Pointer error in derived(child) class | Please help to debug
Dear All I am trying to create Multi Symbol EA using OOP. I have created a set of files and EATemplate to test it. I am getting invalid pointer error in the mfCStrategyA (child of mfCStrategyBase). To my understanding child class should be able to
Anil Varma
Added topic Indicator Class returns error 4807 in live chart but runs without any error in Strategy Tester!!!
Dear Fellow Members The documentation says: ERR_INDICATOR_WRONG_HANDLE 4807 Wrong indicator handle I have included following check, but still in live chart I get error 4807 though none of handles return no error
Anil Varma
Added topic help required to debug why indicator class is calculating only current chart values
Hi I have created a VWMA custom indicator , and using an OOP class to get VWMA_Tx (triple period values) for different timeframes. The class is however returning _Sybmol + _Period data only, irrespective of initializing class with different time
Anil Varma
Added topic Version 5.00 build 4410 21 Jun 2024 (is there a bug?) || Waiting for Update[2] | Strategy tester freezes in visual testing mode | it works if visual mode is switched off
Note for Moderator : I had a post earlier with same issue ( https://www.mql5.com/en/forum/469030 ), however I deleted it since matter was resolved when I just transferred the files to different location. I am not sure if the earlier post is still
Anil Varma
Added topic !!! undeleted objects left
Hello Everyone I have this warning message, and have checked all my classes where I have created CMarketInfo class and made sure that it is deleted on Exit the program. 2024.06.10 17:28:54.019 AlgoEA ( XAUUSD ,M15) 1 undeleted objects left 2024.06.10
Anil Varma
Added topic Help on Symbol Info Properties
Hi I am trying to get the Broker session times using symbol properties with below code. However I am getting compiler warnings. Please let me know how to correct it. Documentation and search did not help much
Anil Varma
Added topic Is there a bug or change in MQL5 update? Having problem with iHighest / iLowest functions
Another thread with the same issue in OOP class  https://www.mql5.com/en/forum/467428 Now today I am trying to run an indicator where Highest values are calculated and I am getting price much lower than the Highest price. double   
Anil Varma
Added topic Different results from ArrayMaximum/ArrayMinimum on same time set of data!!!
Hi Please help me out to debug problem/error in my code. I am getting different values for Highest and Lowest prices, though the data set is for the same period. The CurrOpen, PrevOpen and PrevClose are calculated correctly on each NewH01 bar, but
Anil Varma
Added topic Is there a way to use data structure as 'Indicator Buffer" ?
Wish all happy beginning of the week. I have following structure and want to use its information in the Indicator Buffer (s). To my understanding indicator buffers are allowed only of 'double' type. Is there any work around to what I want to achieve
Anil Varma
Added topic Error in Strategy Tester: freeing unaligned memory 0x0000005EA7DFED43
Please help me what could cause subjected error while running the strategy tester
Anil Varma
Added topic Help me on the error in "if...condition"
Hello Friends I am stuck with a following if condition!!! if (!(cCPRM15.rangeR2_R1(CPRD01,j,k) || cCPRM15.rangeR1_Top(CPRD01,j,k)))     return ( false ); I want to return(true), if either one condition is true, else return(false)
Anil Varma
Added topic 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);
Anil Varma
Added topic 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
Anil Varma
Added topic 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)
Anil Varma
Added topic 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]