Forum

Trying to pass a function by reference to another function . Any help

I have been trying to pass a function by reference to another function but i think i must be doing it in the wrong manner . any quick help is well appreciated void OnTick () { double a, b , c ; a = 0.0 ; b = 1 ; c = 0.0 ; // Trying to pass the function f1_func to Function1

Mathematical integrals (Integration) in MT5 . ( How to do it)

i tried using ALGLIB but can't figure out how to accomplish this . The modified alglib does not have autogkintegrate() function and according to documentation it might have been replaced by autoGKIteration() Since Alglib does not seem to be able to deal with Semi-Infinite intervals( a , +inf ) . So

Creating an Array in an EA to Store new calculated values that can be accessed or used later in other parts of EA when needed

How do i create an Array to store the "NewCalculatedValue" values and access those values when needed ? since the handle is an integer. The New value is Calculated value on every tick and only checked at the Open of every candle ( e.g M15 ) #include <Expert/Expert.mqh> #include

Add custom symbol synthetic formula programmatically

Formula USDX Index = 50.14348112*pow(ask(EURUSD),-0.576)*pow(USDJPY,0.136)*pow(ask(GBPUSD),-0.119)*pow(USDCAD,0.091)*pow(USDSEK,0.042)*pow(USDCHF,0.036) PROBLEM: is that the synthetic instrument formula is empty therefore no quotes are available. The custom symbol and the existing symbols quotes

"ARRAY OUT OF BOUND" error

//+------------------------------------------------------------------+ //| statistics.mqh | //| Copyright 2015, Herajika | //| morinoherajika@gmail.com |