Anil Varma
Anil Varma
Anil Varma
Added topic Help please, why 2 bars shift when send bar[index] to indicator class !!!
Dear Fellow I am having challenge to figure out why there is 2 bar shift when I send bar[index] to Indicator class. Even after two days for debugging I have failed to find the reason for it. The code and screen shot is attached for ready reference
Anil Varma
Added topic How to find 'Calling Method' to an indicator class !!!
Dear Fellows Greetings. I have created an indicator class and following methods are defined to get value on single index bar
Anil Varma
Added topic Error while using IndicatorDataBuffer passed into a ClassMethod()
Dear Fellows I have created a custom Indicator iVSA, which uses CScanVSA.method to get DataBuffer values. I need to lookback indicator buffers e.g. PreliminarySupply buffer to confirm BuyingClimax in  CScanVSA. To achieve this I am using
Anil Varma
Added topic implicit enum conversion in Ternary Operator!!!
Dear Members I am getting warning message "implicit enum conversion" on the following code  sigDIRatio = (prevRatioDI < currRatioDI) ? (CENUM_TREND)LONG : (prevRatioDI > currRatioDI) ? (CENUM_TREND)SHORT : WRONG_VALUE ; Type casting did
Anil Varma
Added topic How to find error, when GetErrorCode returns 0!!!
Hi I have created an indicator class and when run it on a testing EA, following methods returns correct values: double CiPivots::GetIndexPivots( int pBuffer, int pIndex) {
Anil Varma
Added topic Custom iTSA class returns different values than indicator. Please help
Hi Folks I usually create Class to use indication values in my Expert. For all my indicators I follow a standard practice to get data from indicator. Recently I have created CiTSV class with same standard practice. However with this class, I am
Anil Varma
Added topic Help needed on, simple but strange error!!!
Hi Fellow Members I have a strange error/issue, where my variable are correctly found but division results is shown as Zero!!! if (i <= 3 ) {          if (DoPrint) PrintFormat ( "%s [%s] idxLoop[%i] TSV EMA
Anil Varma
Added topic Help Please!!! Indicator not drawing AveragedVolulme line...
Greetings Fellows I have created a custom indicator to display tick volume as histogram and average volume as line. The indicator is drawing the histogram but not the line. Data Window though shows both values are calculated. Screenshot and Code
Anil Varma
Added topic Can indicator visualization properties be set programatically?
Hi Everyone I need an indicator to be displayed only on specified timeframe. Currently I have to do it manually by setting visualization property. Is there a way I can do it programmatically? Thanks in advance. Update: ........................ From
Anil Varma
Added topic if statement | Optimum Performance
Hi Friends I have a confusion which One of the following "if statements set" is better in terms of CPU performance?     If statement set [A]                  if
Anil Varma
Added topic How to get specific symbol's trading hours !!!
Dear Fellow Members How can I programmatically get the Symbols trading session timings for different assets I plan to trade in? So if I want to trade in AMZN Stock, I need to know the timings and programmatically restrict POSITION open and POSITION
Anil Varma
Added topic Multisymbol EA ... Challenge to set Assets Symbol and there class parameters. Is there better way than what I use?
Attached Code of My EA (relavant parts only) //+-----------------------------------------------------------------------------------------------------------------------------+ //| INPUT:  Input for variable used in the expert advisor //|
Anil Varma
Added topic Currency Conversion for Non-Forex Pairs e.g. CFD or Stock etc
Dear all, In reference to this tutorial at  https://www.youtube.com/watch?v=TAzM5Vd9nLs  where I need to convert Symbol values into my accounts currency. I am looking to resolve the following: How can I know (programmatically) the currency
Anil Varma
Added topic Strategy Tester not working!!!
Dear All I had recently needed to reinstall MQL5 Platform and facing a problem with Strategy Tester . It keeps on showing 'Waiting for Update' and no data is processed. I have downloaded M1 data for more than a year and testing only recent 3 months
Anil Varma
Added topic Jupyter Notebook connection to MT5
Hi Folks I have just installed Python to run along with MT5. I am able to connect MT5 from Python, however when I try to connect Jupyter Notebook I get the name error (screen shot attached). Any clues what is wrong? ... Is the following information
Anil Varma
Added topic Is there any function to calculate Standard Deviation in MQL5
Dear All Is there any function available in MQL5 to calculate ' standard deviation '? I could not find one in MathFunctions list. For some reason, I will not prefer to use iStd indicator. regards
Anil Varma
Added topic command check error !!!
Dear Members Any clue what is 'command check error'? Below is extract from log file.  CS       0        19 : 25 : 09.994     Trade   2023.02 . 10 17 : 15
Anil Varma
Added topic why bars not shown correctly in chart
Dear Members I have a situation where most recent bars are showing very high amplitude and hence distorting the bars display on the chart. Screenshot attached. This has happened from yesterday only when I tried to download M1 history data from
Anil Varma
Added topic 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
Anil Varma
Added topic Error Array out of range in an custom indicator
Dear Members  I have failed to identify the cause ' array out of range ' error in my custom indicator code as below: I understand that custom indicators handle the array sizing on it own, and hence did not attempted to set the size.   
123