MQL4 and MetaTrader 4 - page 1373

Dear all specialits, Hi, My name is Yoshi from Japan. I would like to have a hint to create EA to implemtnt " 5 minute Waiting time after stoploss hit " I want use Sleep function, but could not use..... if(CurrentPosition == -1){     //If BB lower hit, implement order.   if(iClose(NULL,0...
[Deleted]
Hi, Using the MetaTrader4 software, today I had attempted to place a trade on the open of the 5 min bar at 11:00am 16/12/09 USDGBP. Please see attached. I was prompted saying that the trade needed to be requoted and on accepting the requote it placed the trade at 1.6346. During the entire 5min bar
[Deleted]
can anybody give me an idea why this EA only trade when its the only EA on a chart...even if I choose a different pair if there is more than 1 EA it doesnt take trades, but if its alone it takes trades. it has a magic number and a comment...so I thought this shouldn't happen. I havnt posted the...
This video shows how to create a moving average strategy with metatrader. Enjoy
As far as I know the Tester interpolates the same amount of ticks in each bar as the value of VOLUME in that bar. Obviously O/C/H/L are still simulated accurately, but within that bar the prices vary according to the amount of ticks produced; so the larger the Volume, the smaller the changes between...
Hello, I have a very easy description, but I do not know how to do an easy EA program in MQL4 for MetaTrader backetesting and trading. Please, if you could hel me I will more than appreciate. I can pay for it, but some reasonable price. Thanks, George PS.: I wil send it like a txt file by emial.
Meta Trader platform has 3 different counting methods for back tests. There are: 1. Every tick - the most precise method based on all available least timeframes to generate each tick 2. Control points - a very crude method based on the nearest less timeframe, the results must not be considered 3....
[Deleted]
For instance,I need to get the highest price in the past 75 minutes on the current chart . I used the following codes to get it, but it did not work well, because there are always some bars missing,especially on M1 charts. ...... extern int StartBar = 0; extern int BarsBack = 75; ...... int...
  order select  (5)
it possible to select closed trade from history but how do you chose the last closed trade out of all the trades in history. any idea inregards to this will be very appreciated
[Deleted]
I'm trying to port trading methods to MT4 for semi-automation. I am having trouble figuring out the math behind having it figure out lot size ( especially for the EURJPY ). Basically, I don't want to risk any more than 10% on any basket of trades. Each basket can hold a possible of two trades, the
[Deleted]
I'm looking for a broker that allows hedging and has a mini/micro account. Does anyone know of any good ones? For me it used to be IBFX but now they stopped allowing hedging. Thanks, -Ron
In the documentation: int DayOfWeek(   )Returns the current zero-based day of the week (0-Sunday,1,2,3,4,5,6) of the last known server time. int DayOfYear(   )Returns the current day of the year (1 means 1 January,..,365(6) does 31 December), i.e., the day of year of the last known server time. From...
[Deleted]
How to trade on several hours then sleep and continue again ? for example start at 18.00 to 21.00, sleep for 2 hours, then continue again at 23.00 to 6.00 in the next morning. I tried with this, but why on tester it only trade at 18.00 to 21.00? if ((TimeHour(TimeCurrent())>=18 &&...
[Deleted]
  where can i write MQL4 code  (14   1 2)
Hi, Im very new to MQL4, Please suggest me where can write MQL4 code, is the any tool? Thanks, Venkat.
[Deleted]
  help me! MT4 !  (2)
HI ! EVERYONE I REQUIRED TRADELIMIT & CLOSEALL BY MT4 CODE PROGRAMMING Q1. EVERYDAY! ----ONE DAY TRADE TIME-----FROM 7 TO 23 TRADE SYMBOL----- USDJPY (H1), USDCHF(M1), EURUSD(M5), USDCAD(M30) SYMBOL PROFIT= 2% DAY SYMBOL TOTAL PROFIT=5% IF TOTAL PROFIT >=5% OR TOTALPROFIT <=5% CLOSEALL BUY & SELL
I am looking for a script that when it is actioned, it will buy and sell the same currency at the same time creating a instant hedge. It would also need to be able to change lot size. example buy 1.0 and sell 1.0 or change to buy 0.1 and sell 0.1 Any help in this matter would be greatly...
[Deleted]
Build 224 did not exhibit consistent 'need' for over 90% on regular basis. running on terminal: 12 symbols in market watch 2 simple charts - no heavy indicators... using Process Explorer from sysinternals.com the graph is consistently spiking and holding for seconds at a time in the 90% + range. as...
[Deleted]
my massagebox() code is not working??? //EXPERT INIT SPECIAL FUNCTIONint init(){   //local variable   bool oc;   oc = ObjectCreate("buy here now",OBJ_TEXT,0,D'2009.12.10',Ask);   ObjectSetText("buy here now","buy here now",12,"Times New Roman",Green);   Alert("object created = ",oc);   int y;...
Hi, I'm a new comer to ForEx but have been around and used computers for quite some time including a little bit of programming. I'm interested in programming some EAs for the MT platform, but being overloaded at the moment, including working at learning the how’s, ins and outs and the dos and...
I want to share my profitable EA, it TP is about 3-5 point of EURGBP run in 15minutes but before run and backtest, please make sure your br oker which spread small that 0.00045 of EURGBP Please comment after download~ ~ Thanks <> i provide the download link of the best broker of using my EA
[Deleted]
Hi, I have a separate window indicator that plots an object on based on high low price, but on the next bar the object disappears. I would like the object to remain on screen i.e marking the low unitl the corresponding high appears. basically the down arrow stays down until the up arrow appears,...
[Deleted]
  Error logs?  (3)
Hi When I try to write any script if it does not work I get no errors? I look in the journal and it just states SCRIPTNAME removed - am I missing something here
[Deleted]
I am looking for someone based in the UK to write some EA's for me. I am finding programming difficult !! I expect to have to pay but please make it reasonable. Kind Regards Simon
[Deleted]
Hi, just like the subject, i am having difficulties to define the last closed order. What is the code i should add? Thanks for your help.
[Deleted]
Can someone add registry by using winapi? I want edit registry in MQL4 code.
Whenever my indicators create objects I prefix their names with the short name of the indicator so that upon deinitialisation they remove only 'their' objects. To remove them I want to use the function below. For some reason though it doesn't seem to be working right. Could someone please point out...
Hello: This is my first time posting in the MQL4 community and I appreciate your time and consideration in advance. I have been successfully utilizing my EA across multiple brokers for over 12 months. Most recently, I've switched to utilizing 2 different ECN platforms during which time I noticed...
I have the indicator as below. I would like to use this to place order in the ea, can someone please help? I would like to place buy order when the green dot firmed (2nd green dot appeared). My buy order will be at the last Fuchsia dot. Please help me in placing order, thanks Indicator : Price_Stop...
[Deleted]
Hi all. I'm new here and I have a question. Is it possible to draw two different currency pairs on one window in mql4? I can make my own indicator, and re-draw current currency chart. But what if i want to draw from a CI a chart of another currency pair (not the one in which program is hosted on)....
Hello, just wondering if it is possible to convert this MT4 indicator to MT5 for me please. Thank you