MQL4 and MetaTrader 4 - page 922

[Deleted]
Thank you. Couldn't find a way to delete the post.
I am new to coding so please bear with me if I ask a lot of questions. Okay so the idea behind the EA is that Long Entry Short Entry PSAR < Price PSAR > Price MACD > 0 MACD < 0 The expert will close out a trade when it has reached a user defined amount of pips OR the PSAR reverses to the opposite
Everywhere I read, they write that zero sample correlation means there is no linear (usually forget the word linear too) relationship in that sample. Dickens: Example of two graphs with zero MO, variance one and zero correlation. That is, the correlation in this case is the sum of the products of
HI,  bulid 482 metaeditor  copy function will be missing part of chinese   character    e.g.  when ctrl + c on the below chinese  character in metaeditor   :  布林带时间周期 and paste in metaeditor , only left below: 布林带时 
  This is great ea  (7)
Hi,anyone here know how to reverse this ea strategy?When itsopen buy its become sell..and vice versa This ea I’ve been watching it trades and what can I see it’s a losingsystem..been tested it with demo acc few months ago and consistent losing, I’tried to copy the trade using mt4i trade copier...
[Deleted]
Hi all.. i'm a Newbie in this Forum :) now I Very interested in EA Development.. "How I Can Open And close Just One Position in 1 Candle?.." How I must Write the Code.. Pleas Help Me.. Thank BEfore :)
[Deleted]
I am trying to find how the current price of a pair ranks compared to prices over the past 24 trading hours.   For example, if it is at the current high of the previous 24 hour periods then it should return "1" and if it is at the current low of the previous 24 hour periods then it should return "0"...
[Deleted]
Hi there, I am a begginer in this area of programming. I am just interested in indicators, and I have read the book but it only explain EAs and I want to build indicators . When I have tried to do it in the metaeditor there where many new things that where not in the basic book. I would thanks to
Dear friends, I am doing a little research to find out how many retail MT4 traders have switched to MT5 already in live trading. Have you? I would appreciate your insights. Cheers.
I have a simple indicator that should tell me the average daily range (not atr) . Actually, I would love to make it an ATFR - Average TimeFrame Range - going back <extern> bars.  I would like it to graph the results as a line graph (like a MA only in a separate window). I can code a little but am...
Hello everyone, I need to make this lighter indicator  because I want the program to ea //+------------------------------------------------------------------+//|                                                Repulse_lisse.mq4...
I have multi EAs running though one DLL and a include file.  I am unclear on how to handle mutex code with ARC. I use  GlobalVariableSetOnCondition for the orders but have not used this type on command on ARC. I am confused about the scope of the array. I thought if I called ARC in a indicator and...
[Deleted]
How can I remove the two lowest and the two highest values from an array? The problem with the code below is that 0 gets removed twice instead of the real second lowest value. double x[ 15 ]; x[ 0 ]= 9 ; x[ 1 ]= 100 ; x[ 2 ]= 9 ; x[ 3 ]= 200 ; x[ 4 ]= 9 ; x[ 5 ]= 9 ; x[ 6 ]= 9 ; x[ 7 ]= 9 ; x[ 8 ]=
I only want my ea to read back 8 bars , here is my code but its not working , seems it reads all the bars ... int start_bar = Bars;//Print (start_bar);for (int bar = start_bar; bar >= 0; bar--) {//if (bar > 8) break;value = (iClose(NULL,0,bar));//Print (value);//Print("bar= ",bar);......
how is it possible ? my ea is working on back testing but it isn't trade in live. it's smile face and tools/options settings is ok ? pls help 
hello everybody. I try to learn mql programming with your site. İt is very useful . I made ea but need your help. with macd 24.400.20 and macd 12.26.13. ( only buy no sell at macd 24.400.20 >0 ) Buy rule:a) macd 24.400.20 shift2 <=0 ,macd 24.400.20 shift1 >0 b) macd 24.400.20 shift 0
[Deleted]
How can I get the average value of an array? int x[5]; x[0]=3; x[1]=7; x[2]=4; x[3]=7; x[4]=9; Alert("The average value of x is: ");  
Hi!   I try to do EA hedge. Hedge for one open order. And i don't know what's wrong with conditions.     double bid = MarketInfo(Symbol(), MODE_BID);      double ask = MarketInfo(Symbol(), MODE_ASK);      OrderSelect(1,SELECT_BY_POS...
Hi   I have noticed the 1 hour chart is way out of scale on the EURAUS.   Simple experiment. I read the bid on the 1 minute chart as1.27004 and the very quickly went one by one to the monthly chart.   All gave the same bid price except 1 hour which said1.24518.   I have repeated this several times...
hello all, Strategy Tester Module. If i  run a strategy without the optimization check box selected then i get a list of all trades matching my criteria (i see them all if i click on the 'results' tab), however, if run the same strategy with the optimization checked, i only get a comprehensive...
I meet a  weird mathematics problem. Does any expert help me resolve this problem ?      double BasicLot=0.1;   int MaxPosition=7;   double TotalLots = (BasicLot * MaxPosition);      if(TotalLots == 0.7)      Alert("TotalLots == 0.7");   else if(TotalLots > 0.7)      Alert("TotalLots > 0.7");...
HELP! I downloaded MT4 fro www.metatrader4.com, filled in the login form, agreed to the newsletters, clicked couple of times & then takes you to webpage which tells you your login, but says the password has been emailed to you  I have tried 2 different email addresses & tried the whole process 5...
[Deleted]
  Questions from Dummies.  (84   1 2 3 4 5 ... 8 9)
I suggest a new topic for questions from newbies to more experienced traders. For the latter, please have a little patience for us inexperienced traders (or me, if I'm the only dummy here=)) Thanks KimIV for the advice to create this thread
Hi  i ve got the following situation. I call iCustom for indicator A to call indicator B that return data almost instantly. I say almost cause it takes a few ms cause of some data validation indicitor B it does. Cause of these ms, the Buffer in indicator A is filled up with carbage.  The only way to...
[Deleted]
I am a newbie to MQL4 and developing a trade strategy.  I have written some code, and I want to use a script to generate the orders, and an EA to employ a Trailing stop.  I have been reading a lot of the posts in this forum, but I just want to make sure my code is going to perform as expected. On a...
[Deleted]
Hello, I have a problem related to opening new position. I would like to make my EA open one hedge position if I have only one open position at the exact moment. I tried to use that code: if (OrdersTotal() == 1){ for(int cnt=0;cnt<OrdersTotal();cnt++) { OrderSelect(cnt, SELECT_BY_POS,...
[Deleted]
How can I get the highest value of a pair over the past 321 minutes? I don't want the high value for 300 minutes or 360 minutes.  It has to be 321 minutes. If it is early Monday morning then it should count the most recent minutes from Monday as well as the remaining minutes from Friday.
I need to control the state of arrays in my Expert Advisor. For this, I want to create a dll in C++ that would receive two-dimensional arrays from MQL4 and output their state in a pop-up window. As far as I understand, I need to pass a two-dimensional array from MQL4 to the dll, but how to pass a
New article MQL5 Cookbook: How to Avoid Errors When Setting/Modifying Trade Levels is published at mql5.com: In continuation of our work on the Expert Advisor from the previous article of the series called "MQL5 Cookbook: Analyzing Position Properties in the MetaTrader 5 Strategy Tester", we will...
I see this ea on internet. But not run when i attack to chart. Some funtion not enought. When order hit stoploss, ea dont open continue hegde. Please Help me modify this ea with these condition: When one order hit stoploss, continue open two order Buy-Sell. And then continue open hegde when other...