Varun Maithani / Profile
- Information
2 years
experience
|
0
products
|
0
demo versions
|
0
jobs
|
0
signals
|
0
subscribers
|
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
: