MQL4 and MetaTrader 4 - page 536

To post a new topic, please log in or register
I have written a small EA and have this strange thing happening where the same code that I use for detecting a Buy transaction that stops more Buy transactions from happening in that loop, does not work with the Sell transaction, therefore making it go in a loop and repeat Selll transactions until...
Gents, is there a way to display the data in the comments field (of the individual trade orders) on the corresponding entry, sl and tp lines on the chart? With a number of different strategies on the same instrument, it can be difficult distinguishing which chart lines relate to which EAs when only...
Hello all, and thanks in advance for reading this. I'm having a little bit of trouble figuring out how to get two orders to close consecutively.  For some reason, when I run the below code with live trading enabled and the "manual confirmation" box checked it brings up both trades for confirmation....
Hello, I am an usual Metatrader user. I used especially MT4. Ilived in Canada where MT4 worked perfectly. I have just moved in French Guianabecause my father has just died from a serious illness, and I have to supportmy mother during several months. I try now desperately to put on MT4 or MT5, but...
All, How do it get the two values presented by this indicator using iCustom? I've tried the following and other variations and it's not working.        iCustom(NULL,0,"HAMa Step Histo",1,3,6,5, 0, i);        iCustom(NULL,0,"HAMa Step Histo",1,3,6,5, 1, i);    Thanks in advance!! 
OCO Order Suggestions, MetaTrader 4, Open, Start: 2013.07.10 09:11, #791487 can be implemented pending orders OCO? tie ticket between them ... so as to allow the use of strategy!    Label on the vertical scale Suggestions, MetaTrader 4, Open, Start: 2013.07.09 17:20, #790653 why not put a label on...
Hello, I'm not receiving notifications of subscribed topics. I have to go to the topic's page to check the answers. In my profile, all topics are in the subscribe section. Please, does someone knows what can be?
salve a tutti c'e qualche brava persona che realizzi un indicatore di percentuale ( % ) da poter inserire sui grafici grazie
Hallo zusammen Ich bin new im forex handel und möchte gern meine trades automatisieren. Ich habe viele EAs gefunden, aber keines wo mir erklärt, wie ich meine eigenen angepassten Indikatoren mit einem EA verbinden kann. Meine Vorstellung ist, wenn mir die Indikatoren ein buy oder sell Signal auf dem...
I want to copy trades from one of my account from other broker to other account from diff brok
Hi everybody,  I have >= 2 sell orders, how can i get OrderOpenPrice each of them??? Exam: i have 2 sell orders, 3 buy ordesr, 1 buystop order, 1 sellstop order. I want get OrderTicket each of them to compare OrderOpenPrice between sell order vs  sellstop, buy vs buystop,  This is my code, it get...
Hi, is there any possibility to open two positions with one click ? I mean, for example, I click 'sell' in one-click trading window and It opens two positions 0.5 each (or 0.3, 0.7). I don't necessarily need to do it in one-click trading. But sometimes I want to open 0.7 lot position and in the same...
I don't think this is a feature, more like a bug. I just spotted this on one particular EA I was testing. I tried 4 other EAs and three of them displayed Balance and Equity, with one just displaying Balance only. It's clearly not that the equity curve is hiding behind the balance curve, the top left...
Hello, I am trying to write an EA. I need to return the total number of lots opened, but I could only find the number of lots for the current selected order. Is there a selector in MQL4 like * in other programming languages? Thank you.   Jinstin 
Greetings,  I was trying to program an EA that moves 22% of my  free margin for every trade it opens. Only one position is open at a time and the only positions opened are those from the EA. The code I used for finding out the size of the trade was this one: int AdjustLot(){   double sizePosition...
I created a custom indicator where one of the lines is the result of a subtraction of another line  i.e. L2= L1[i]-L1[i-1]. The indicator works fine most of the time but occasionally gives a large +/- value. This is creating havoc to my EA and it is entering into trades spontaneously. Has anyone...
I tested EA which I made with myself. Test condition EA Name WPR-v3 EURUSDPro Every Tick start time 2013:06:17 end time 2013:06:23 M1 Different results are displayed when I test it under conditions of the above several times. How come? 
Hi, I wrote EA for 4hrs breakout system. I almost most completed.but still i must tune the EA for exact rules. As i am new coder i don't have idea to correct my coding. My questions are: 4hr TF 1) If current candle applied rules EA place buy/sell , till next trade day no order! 2) If current candle...
i want to use macd method on MA5 lines  and made code below ,but it does not work ,may you point the erro out ? thanks #property indicator_separate_window#property indicator_buffers 2#property indicator_color1 Red#property indicator_width1 1#property indicator_color2 Blue#property indicator_width2...
can any one have a tarzan  non repaint indicator
Hi! Please advice on how to write  a function to delete a pending order if it has not been triggered for a specified number of  periods (candles). Thanks.
Hi, I am using: https://www.mql5.com/en/code/7673 for create graph no-standard time frame on MT4. I created graph 2min, inserted my test easy code, see below. Why fce. IndicatorCounted() always return zero?!! When I insert the same indicator in graph with standard timeframe MT4 (1min, 5min,...)...
Hi, I have several MT4 managers and am trying to find a way to get all of the positions for each currency pair into a single location such as excel? i haven't had any luck so far. Can someone tell me if this is possible in excel or if there is software available that can combine positions so that it...
MirTD
my jounal reads like this during backtesting 1.volume limit  exceeded 2.high price not reached from the least timeframe 3.low price not reached from the least timeframe   what could be the possible fault/ does anyone have any idea?
Помогите пожалуйста. Как правильно записать OrderSend(…) на МТ4 при торговле опционами, стандартная запись ордер не открывает. Grand Capital позволяет на платформе МТ4 торговлю бинарными опционами. Открытие ордеров вручную.
#1   I have tried hard to look for an institute that offers true Direct Market Access service for fx trading, instead of manipulating the price, the institute hopefully truly pass the fast, accurate and true price spread to the investor, and add a reasonable slim fixed markup on the spread pips.....
Hiya all, So I had made this -for me - really handy EA. If you load it, you can chose from the four pending order types, and three lines are drawed on the screen: the Triggerline, TP and SL. As soon as the price gets triggered the order opens; the TP and SL can be changed realtime: The TP and...
Good night everyone, I have a little problem with one of my indicators. It works fine when just loaded, in real time and in visual backtests. However, when MT4 closes and opens restoring the charts previously opened, the indicator goes nuts and one buffer (the last one) is always storing EMPTY_VALUE...
Guys I am looking for any EA which can trailing profit. I mean when I set trailing 10$ and set trailing step 3. this mean when profit goto 10$ EA set 2$ as trailing. when market reverse EA take profit 2$. Is there any type of EA in this forum.   Please help me.      
I am running MT4 & EXCEL 2010 on Windows 8 64bit. I cannot get the DDE link to work, EXCEL just hangs when i use the formula =mt4|bid!eurusd I have activated the DDE server in MT4, Checked "transition formula entry" in EXCEL' and installed MT4 to a folder outside program files but none of these...