MQL4 and MetaTrader 4 - page 640

To post a new topic, please log in or register
forexparvenu
as above, which part should take a look ?
hello guys! I have read this interesting article: https://www.mql5.com/en/code/10360 Automated process of backesting using a library. Is there something similar for optimization ? I need to repeat the process of optimizing an EA for different periods and collect all the results of optimization in a...
1 I create a VC6.0 Win32 Dynamic-Link Library project, new one file, the code: #define MT4_EXPFUNC __declspec(dllexport)int a=0; extern "C" MT4_EXPFUNC int __stdcall GetValue() { return a++; } build one lib: DLIB.dll Copy DLIB.dll in the folder:MetaTrader 4\experts\libraries 2 mql code: #import...
Are you still full of doubts that testing a strategy on historical data can be useful in real trading? In this article, we will compare achievements of the previous Championships' leading participants with their results shown in MetaTrader 5 Strategy Tester during the automatic tests. The...
Hi, I know there's a way to change the title of a chart window after an EA is attached. I've seen it done on some commercial EAs. I tried using SetWindowText with the HWND of the chart, but that doesn't seem to work. If I understand correctly MT just changes it right back. Does anybody know how to...
Can smbdy help me? Thanks in advance! God bless you! MT-4 can back test only EAs, but I,d like to back test every mechanical system I,m trying...or smbdy knows how can be used MT4 for that purpose. I don,t know programming in MQL languages, but I can try if smbdy encourages me that it,s not so...
HI DEAR, I AM FACING ALERT PROBLEM,IT IS GIVING CONTINUE ALERTS(NON STOP), I NEED IT ONLY ONE TIME ALERT WHEN ARROW APPEARS IN ALLTIME FRAME, PLZZ CORRECT MY CODE, HELP ME PLZZ...
Please can someone help me with an expert Advisor using this parameter zigzag ExtDepth 610, ExtDeviation 377, ExtBackstep 233
Hi every one I try to run this code but get error code 130 . <SNIP>
hi every friend,see me code if(OrderSend(Symbol(),OP_BUY,0.1,Ask,300,0,0,"3","123",0,Red)>0) { Alert("ok"); } i use up code buy a tick buy i use use down code read the ordermagicnomber,the maigic alway=0,why for(int i=0;i<OrdersTotal();i++) { if(OrderSelect(i...
hi friends, am trying to code ma oscillator cross above 0 ubove/below, there is appearing arrows but i need them at high of the candle(blue arrow) and low of the candle (red arrow), and also need alert functions in all time frames, plzz help me,to code thanks #property...
Hi there, I have been doing some nasty backtesting lately and I've found that I'm out of disk space! And it is huge! Where can I find and delete all those nasty backtesting files? The logs directory is only 355kb. Thanks in advance! :-)
Hello Example: If I want my EA to Find the second last fractal up, that was above Moving Average 100 And compare it to the last fractal up, thats above Moving Average 100 If the last fractal up is lower then the second last = SELL I think i got this right, But i need help putting in the Moving...
Hi all, I am a new user of MQL4 language, and I need help for function iMAOnArray. I found a program that uses this function and I would like to know what defines the option MODE_SMMA. Is it a simple average, an exponential average, a linear weighted average... ? Thanks.
Hello, have EA 'A' and EA 'B'. When attach EA 'A' to symbol USDJPY and EA 'B' to symbol EURUSD, both run well. Now go to MetaEditor and recompile EA 'B', then i see in the Experts Log ( in chronological order from top to down) : 'B' uninitialized .... 'B' initialized 'A' initialized <------...
  error MT4 (2)
Please i need some help, i cant open new demo accounts with any broker because all mt4 platforms shows a message METATRADER STOP WORKING and then the platform closes why? i cant find the solution for this issue
Hello I would like my EA to shut down when the EA exit a position Is that possible? Cheers!
  Excel(xls) to MQL4 (17   1 2)
Hi forum i was roaming in topics but i coudnt find the exact discus even i was see several similar topic my question is how to or is there a way to do assign a data in excel cells like "hellowrold" or digits "123124" in G5 cell to an int, bool or double doesnt matter. if you redirect me to...
I'm writing an indicator where the "angle" (pricechange overtime) of a moving average is a multiplier for a standard deviationline. I'm looking for help with the mathematical formula that willtake a moving average input ranging from 0.00000 (flat) to 0.00250 (steep) andoutput a value ranging from 2...
Hello, I have an EA that I am programming to utilize one of several different order close conditions. The conditions are: daily, weekly, and equity based (if equity gets too high or too low). These are all programmed and working successfully. I am also needing to add a monthly close feature that...
Hi, I have a problem in that i have all the m1 data from 2000 to the beginning of 2012. However after January there is a huge gap of 6 months and then some more data.... I have tried deleting all and redownloading on 3 different brokers and each time the same thing happens. I have also tried...
Ciao a tutti apro questo topic per vedere se è possibile stabilire una relazione tra una candela ed il volume di traffico che c'è stato.... Sappiamo che gli indicatori sui volumi sono dei tick-volume nel senso che non danno indicazioni sui volumi effettivamente scambiati ma che si incrementano...
What I want to implement is this: I have an array, let's say Int Arr[5] ={0,1,1,0,1} I also have five functions: Func0, Func1, Func2, Func3, Func4 I want to iterrate through the array and only call those functions that have the number corresponding to the index of the array where the value of the...
Hi, I need to convert array double to char, how can I do? DoubleToStr ? Thank you
hi guys, I am looking to establish a preset lot (0.05) but in the small pop up i get there is : lots 0.05 maximum risk 1.1 decrease factor 3.0 moving period 12.0 mouvingshift 6.0 at that stage I though that 0.05 will be my lot's size, and it,s not. My position is going until 25 log some times. i...
hi guys ...  i need this indicator be a historical one 
Hi there, I'll go straigth to the point. I have a partial closing function which closes a given percentage of all trades when a certain relationship between profits and initial risk is met. The thing is, it is closing many more short positions than long positions -Around 15% difference-. I wonder if...
Hi experts, I am creating an indicator. I would like to display the indicator only in some time frames such as 5m, 30m, 1h and so on. For example, if the indicator is selected in a daily chart, it displays nothing or alerts a user. I don't know how to do this, so I have coded as follows: bool...
forexparvenu
i never use trailing stop on trading since 5 years ago. so i wanna to know what's trailing stop ? and how to coding it in mql4 ?
I had an account on the metaquotes-demo server that I was using since July for investors to see trading performance in their evaluation of acct management services. As of Aug. 2nd, 2012 it is no longer connecting. When I downloaded MT4 again on Aug 3rd from the metaquotes site, it is now using an...