MQL4 and MetaTrader 4 - page 566

To post a new topic, please log in or register
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...
APeng
Questions about that were asked quiet oftenly and I read all answers and some article fitting to that topic - and I still cannot solve that simple problem :/ PLEASE HELP ME! I want to draw a trendline using ObjectCreate("Trendline",OBJ_TREND,0,Price1,Time1,Price2,Time2); I want Price1, Time1 to...
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?
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...
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
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...
Hi all. I need some help in writing the code for an EA I am testing to be able to determine lot size based on account balance an the number of pairs being traded. Thanks 
I have some few custom indicators that are not activated when you start MT4 but they need me to change the time frame to see them turn. it is possible to correct?
Hi, I know ZEROOOOOOOOOOO about coding. Im switching from my old platform to metatrader, and I wanted to use my old volume indicator (dpr file) in metatrader (mq4 file?) When I open the DPR file with meta-trader, this is the code I get; Can someone please convert it for me into a mq4 version?...
Hi, i have completed the EA as per customer requirement.but he need s/l & t/p should have following conditions. can anyone help on this. EA placing orders based on 5min chart Stop Loss & Take profit 30% of Daily ATR with 1:1 Risk Reward Ratio. attached image will breify more..
Anyone has experience please share to me. I test my EA with 99.9% model quality and i want to know : Is the real account will get a result same or nearly the same as 99.9% model quality result?
I have read through the threads in the forum which seem to be outdated and not have an ideal solution. Is there a way to auto detect the difference between broker time and GMT without the user needing to input a GMT offset? Currently I use code that will add or subtract the GMT offset from the...
Wecan look for a specific magic number by looping through MOD_TRADES. for( int Loop = 0; Loop <= OrdersTotal() - 1 ; Loop ++ ){  OrderSelect( Loop , SELECT_BY_POS , MODE_TRADES );  if( OrderMagicNumber() == Magic_Number )   {    // some interesting code  }}  Butwhat happens to that loop when you...
Hello everyone, I was looking for advice on orders accounting coding. I have coded 3 EA's that I am using, and have not tried to run them at the same time, but on separate MT4 terminals. I want to run them on the same terminal but am fearful my O.A. code is outdated. Any code anyone use to run...
Hi all, I need to repaint the bars on my charts and I came up with the following half solution: //+------------------------------------------------------------------+//| Custom indicator iteration...
Hi Guys, I need to shift the bars generated by the code below: int i;for(i=0; i<500; i++){   string name1 = "barBody" + i;   string name2 = "barClose" + i;   int type = OBJ_TREND;   int window = 0;   datetime time1 = Time[i];   double price1 = High[i];   datetime time2 = Time[i];   double price2=...