Download MetaTrader 5

MQL4 and MetaTrader 4 - page 271

To post a new topic, please log in or register
Is there such a tool to move my stop to BE at a given price ? I would ultimately like a line i can set like the take profit line, if price hits it stop is moved to entry price .......... can anyone help me out?   cheers onis  
  Demo Symbols (2)
I downloaded MQL4 demo account.  The symbol list is very limited and doesn't include the EUR/USD.  There's a tab for the EUR/USD below but when I click on it it only says "Waiting for update". Please advise how to get the EUR/USD for the demo account. 
Hello @all,   im looking to use a renko chart and want to run an expert on this chart. as far i understood, renko is running on an offline chart, this chart will be updated with every tick by the periode converter function with a normal 1M chart..    so now i want to use an EA on this chart, my...
Hi guys, I´ve programmed a very simple indicator. It should return the value a, which is previously defined. Here it is: //+------------------------------------------------------------------+//| EaTestEa.mq4 |//| Copyright...
hi all, Does anyone know of a way to program an EA to calculate the maximum or current drawdown in your trading account balance or equity? ie what your current ACCOUNT_EQUITY is relative to your 'account peak equity'. if there is no built in way to do this, could you trawl your order history pool...
Hi all, as you know, renko chart depended on price changes and is independent from Time. The Renkocharts are constructed as follows: the close price of the current period compared with minimal and maximal prices of the previous. In this thread you give the renko chart ea. Today i want to make some...
I run my developed EA from laptop. problom is when internet disconnected the EA placing order again and all trailing stops collapsed. How to solve this issues? Is there any method to avoid re orders when EA restatrs?
Very good, as I can modify this code so that only data download me a week ago? //+------------------------------------------------------------------+//|                                               output_history.mq4...
Hi forum, I have no idea why this script works sometimes and sometimes it doesn't. If I use it on NZDUSD H1 it looks fine but if I use it on EURUSD there are a lot of lines missing. Also when I change timeframes there a many lines missing. Additionally JPY-pairs cause some trouble. I have three...
Is it normal when compiling an EA while its on a live chart that all the arrows and dotted lines showing closed orders all delete? thx.
Does anyone know where I can get a bar counting script that will put a label under each bar of the session with the # of that bar? starting at the open with 1 and going to the end of the session? Just a very simple 1,2,3,4 ... etc till end of the day labeling. I've tried searching but can't find...
Hello, Every Guru in the house, Please help me concerning this code, I want this code to close all orders when the profit has reached certain level and stop trading for the rest of the day. The code below truly closes all the order as supposed but it continues opening more others, pls enlighten me...
i have question my mt4 stop moving it is connected but looks like is not connected?
  error 4108 (9)
hi, folks I'm really impressed with the deep knowledge expressed in the forum my qustion is about error 4108 that kills my trade. i get the order ticket by orderslect and then issue the ordererdelete function to kill a pending sellstop order. most of the times i get the 4108 error, now is this ea...
Greetings! Recently joined this forum and am glad to see activity here.   I have to modify a sample code, in an Expert Advisor article posted at mql5, link given below. Very recently have I started mql4 coding and still very much learning. Is there an mql4 version of this code. I am facing...
I'm looking cross between     Money Flow Index: iMFI(Symbol(),0,2,0) and     On Balance Volumen: iOBV(Symbol(),0,PRICE_CLOSE,0) only      if (iMFI  == 0  ||  iMFI == 100) please check the example: Here the template clic   thanks for any idea
Hi, I have coded an indicator that runs perfectly. Now I have written a script that loops though the variables and calls this indicator (several thousand times): double toOpti = iCustom(sym,tf, "myIndi",var1,var2,var3,var4,3,0); While running the script (= looping: for(var1.. for(var2..)) once and a...
I just finished my EA and have tested it in back test it a couple of days ago but then I did everything the same and it gave 1.000.000 $ different in result. I used the same unmodified EA. I used the same parameters or setting. I used the same symbol, time frame and back test length. My EA only...
Hi    Can anybody help me how I can the low/high point of Zigzag indicator?  I need to set the stop loss for my position when created by EA  Assume my EA decide to open a position if it is buy I need previous Zigzag lowest point in M5  or if it is a sell I need previous Zigzag highest point in M5...
Hey guys, i have a very simple problem and it makes me crazy that i cant solve it. I wrote a small EA which should Modify the Oder every 10 pips to a new SL of 20 pips.  But it always says: "invalid ticket for OrderModify function". Here is the code: OrderSend(Symbol(),OP_BUY,0.01,Bid,10,Bid-0.002...
Indian Stocks can we get MT4
Hi, In my fisrt EA that I am writing, I am checking some conditions from indicators in 1D, 4H and 1H. All the indicators are written on its respective time frame. The problem that I am having is that, when using test strategy,  I check the conditions to place a sell/buy order, and it does not work....
GregorAnton
Is there an event for dragging orders from the Trade or Account History Tab onto the chart? I would like to be able to select an open order from the Trade tab and have an ea use the ordernumber I selected in the tradetab for custom code.
Hi, I tried history centre on mt4, where i don't get for 1 year history for 1 min tick chart, showing only 1 month. i like to test my strategy with 1 min tick chart. can anyone has idea to get history for 1 min tick chart from instaforex. Advance Thanks.
Hi, I was wondering if there is a limit of amount of graphical objects that are present on a chart. My EA is creating arrows to show Entries and Exits of trades so it is esier for me to later analize those. Is there a limit for those, I have 11 pairs running at the same time. Also my second question...
Hello World! ;) I wish to let my Pivot Point (PP) indicator display a preview of tomorrows' PPs. Neatest label is in my view provided by OBJ_ARROW_LEFT_PRICE. The Problem is, that object type is anchored by time (and price). I wonder whether there is a way to align the display to the right corner?...
hi every one i have an EA which works completely OK when i run in in demo environment it is the same when  i run back testing. it works great with back test but in real it does not delete pending orders when it should have you encountered such problem so far?
Dear All,   I have experience in MQL4 programming for more than 2 years. Today I loaded my EA to USDCHF,M30 Chart and after 4 hours it stopped working although I see the smiley face. I searched in the log file I didn't find any Alert like Zero division or log like uninit. it is just disappeared. Can...
Hello guys i wonder why when i try to attach an indicator from the "navigator" tab i get such problem: https://charts.mql5.com/7/679/usdjpy-h1-octa-markets-inc.png Here is an example with stoch, but it gives me the same errors with every indicators. Anyway, if i choose the stoch from indicator...
Well,I've made an Expert Advisor that is supposed to open an order once the current price reaches the upper Bollinger Band(it will check it every 30 minutes and in 9 symbols). The problem is that if the current price reaches the upper Bollinger Band and after 30 minutes it reaches there again,it...