MQL4 and MetaTrader 4 - page 235

Hi, I am trying to put together a simple EA to give me the price in relation to the EMAs on multiple timeframes. I dont seem to get the color right. it is always coming out as clrBlack //// Start functiondouble   ema5m1, ema5m5, ema5m15, ema5m30,         ema8m1, ema8m5, ema8m15, ema8m30;...
Could anyone help and teach me how to arrange back "standard",charts,line studies and timeframe like beginning download.i was accidentally drag out form the row
  Play - VSA/PSVRA  (6)
I start my new topic about VSA/PVSRA. I play red or green. Very easy It's my view EURJPY Monthly I use templates from https://www.forexfactory.com/showthread.php?t=114792
Hello What can I do to get the price of a moving moving average now? I visited but unfortunately I did not find
need advice on above error. what the is this error
  TMA Bands  (5)
Does anyone have a TMA Bands indicator that work on MT4? Thanks
  error code 131  (5)
I am so tired of strategy tester  error code 131 iv read too many topics which almost says it is du to wrong trade volume which could be fixed by normalizing the order's lot iv do that but fails tooooo!! finally i found strange case that there was a ticket with no order matching on chart ,but how to...
How do I find "enable checkbox " so that I may enter trades
I followed the instructions on how to download mta4/5 to mac laptop and it does not work. this instruction seems are outdated. Anyone know how to install mta 4/5 to mac laptop? I need some help. It is so complicated.
I should do a backtest with absolutely reliable data. What do you recommend me  I have tried with the historical data of Metarader of TickStory and Tick Downloader but I have always obtained very different results and different from the real ones of the last month. Thank you Maurizio
i wrote this code & its work but just one problem: some time it send 2 or 3 or more order like order closed. i want just send 1 thanks for helping void openorderagain()  {    for(int d = OrdersHistoryTotal() - 1; d >= 0; d--)      {        OrderSelect(d,SELECT_BY_POS...
How can I program triggering a key press/event? For the following use case: Normally one can zoom with the "+" and "-" keys, but I would like to zoom with "q" and "r" and my idea is when "q" is pressed to trigger pressing the "+" key. Or are there better ideas how to create this use case?
Dear Everyone! i wrote a little script (only to test if EA would've worked or not in the past) which SHOULD do the following: on HOURLY frame (any chart is okay but i tested it mainly on EURUSD) the script calculate from 522 candles and at every candle opens a long trade which has a tp and sl same...
I want to start the calculation of ShiftTime from spesific datetime in the future for BeginTime and skip calculation in current time before BeginTime (return nothing). datetime BeginTime = D'2018.09.01 00:00'; datetime ShiftTime = iTime(NULL, PERIOD_MN1, 1); I try this code, is it correct? int...
Hello, I need to calculate the difference in pips of two values. e.g. // some price double var1 = 1. 3574 ; // current price double cprice = Close[0]; How to calculate the difference of pips in these variables, considering the decimal places used by different brokers. Thanks in advance.
Hi  I want writing a martingle EA code How I can select the biggest lot position for *2 for new position? Please write sample code
double DR[260]; for(j=1; j<=259; j++)   {   DR[j]=Close[j]-Open[j];    Sum=Sum+DR[j];   Count++;   } In the above code, to the best of my knowledge, the loop should run for 259 iterations and therefore the array 'DR' would require 259 elements for the values to be stored. However if I set 'DR' to...
Hi everyone, Troubleshooting my EA at the moment and have had some problems with a particular 'if' condition not being activated. I suspect the issue is an improper calculation from the ICustom code that comes before or the way time is expressed as a string "..." ICustom code (the value of 1000 is...
Hi I am after a indicator to mark Hi and lows to identify trend direction to trade, Example of uptrend: Higher High is higher then previous high with 3 candles on both sides lower. Higher Low is higher then previous low with 3 candles on both sides higher get the picture, an ea would be even better...
Dear Coders: I have a problem and I can not think how to fix thay kindly support, //$------------------------------------------------------------------$//|                                            MA Crossing Magic.mq4 |//|                     Copyright 2018, MohamedEgy...
Hello, I tried to install Metatrader4 following the instructions I found here https://www.mql5.com/en/articles/1358?utm_source=www.metatrader4.com&utm_campaign=download.mt4.linux When I downloaded the file.exe from here https://www.metatrader4.com/en/download I got this error: "Operating system not...
I would like to make a EA which is when  iMa crossover the Close[1] like right before candle then buy or sell depends on what former candlewas I tried to code but still i don't get it :(. I can't figure it out how to use iMa. this is my code. extern double volume1 = 1.0;//Lot사이즈(Buy)extern double...
Hi I need help with coding in EA to 'print net margin utilized for a symbol'  If I have EAs running on 3 different currency charts, the EA on each of those charts should only print the margin utilized by that symbol.  Taking on new orders for that symbol would have EA on its chart to recalculate and...
Hi All, I am a new user and I would like first of all to congratulate you for the valuable information that can be found in this forum. I want to ask for your help because I have a problem with my EA that works on MT4 VPS: every time I turn on the PC and open MT4 this EA is re-initialized as if it...
hi i have a simple question... i want to select a pending order when it reaches its price for example in the code below 2 orders gets opened and the second one is a buystop as you see....i want to modify the stoploss of the first order that is a buy after the second order reaches its...
double Limit=Bars-1;double DR[Limit];for(i=Bars-1; i>=0; i--)   {   DR[i]=Close[i]-Open[i]; // daily return   Alert("Daily return of bar ", i, " = ",DR[i]);   } The above returns the error "invalid index value" in the highlighted position.  double DR[];int i;for(i=Bars-1; i>=0; i--)   {...
Hello and sorry for my bad english. I made this very simple indicator that draws a SMA using iMA (totally useless but consider it like an exercice for me). It works fine when I use it manually on the terminal but always returns EMPTY_VALUE in an EA. Could you please help me understand what's wrong ?...
Hi  I would like to see the spreads from different several brokers on the same chart or same list. It can be a really simple interface like a excel sheet. Is it possible to pull the ask and bid prices from mt4 to a basic software live. https://www.myfxbook.com/forex-broker-spreads  I want something...
I'm trying to run a version of MT4 in the cloud (dropbox) which allows me to use the program at home and at my work. Everything seems to work fine except ST Chart synchronization, bought on the market. The problem is (I think) that I can't click on the "install on the terminal" because it can't find...
Hi, I'm just begin to learn mt4 coding. I try to understand now why this indicator repaint.. In the code I can not find  code which recalculat the past or stange future function.. can somebody help me to find the code which make this indicator repaint? maybe the two loops, one calculation from...