MQL4 and MetaTrader 4 - page 1250

Is it possible to show more indicators in the same subwindow? I.e. I want to have 3 or 4 stochastics in subwindow 1. Is this possible and if yes, how do I do this
I hope anyone can help me. I try to add an additional Moving Average to the usual Stochastics but the last two MA's (buffer 4 & 5) do not show up in my graph. Probably I do something wrong with the buffers. Could anyone tell me what I am doing wrong? Thanks in advance. #property
  Total Profit  (2)
I want to make a auto-hedging script and so on I need it to be able to check the total of my positions and when it goes over some point I want it to close everything.I can probably manage the rest opening inverted positions but I need this part to work before I go any further. I use mt4 btw not mt5
Hi All, I'm having some dificulties to set up a FLAG in my expert that defines if the trade has already been triggered or not. For instance, I have a order logic that is triggered when the RSI indicator is overbought or oversold. All orders have S/L and T/P. If one of this two targets is reached, my...
[Deleted]
Hi, I am building an expert advisor based on such a strategy that if i don't control the no of open positions,it opens a new trade on every single bar.What code should i add in my expert advisor so that i can control the no of trades and whenever i attach my ea on a chart,it asks for the maximum no
Hi Could someone please tell me how I can calculate where a position will have a specifiec profit in deposit currency ? For example I open a 0.1 lot EURGBP on 0.8912 and I want to set it's TakeProfit at a price where positions' profit will be exactly 40$ ($ is my accounts deposit currency ) I know...
I have a problem with optimization of my EA. The back test does't take any effects - there is no results. What should be selected in order to make proper optimization of the robot?
  Results in pips  (1)
Hello, I'm a new user of MT4 (former used VTtrader). I have made some trades. When the trades are active the results can be shown both as pips and in Euro's. Once the trade has ended the results are shown in Euro's. Is it possible to show the endresults in pips? Kind regards Mario
  Trend Direction  (4)
Hi, 1st of, this forum is 1st class, I have learned so much, as well as d/load a few filters, for this I thank all of you. I hope someone can help me out here ? I use 15min chart and 1 hour chart, I have sort of use the Multi Time Frame strategy, (Overbought / Oversold) finding the price momentum on
[Deleted]
Hi there folks. Hope somebody would be kind enough to point me in some direction here so I can solve this problem. Every time I trace trend lines on metatrader at some point it gets messed up. I spend a lot of time doing my researches and tracing my lines, I save it as a template and do all I can...
I'm seeing some very odd behaviour while doing a backtest. There is a large disconnect between my Balance and Equity values. There was a trade to buy 35.1 lots of EURUSD at 1.37321 and the trade later exited at 1.37412, for a profit of 9.1 pips * 35.1 lots * $10/lot/pip = $3194.1 which shows up...
[Deleted]
Hi all - I'm in the process of developing this indicator, and need some help. I find that I have to compile it twice to get it to appear every time I attach it to a chart or change the timeframe. Any help would be much appreciated!
Hi Could someone please tell if there is a way to use an indicator independently ? I mean without the use of metatrader and directly apply a chart to it and get indicators data on that chart, for example in memory or a file, array ..., something like calling DLL functions . thanks .
I wrote a script (EA) for MT4 to handle my trades. The script intend to be general for all pairs, but currently I'm using it with EURUSD only. As far as I've been told, I can run the same script on different windows (MT4's windows) each with it's own pair without influence from one pair to the
[Deleted]
ok, here's the problem. i got my ea work but there is just one problem; it opens order right after the stoploss is hit. the thing is it should wait for the next signal to open an order. so here what im asking how do i get my ea the wait for the next signal after the stoploss is hit also it would be...
Anyone has a sample EA written in MQL5? The 2 samples that come with the download chart on chart and a naked woman is not useful for mere mortal just trying to code a simple EA.
as an example how to return 10 from 10.30 . i want to just ignore decimal points
Atenção Brasileiros, estou convocando todos que participam dos fóruns e desafios para nos encontramos no msn: me add e manteremos contatos. Talvez façamos um grupo para debatermos os assuntos sobre FOREX. Abraços. faelmariano@homail.com
  OnBarChange  (17   1 2)
Is there a way to get an indication to the Start function only when there is a new bar?
[Deleted]
  SDL-MAM indicator based ea  (14   1 2)
Hi all, Please i need your help to create an EA for SDL-MAM indicator(attached), i need it to place a buy order when its value in Bar[1] is greater than its value on bar[2], and it should place sell order if the value on bar [1] is lesser than value on bar [2]. and i would like it to trade many...
[Deleted]
Hey pre-made I have a expert advisor that automatically takes trades for me but i wanted it to only take trades between a certain time frame. Can someone tell me the line of code to add so i can have the EA start running at Time A and stop at Time B?. Also is there is a code to exclude some days of...
[Deleted]
Now the weekly bar's open time is designed as Sunday,which is not consistent with daily chart and this resluts in difficulty in comparing and calculating open time. The first trading day in a week is Monday instead of Sunday,so the open time of trading in a week should be Monday.
double EUR=4;double USD=1;double GBP=6;double CHF=3;double JPY=9;  double num_array[5]={EUR,USD,GBP,CHF,JPY};//41639ArraySort(num_array,WHOLE_ARRAY,0,MODE_DESCEND);string Comm;Comm=Comm+"\n\n = "+DoubleToStr(num_array[0],4)+"";Comm=Comm+"\n = "+DoubleToStr(num_array[1],4)+"";Comm=Comm+"\n =...
Hi: Thanks for your help. I am looking to try to add a custom indicator (NeuroTrend) to an existing EA. The indicator paints a different color bar onto the chart itself (instead of using traditional methods such as candlesticks etc). Please correct me if I am wrong but the ea must call the indicator...
is it possible to log in to the same account at mt4 in 2 different machines, and if so, what are the implications?
Is this code correct to calculate the maximum or minimum price achived by a position? I Used OrderOpenPrice to verifiy if a position is opened. From this max e min values I would like to code a trailing stop. Is it possible? Best regards. int maxvalue()   {     double Current_high;    //new high...
Hello I have been getting strange behaviour from the MT4 Strategy Tester. I started testing an EA with 1 years of historical data at a time. 2001-2002: fine, 2002-2003: fine, 2003-2004: fine, 2004-2005:fine, 2005-2006: fine, 2006-2007:fine. Then I decided to test with 6 years worth of data:...
I trade a portfolio of 24 pair of currencies. I'm looking for help to develop a custom indicator will represent the value of each pair of currencies using the weigthing factor for each pip value and present the overall condition of the whole portfolio. Please reply with your interest and rates....
Hi. Can someone help me, what is wrong in this simple EA, it doesn't trigger the orders when Stochastic crosses the Signal line. I made the Strategy Test in a 15min timeframe with thousands of bars and total orders are 0. #define MAGICMA 10460211extern double Lots = 0.1;extern double TrailingStop =...