Forum

error 138 in backtesting, please take a look into this code

Hello Guys, I am getting error 138 (requote) only in backtesting it looks to be fine in demo acount. any clue? here is my code: #include <stdlib.mqh> int ID = 1111 ; bool ShortIsOpen; bool LongIsOpen; int ticket; extern double Lots = 0.1 ; int slippage = 3 ; int order; int to; int init(){

problem with MathMod in 655 built

Hi guys I get this Print ( "MathMax(13,3)=" , MathMax ( 13 , 3 ), " MathMod(13,3)=" , MathMod ( 13 , 3 )); MathMax(13,3)=13.0 MathMod(13,3)=-1.#IND

help with this simple indicator code

//+------------------------------------------------------------------+ //| ROC.mq5 | //| Copyright 2009, MetaQuotes Software Corp. | //| https://www.mql5.com |

mql5 installation folders

hi, I installed mql5 at my second hard drive D:\MetaTrader5\ when I open the application the code and examples are at C:\Users\eric\AppData\Roaming\MetaQuotes\Terminal\03CEB463426HHHi55664019F2D25A05B7513B\MQL5\Experts I rather want them at D:\MetaTrader5\MQL5\Experts what is the terminal folder

saving {time, O,H,L,C}

Hi Guys, I want to save the data {time,Open,Low,Close}, each item individuialy in a binary file, I have this code: #include <stdlib.mqh> int handle_low, handle_high, handle_close, handle_open, handle_time; bool once; int init(){ handle_time= FileOpen ( "time_h1.bin" , FILE_BIN | FILE_WRITE |

cannot call function 'myfunction' from dll 'myfunction.dll' (error127)

Hello Guys, I am having problems using a dll function in mt4. I have this function in C that I tested in another C console application program. I exported like #include<windows.h> #define N 400 extern "C" __declspec(dllexport) double myfunctiondll( double rates[N]){ return rates[ 0 ]+ 0.5 *rates[

importing dll functions im mt4

Does any one have a code in visual C++ (2008) on how to appropiate compile a dll function and then how to import it in mt4. I have no problem making dll functions that I test in console applications; but I cannot import them into mt4? thnks in advance

MarketInfo("EURUSD",MODE_ASK) vs Ask

I have a live account with forex.com, the problem I have is that MarketInfo("EURUSD",MODE_ASK) gives 0.0 and Ask looks fine

Testing and EA that trades two pairs

Hi Guys, I coded an EA which makes trades with two pairs from the same code. In MT4 strategy tester I can only add one symbol. I need to have two set of historical data and my EA makes trades based in stuff from two symbols data rather than one. bests

Saving the tick-data

Hello Guys, I am trying to save the tick rates like (time stamp in secs, rate). In matlab, I have not problem in reading the doubles bytes(rate) but the longs bytes (time in sec) I get values that don't make sense. bests this is the script attached to the EUR/USD chart: #include <stdlib.mqh> int