Download MetaTrader 5

MQL4 and MetaTrader 4 - page 529

To post a new topic, please log in or register
Am new to coding in FOREX and request help coding a simple price action EA. It's basicaly an idea that we would use on the daily charts prehapse even on the hourly charts aswell. The idea is that if the price moves up say 10-50 pips on a day candle stick that it will move another 50,60,70,80,90...
forexparvenu
https://docs.mql4.com/predefined/variables/High https://docs.mql4.com/series/iHighest https://www.mql4.com/search#!keyword=ihighest%20ilowest&page=2 https://forum.mql4.com/44742/page2 https://forum.mql4.com/47015/page2 let say, in min 15,
     subtracts the current high and low of  bar 24 ago.      when the value of CurrMinusPrev = >0.0013    i want to     OP_SELL .      Please someone show how make OP_SELL succesfully.        When i test it thank you. 
hi all, i am no expert in MT4   i use mt4 from roboforex it has oneclicktrading.ex4 which  loaded successfully and immediately removed when contacted the broker they said it will be ok in mt4 build 451 but it is not so far. i tried it in w7 32 and 64 but both are giving the same journal as above the...
I went through so much that I'm writing here. Do you know a function or script ... they hit last trade - or + account, and swallowed a lot like the last trade ... My idea is: Variant result = last trade account or reviewed or not, the result (0 /1) or is negative which was a lot in store used I want...
Hello All! Could you please help me out with my code? Below I'm presenting my code: extern double Lots               = 0.01;extern double MovingPeriod       = 27;extern double MovingShift        = 0;extern double trailing           = 5;int start(){   int cnt, ticket, total;   double ma;ma=iMA(NULL,0...
Hey guys!   Just found this website with paidprojects  . Im  gonna go for the prize on a few of them. Anyway login with your Facebook acc. viafollow  the link  below and see for  yourself. Looks  promising. Winner of project runs off with $1000,still all get paid for their contribution by their...
Hi all, My MQL4 Editor crashes and closes EVERY time I use the 'Copy' feature, regardless of if I use the menu with the mouse, the command in the 'Edit' menu or Control-C . It does copy it, but then bam, down it goes. Most definitely a pain )< 8( It does NOT do it in ANY other applications or...
Dear Friends:        Can you tell me how to send message from one trade system to another?   Thanks! 
Hi all, I've written a simple ea, but I can't get something done in this code. I want to trail the profit of the group inclusive the loss ones.  void TrailingStairs(int ticket,int trldistance)   {    int Spred=Ask - Bid;    if (OrderType()==OP_BUY)      {...
Sorry guys! Back again with another problem. I have the following code that has to select all my open Sell Orders and then close them under certain conditions. It works well if there is just one open order, but as soon as I have two (or more ?) open Sell Orders it only closes the last one. How can I...
  How can that be ?? (13   1 2)
I have declared the following global variable: bool        SellMiddle = false; But as soon as the program starts - long before it reaches any code that could change that status - and even if it reached that code it would still not change because the condition stays false to change the value - the...
After recently buying a new laptop on in November, I am experiencing some problems that were not there with Windows XP. When trying to copy & paste it will not paste the text in. The only remedy I have found for this is to remove the battery and reboot. Also after just saving a new or modified...
Hi all, I'm getting a weird error with OrderSend function on forex.com. No matter how I set the price parameter,  a new position will always be opened with current price.  For example with this function  OrderSend(Symbol(),0,0.2,NormalizeDouble(Ask+10,MarketInfo(Symbol(),MODE_DIGITS)),10,0,0); I...
Hi I have a custom indicator that I would like to automate. I have no programming skills and this has taken me a lot to get working. So now I would like it automated.. Please help! Here is the code... for the EA extern string Note1 = "MACTD Settings";extern int MATCDFast=2;extern int...
hello all, i dont understand how to plot arrows in terminal..I have seen many mq4 files for candle stick pattern recognition but could not understand why the objectcreate and objectset are different commands in mql language... objectcreate creates objects in memory only,then why they arre created if...
Hello MQL4 Community, I'm wondering, If you only had to use a single indicator like ATR, what rules would you setup for entries, assuming the ATR satisfied your volatility level. I know that the ATR indicator is indirectional, i'm wondering what others would do for entries. Thanks, c0d3      
// check if lines have crossed   if( Close[0]> Open[0]&& Close[1]> Open[1]  ) siCurrentDirection = 1; //up    if( Close[0]< Open[0]&& Close[1]< Open[1] ) siCurrentDirection = 2; //down I want to Order Buy went have double Green Bar and Sell went have two Red Bar i write this but it not run
I have been struggeling with an issue for quite some time and cannot find the answer so I thought I ask the forum for the first time... Im building an indicator in MT4. I have a csv file with data, for example: <currency;date;number;number;...;...;..> AUDUSD;021210;88976;7765;7774;45;......
I am curious to know if Objects return a pixel value or is it a bar value?  (I need to input the object's values into a math function).    Thank you for any advice.   
Can't figure out why this happens! I have a routine to check the integrity of my orders.  [If I have previously been unable to close orders after delays and retrys then details are written to file and dealt with here] So in 99.9% of occasions (give or take a little) I would not expect to find a file...
Hi, I'm writing an expert that knows to switch between accounts. Experiencing following issue: hWnd - is handle of Login form in Terminal. I need to type Username/Password in fields and simulate pressing ENTER. Here is my code so far: PostMessageA(hWnd, WM_KEYDOWN, "MyUsername", 0); // Type...
Hello guys, Do you know how to find "n" max or min values of the buffer? I use ArrayMaximum to find max value of the buffer, but I need 3 highest value of the buffer. How to get them? 
hi everybody, I'm a newbie about MT4 I wrote a EA, it work fine, but the part of "moving stop" isn't work, and I can't find out what's wrong. anyone can help me? please!!!  thank you!!!     //check position, close or move stop loss   if(OrdersTotal() != 0)   {      if(OrdersTotal() != 3)//close all...
forexparvenu
my problem is ... currently i tested ea on more than 10 broker, and today i m try to testing on fxpro, but wondering why i cant choose the parameter on ea ? please help... the problem is cannot choose the ea setting, but the ea still can open the position...
Hello, I don't get reports. I'm trying to create the MT4 reports using 'statement.htm' and 'StatementDetailed.htm' that come in the templates. I have verified tools/options/publisher. I put in the ftp server in format type 'access.metatrader4.com:443' and when pinged my computer recognizes it.  In...
Hello I'm trying to create a function which returns an array ? is that possible ? if yes does anyone have an example ?   thanks Nicolas 
Hi guys, wondering can we rum MT4 on Windows Phone 7.5, 7.8, and 8.0. Is there anyone here succeeded in trying to run it please? Thanks. 
Do ZigZag lines return a pixel value or a price/time value?   I would like to take the ZigZag coordinates to be inserted into a math calculation, if they only return price/time,  how would that be accomplished?   Would I have to convert price/time to pixel values?      Thanks for your guidance! 
Are there anybody with knowledge about programming mq4.I want to add a sound alert my zigzag indicator.mt4 will give the sound alert " BUY PİYASASI İÇİN UCUZ FİYAT"or" SELL PİYASASI İÇİN UCUZ FİYAT"  when Arrows apper    I'm sorry for my english is poor. My language is Turkish