MQL4 and MetaTrader 4 - page 902

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...
[Deleted]
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...
[Deleted]
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
[Deleted]
  Delettion of pending orders  (16   1 2)
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.
[Deleted]
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,...)...
[Deleted]
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...
[Deleted]
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
[Deleted]
Hi Everyone, I create a custom indicator on a separate window, which has a range from 0 to 10. Could you please help me to put  1 comment on the left handside, at the level 5.0.  Thank you for your help.  HHC  string short_name = "indicator at 5.0";IndicatorShortName(short_name);
[Deleted]
Hi guys, I wrote EA, I need read data from extern files. EA in tester mode return error 4103: ERR_CANNOT_OPEN_FILE When run the same EA on demo graph/market, reading is ok. Tester mode cannot file operations...???   Thank you for answer. 
Can anyone tell me how you can see which of the EA's opened an automated trade. I have 2 EA's, but can't see who has opened the trades.  Thanks,  Steve 
[Deleted]
I have been trading the USD majors on a discretionary basis pretty well while using a systematic trend indicator. Essentially, the goal of this indicator is to determine whether we are currently in an uptrend/downtrend. From that I use support/resistance, and feel to time my market entries/exits. I
[Deleted]
Hey guys, with the latest 509 version, you can see when dragging the TP / SL the pips and the TP / SL win or loss in your deposit currency. But what annoys me is that after the dragging of the TP / SL line the info is gone. Is there any option to keep the info visible at the line? regards naik
[Deleted]
Hi, I'd like to add just another question to the iBarShift discussion: e.g. iBarShift(" EURUSD ", PERIOD_H4, D'2013.06.21 14:10' , true) currently returns 62. I would have expected it to return -1, since there is no bar in PERIOD_H4, opening exactly at D'2013.06.21 14:10' . So when would it return
New article Graphical Control of External Parameters of Indicators has been published. How often do you have to set or change external parameters of indicators? Many of you must have once thought of moving them to the chart to be able to conveniently drag an icon or an object to the required...
New article Social Trading with MetaTrader 4 and MetaTrader 5 Trading Platforms has been published: What is social trading? It is a mutually beneficial cooperation of traders and investors whereby successful traders allow monitoring of their trading and potential investors take the opportunity to...
hello everyone, is there a way one can combine two expert advisors using different magic numbers? I know I can write them all into one file, but as they are, separate is there a way that they can be combined, without writing them into one file?? thanks
hi, i have a string array such below. Is there any code to show string variables from array in data window? string pair[28]= { "EURJPY", "GBPJPY", "AUDJPY", "NZDJPY", "CHFJPY", "CADJPY", "USDJPY","EURUSD", "EURGBP", "EURCHF", "EURCAD", "EURAUD", "EURNZD", "GBPUSD","GBPCHF", "GBPCAD", "GBPAUD",...
Dear all   here is my code:   //+------------------------------------------------------------------+//|                                                      testing.mq4...
Is there script that can set a stop loss to close only a percentage of an open order?  I have a position that I want to hold open but would like to scale out of in the event price action begins to move against me.