Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1180

To post a new topic, please log in or register
Greetings, It seems that the x-axis is locked and we can only plot charts on time. Is this correct? If this is true (and I hope it's not) I can't use MT. Time distorts visions like gravity distorts light. This would be a terrible hindrance to be stuck with having to view market data with the skewed...
attached pic is K Kines of EURUSD ( Period of 2008-02-07-----------2008-04-28),I used in another currency tools . A:=MA(CLOSE,1); B:=(LOW+HIGH+CLOSE)/3; C:=MA(B,5); D:=HHV(C,10); E:LLV(C,10); and I want port those codes to MT4 platform,but it does not work like the pic ? thank you !!!!! #property...
This always results in 0, no matter what the market does.  What is going on?//find average body over the last 12 1 minute barsfor(int j=12;j>=0;j--){   BodyAve += MathAbs(Open[j]-Close[j]);      Count++;   BodyAve = BodyAve/Count;  }
Hi I want my ea to only open positions between 05:00 GMT to 17:00 GMT but to close them, if they are open and need to be closed, all the time. The idea is to avoid flat market, and assian session. Can this be done???
New article MetaEditor:Templates as a Spot to Stand On is published: It may be news to many our readers that all preparations for writing an EA can be performed once and then used continuously. Author: MetaQuotes
Hello! I would like to know how support and resistance levels are calculatet? Are there more then one support and one resistance levels? I looked at codebase but I don't know which is the best indicator, can anyone help me? Thanks, by!
Hi everybody I've got a file (var.txt) with some variables //************var.txt*********************// double high_d1 = iHigh(NULL, PERIOD_D1, Current + 0); double low_d1 = iLow(NULL, PERIOD_D1, Current + 0); double highp1_d1 = iHigh(NULL, PERIOD_D1, Current + 1); double lowp1_d1 = iLow(NULL,...
I am looking for a EA or a function callwhich can read an incoming mail. I want to set up a system where execution take place based on areceived mail alert. Please let me know if any one can help.
For example, if you are using 1 minute bars, call this fucntion when time changes from (DD:HH:MM format) XX:XX:X1 to XX:XX:X2. If you are using five minute bars, call this function when the time changes from XX:XX:X1 to XX:XX:X6. ???
I am simply trying to calculate an average of volume over the last 12 1 minute bars.  I also notice that when I change timeframes, any EAs I have running will stop (unint 3).  Anyway around this?  I'd like to keep the EA running as I change timeframes and keep the averages based on 1 minute info no...
new fibanacci number-expanding AB=CD pattern-expanding pivot lines (ready for publishing) Introduction I'm going to give an idea of more detail of fibonacci number that can be used as expanding pivot lines or use it as an expanding AB=CD pattern. Your Title new fibanacci number-expanding AB=CD...
i know this has come up a few times but i cant find a clear answer in the other topics or articles. .. I cant use gmail for SMTP because i cant disable TLS (or atleast not aware how to disable it) so when i try to connect to gmail i get : Mail: 530 5.7.0 Must issue a STARTTLS command first...
Hello, I would like to know the expression to calculate : In my EA I would make something like this : - I try 1 lot - If the free margin is not ok, I try 0.9 lots - If the free margin is not ok, I try 0.8 lots - and continue until have the minimum lots to open an order Have you got an expression to...
Hello! I would read two string from file,(file.txt),but don't work for me,I recieive two error message:Too many Opened Files,and File was not found! the file.txt in tester/Files folder. Here is the code: extern string FileName = "file.txt"; int init() { return(0); } int deinit() {...
  LSMA Experts and Indicators (139   1 2 3 4 5 ... 13 14)
After doing a search for LSMA on this site I have found that there is no central thread for using LSMA as an indicator or expert. I have started this thread to serve that purpose. I will be modifying this first post to contain the most recent versions of indicators and experts related to LSMA as...
I would consider myself an expert programmer but am new to financial trading and quantitative finance. I've been looking around on the forums for MetaTrader for the ultimate winning trading signals, but came across a simple strategy that depends on the price crossing of the lowest value for the...
Can any one help with that? I want to set up a system where execution take place based on a received mail alert. In other words I am looking for a EA function call which can read an incoming mail and later I can make decision based on the received mail. Please let me know if any one knows. Thanks,
Hello, i have leran now good coding and want let you all know if there is one hoe have a good working Idea I can code a Expert Advisor for us to use, just contact me at kuc2n (at) yahoo.de and let us discuss .
Hi, I need to calculate the Highest Value of a Moving Average in the most recent 20 bars. I think I can’t use the iHighest function... Anyone can halp me? Thank you!
Is there any benefit to counting bars like this: for(i = limit; i >= 1; i--) or this for(i = 0; i <= limit; i++) ? Should I have all of my indicators counting bars the same way? If so, how do I convert it from counting bars using one method to the other? Thanks in advance.
I am new to the forum and to MQL. I have a system that I would like to translate to an expert advisor. This is logic of the system: Trading is based upon average daily range and price movement; not indicators. The initial trade will take place at the beginning of the European session, between 0600...
Hello, As a relative new user, i just won't to follow two different Forex-pairs (EUR/USD - USD/JPY) These two charts are set with my own chosen indicators... When i close the programm, and re-open it the next day, i have to deal with ALL the symbols in the programm...! All these charts are re-opend,...
I got the following result using one of the EA's on this site by adjusting some of the parameters and adding increasing lots as the equity increased. Is this possible or is this just a flaw with stradegy tester?
Hi, everyone :) I need to read data from different charts in an ea. I'm talking about the same currency pair, but different time intervals and the information, that will be important, will be the high, low, open and close of different bars, differently long. Can you give me any idea of how this can...
is there an easy way to create a EA from a custom indicator? My Meta 4 editor doesnt' have the EA icon to create the EA MIke
  Endless loop? (2)
This script is simply supposed to add up all lots taken, determine their position, close all orders and enter a new order in the opposite direction of the same total size.  There would be problems if you have orders of two different directions open at once, but since I do not trade this way, it is...
this will not execute a buy ??? #include <stdlib.mqh>#include <WinUser32.mqh> int start(){ int ticket;if(MessageBox("Buy 0.01 "+Symbol()+" ?",              "Script",MB_YESNO|MB_ICONQUESTION)!=IDYES) return(1);ticket = OrderSend(Symbol(),OP_BUY,0.01,Ask,3,0,0,NULL,0,0,Green);if(ticket<1)  {   int...
Greetings, This is my first post and I want to thank you very much for creating MetaTrader and making it available for free!(?) I have a couple of questions that I will post as separate threads but I have a couple of questions that fit in this thread. 1. Why is MT free? 2. How long will it be free?...
Hi, everyone, Another newbie here :) I've been trying to write an ea based on the data, provided by an indicator, again written by me. Of course I can always add the same code that I've used in the indicator in the ea as well, but I'm really hoping there's a better way. I've seen functions that use...
Hi, Dear Coders. This is StepMA. Only one MA in the code. Can anyone of you help to change the code, to write 8 stepMA in this indicator, please. I would like to have 8 stepMA in one indictator. //+------------------------------------------------------------------+ //|...