Forum

How call a system application in onTick and wait until it finishes sth like. ShellExecuteW or ShellExecuteA?

I need an to call a python script in my expert adviser when OnTick occurs which I did via ShellExecuteW. However, I need to EA to wait until ShellExecuteW finishes its job. Is that doable ? I have read this too... https://www.mql5.com/en/forum/285244 Apparently the right way is : if

Is there any library for handling creating and using complex data structures (eg. list queue stack) in mql?

hi, I come from computer science background and I see it can get tricky to develop complex algorithms in pure MQL. Is there any library for handling creating and using complex data structures (eg. list queue stack) in mql

mt4 terminal cannot run strategy tester from command... :-(

Dear All, I am trying to run strategy tester for mt4 from command line to see how parameter changes would impact back-test results. I have found this link also I found a help topic "Configuration at start up"... so I followed the help topic at it was the same as the one in the aforementioned

IsTradeAllowed : in what cases IsTradeAllowed can be helpful? what is the rational behind it?

I have been trying to find out what is the use of IsTradeAllowed function? in the definition it say " Checks if the Expert Advisor is allowed to trade and trading context is not busy. " does that mean all trading Expert Advisers share the same context for all terminals/currency pairs? Thank you

how is the moving average calculated by iATR ?

hello all, I am supposed to re-implement iATR in Python cuz we want to show its values on web. I have been trying to do this as described by the wiki page https://en.wikipedia.org/wiki/Average_true_range But, unfortunately the numbers don't match up. Can somebody please confirm if how the ATR is

isoptimization doesn't seem to work for me....!!!

Hi All, I am new MQL4/5 .... I am just running tests at the moment to familiarize myself with function etc... https://docs.mql4.com/check/isoptimization I tried the below EA code in the optimization mode given the below settings in strategy tester as attached. although, I have the below code in EA

how to set the indicator's input parameter from an Expert Adviser

I calling an indicator in my EA using iCustom, and the indicator has an input parameter . How can back-test the EA using different input values of the indicator's input parameter... Of course I can set a default value and compile the indicator with different default input values. But, I don't want

How to prevent / avoid 138 error reqoute

Dear All, It has been 3-4 weeks since I started coding in mq4. I have developed an EA which creates buy/sell orders. I used slippage = 3, but, since I used to get error 138 reqoute most of the time I came up with below idea for both ordersend and orderclose as attached: I would like an expert to