Varun Maithani
Varun Maithani
  • Information
2 years
experience
0
products
0
demo versions
0
jobs
0
signals
0
subscribers
Varun Maithani
Added topic EA Backtest Optimisation question
Hi, I just finished a backtesting with optimization using genetic algo . After optimizations finished I saw below log in journal tab. I am a bit confused why a pass could vary so much. I have not manually added conditions to terminate the tester pass
Varun Maithani
Added topic Profitable EAs developer/testers, what optimal threshold values do you believe an EA should have for different metrics in strategy tester optimizer result ?
Hi all This may be more experience based opinion question but knowledge expert's opinion welcome too. Based on your experience(and knowledge), if you have created or backtested a profitable EA (an EA that you have noticed actually was profitable in
Varun Maithani
Added topic MQL5 Question: unable to initialise a 2 dimensional array using existing array variables
Hi Below is the code (for Script) i am trying to compile but i get error. I am not sure why i cant get this syntax to work. enum SBP   {    SS = 0 ,    MM = 1 ,       WW = 2   }; void
Varun Maithani
Added topic MQL5 - Unclear about struct variable assignment and change within a function
Hi, in below code,  struct LL   {    double             price; } LL x; int OnInit ()   {         x.price = 1 ;
Varun Maithani
Added topic MQL5 : Can we do late initialisation of array?
i want to do     ENUM_TIMEFRAMES xTF; // some logic to set xTF    bool listOfIsNewCandle[ 6 ] ;      if (someBoolCondition)          {
Varun Maithani
Added topic Backtesting - early quiting of agents' run.
While performing optimization of input parameters via backtesting feature in metatrader 5, I wish to use some condition to stop the agents run of a particular combination of input parameter early. On reaching a certain condition while the agent is
Varun Maithani
Added topic MQL5 : Header (mqh) file unable to use parent mql file's struct variable
Hi, I have a EA which has a struct defined in it (because there are variables of its type in the EA mql file) and the struct type is being used to declare a variable in the header file too. // within mql EA file struct LLevel   {
Varun Maithani
Added topic Re: fetching trade info when position opens/closes, editing csv to update info, matching closed position with its corresponding limit order
Hi all, I want to do the following: -Step 1- catch information about a trade when a  position (whether its direct market order or when price hits limit order) opens eg ticket, trade spread, slippage, price requested , price received attribute X
Varun Maithani
Added topic Where to find source code for mobile (Android) MT5
I want to modify code to add my custom features on chart for risk management cuz no one has done it in last decade (surprised pikachu face).  The UI of mobile mT5 to create new orders is highly non intuitive/ non user friendly as you may have
Varun Maithani
Added topic Best practices for coding MQ5 Indicators
Hi, I just wanted to know if any experienced developer has made post / topic about best practices and patterns about   creating I ndicators. Since information about EA/MQL5/Indicator is spread out across forum posts/articles/MQL5 documentation
Varun Maithani
Added topic ISsue with Creating an indicator buffer that stores values for different timeframe (than the chart) and should be accessed by EA
Hi,  I was creating an indicator that  has 2 buffers.  double x_1hr[] , x_30min[]; This indicator has to be used on 4 hr chart (for convenience purpose). But it needs to also populate values in the x_1hr and x_30min buffer array after
Varun Maithani
Added topic MT5 Indicator problem : How to only call Telgram message sending function on detecting latest condition only (Also not while getting tested in strategy tester)?
Hi everyone, I have built an indicator in MT5 (MQL5)  which detects a condition and draws it out on chart for me to take a trade manually. I am planning to write a telegram message sending function too, which is  supposed to send a message
Varun Maithani
Added topic Issues with importing a indicator in an EA
Hi, I am trying to create a handle for a custom indicator in my EA. However the custom indicator has in its code used several #include statements to import many Enums which it uses in its input. When i initialize the inputs in the EA they require the
Varun Maithani
Added topic Issues in indicator coding - 7th indicator not plotting, SetIndexBuffer not working
I have created an indicator which plots several indicators within itself. In total there are 7 indicators inside the code defined by : #property indicator_typeN   xxxx #property indicator_labelN  "xxx" Each of them has its own
Varun Maithani
Added topic Calculating lot size for particular risk percentage based on deposit currency
Hey all! I am trying to create a function that returns the appropriate lot size according to a required risk % of the total balance (in deposit currency) available.   So far I managed to code these 2  functions by looking at different
Varun Maithani
Added topic mQL5 Is there a way to have hashmap with key as int and value as an array?
Hi, I want to create a HashMap which has following declaration but it gives error. " CHashMap<int, float[]>  x; Error : '[' - comma expected " Is there a way to have hashmap with key as int and value as an array? So that I can store
Varun Maithani
Registered at MQL5.community