MQL4 and MetaTrader 4 - page 911

[Deleted]
Hi, my first post here. :)  I'm a beginner trader as well as beginner coder. I've been trading by simply using naked charts with hand drawn lines mostly. Also mostly binary options so far but starting with spot as well.  I've had success so far using this price action strategy but staring at...
[Deleted]
Hello, can anybody clarify me the meaning of fitnes parameter in [EA's name].ini file in tester directory? The file looks like this: <common> positions=2 deposit=[some value] currency=EUR fitnes=0 genetic=0 </common> Best regards
  MACD, again  (10)
Hi again, OK, still having problems on something that should be a piece of cake. please see attached screenshot for a start. All I'm trying to do is code a simple EA to go long on macd cross over and go short when it crosses over the other way. But I seem to be having some really silly trades
for(i=0; i<limit; i++)     {      UpTicks[i]=(Volume[i]+(Close[i]-Open[i])/Point)/2;      DownTicks[i]=Volume[i]-UpTicks[i];      if(UpTicks[0]>=100 && DownTicks[0]<=50)      Alert("BUY (", Symbol(), ", ", Period(), ") !!!");      } above is part of an alert from TickSeperateVolume indicator;...
hi all please , i want help in this problem ....... my EA open many sell orders and buy orders in short period and each order has it's own stop and own take profit  the problem ,,,,,{ how i select specific order from all previous opened orders and  close or modify it but beware all orders have the...
Hi 2 all, and thanks for taking your time! The indicator loose the color after changing time frame and go back  - I have to recompile, than it's all right again...where is my fault? E.g.: Start D1: ok; switching to H4: ok; going back to D1: all red; going to H4: all red... Thanks in advance... Lupo...
Hello. I have a strength meter indicator. It has all the major currencies. I wanted to add Polish currency PLN so I went into the code and started changing things to accommodate for the extra currency, seemed like an easy change. However, I cannot get it working properly...In MetaEditor I get an...
i have more than 5 open trades in 1 bar and i want the ea to stop opening order after takeprofit was hit. bool NewBar()  {  /* Update with a new bar and reset BarTraded if it's new */   static datetime lastbar;   datetime curbar = Time[0];   if(lastbar != curbar)    {     BarTraded = 0;...
Problem:  Many if not most back-tested EAs show significantly different results in forward live real account trading. Even if the trading logic is accurate different sets of historical data or different calculation times for example start times of back-tested vs. current data will create different...
[Deleted]
Hi guys, I find any routine code for: I have open some charts on MT. I need routine which return identific active charts(window) of all them.  I need know which symbol is on active chart.  Thank you very mutch. 
Good afternoon. I guess a lot of people are already going on holiday etc. But I hope some experienced TRADERS will be able to comment critically on the testing results of my Expert Advisor for 2007-2013. I'm sceptical about it myself, expecting experienced people to advise - what's the catch of the
mt4 works fine with WINE on linux platform..only problem i face is intellisense for metaeditor doesn't work .. someone says on forum that this is due to non-presence of microsoft fonts...   i have installed ms-fonts also but still intellisense is not working.. intellisense means showing of hints as...
  adx calculation  (10)
Is it possible to combine the iadx with the atr in order to smooth out the signal lines?
does anyone know of a script that can add buy/sell arrows aswel as modify markers to the charts of orders that are opened manually, this would help identify my staring points in trades with the broker i am using.
我在论坛的英文版上看到了下面的编程方法(部分): int MessageNumber = RegisterWindowMessageA("MetaTrader4_Internal_Message"); PostMessageA(hWnd, MessageNumber, 13, IndicatorName); int MessageNumber = RegisterWindowMessageA("MetaTrader4_Internal_Message"); PostMessageA(hWnd, MessageNumber, 16, ScriptName); int...
On MT4, Can i have Screener/Scanner & Sound Alert based on Certain Criteria Like Cross(Over/Below) of 50EMA for all currency pairs,(It would be more efficient if Change of EMA value will be allowed--I mean if option of change of EMA value like 100/200/300 would be helpful to taste different...
I am testing initially with open prices only as my EA only uses open of bars and indicators. Now when I test results from open prices only testing on every tick I get the exact same entries and results which is great. The EA does not rely on scalping and uses large SL/TP so it makes sense open...
For example, find all the files (EA) which used the function IsOptimization()
  wave back EA  (1)
Hey all, here the idea for my strategy: Buy: Open every hour 1 position as long equity is equal or less than account balance. Profit of all positions (with same magic number) will be collect. Sell: Same rules! I attached my 2 EA and need help to merge them to one EA. The challenge is to identify the...
Where can I get daily historical data for mt4 to before at least 1990?
[Deleted]
Hello there, I created a code to lock in profit after a XX number of positive pips has been reached. The problem is that i created this code to use on EA in my live account, where i could only afford 2x the minimum lot and the code only runs if the order's lot is 2x the min_lot. When i used this EA...
[Deleted]
We have WindowExpertName() to get the name of the file in which the function called. I wonder if there is a function or a possible way to get the time (created/last modified) of the file Thank for any help
[Deleted]
When I copy & paste an indicator into the broker's program I make sure the platform is closed.  Yet when I open the platform the indicator is missing.  Some say each Custom Indicator section will only accommodate so many indicators, so I deleted a few indicators in that section before adding new...
hello guys, can sameone teach me how to use alert of custom indicator as reference in opening trade?  example i want to set alert on custom indicator for opening trade, but i dont know how to use this alert on ea.
Hi :   I want to apply the rule that if an order is opened, then in the following, say 30 bars, no same direction order can be opened.   I tried to implement this using the Time difference between the two orders, but obviously when it comes to weekend, this will fail.   Anyone get any idea how to...
Hi:   I have the following code which is not working:   file = FileOpen("Result.csv", FILE_CSV|FILE_WRITE, ";");         if ( file > 0){            FileSeek(file, 0, SEEK_END);             FileWrite(file, TimeToStr(Time[g_Shift], TIME_DATE|TIME_MINUTES), "TREND=", g_Trend, "Open Short",...
need to convert a wonderfull Indicator to Expert advisor ...... Any Help And promise it will be penifit.
Hi. I'de control numbers of order to 4 trades for each pair symbol using an EA. Can you help me ?
I am new to MetaTrader and I am having troubles with my EA. I activated an EA in my demo account and start() is not getting called. I was developing the EA a couple weeks ago and it was working well both on the demo and strategy tester. I have been away for a couple weeks, and upon my return; after...
So I am testing my EA with the EXACT same parameters on the d1 timeframe and comparing 90% modelling quality using data from metquotes (history center) with 99% modelling quality using tick data from Dukascopy. I would have thought that the tick difference (not accurate < 1min on 90%) would not make...