MQL4 and MetaTrader 4 - page 843

I have a working ea but changed to an ecn broker. What should i change or add to the code to make it work??
Hi, I can code a bit EA for MT4 and I would like to create an indicator for MT4 from a web source. Myfxbook is willing to provide data that I would like to use/read for MT4 and create signals from Traders Sentiment I have no idea how to do an API: Someone gave me thoses 2 links.. but without real...
Hello everybody. I tried to search for an answer regarding this topic that I am sure has been treated already. I am trying to save high,low and close of the previous trading day on a csv file to compute some calculations since is not possible to perform portfolio backtesting with mt4. I wrote a...
[Deleted]
Hello, Could someone suggest me a better way of doing this: for(int A =0; A<50;A++){   for(int B = 0; B<50; B++){      for(int C = 0; C<50; C++){         for(int D = 0; D<50; D++){            if(A!=B && A!=C && A!=D && B!=C && B!=D && C!=D){             // do something..            }...
[Deleted]
Hi, I cannot get the iATR function to work on any time frame (such as 5 min) other than the time frame that is on my chart (1 minute chart), when I applied it to GBPUSD. However it did work on other time frame settings (such as 5 min) when I applied it a EURCHF 1 min chart. Both charts were 1...
Hi, As previous web designer, I understand RGB, but the code generated in the template to reference RGB colors in the color palette is foreign to me. Is there a chart available to reference RBG values which is then used in the template? I have many indicators which are only ex4, so I cannot modify...
  error in MT4  (1)
int SMMrd_131204130119() { double Ind_Wert=differenzErmitteln(BewegungsWert(2),100); if(-1.49 < Ind_Wert && Ind_Wert < -0.12) { Debugging(Ind_Wert); return(1); } Debugging("##_"+Ind_Wert+"_##"); return(0); } //++++++++++++++++++++++++++++++++++++ double...
Dear Community, where can I find a list of the lParam for the PostMessageA function? For Example PostMessageA(int hWnd,int Msg,int wParam,int lParam);PostMessageA( WindowHandle( Symbol(), Period()), WM_COMMAND, 33050, 0); This code removes the Expert Advisor from the Chart. Is there a list that...
Hi guys can somebody help a little? I have a EA - its working like that: ea is opening buy and sell pendings orders with sl and tp, and when sell or buy order is filled on SL is turning reversal pending order. Is really simple algoritm But... i dont no why my reversals dont open properly - can...
Is there any way to make a summary of what all the indicator values are on each sheet so that I can see everything in one place? Something like the pop up prices in MetaTrader but with indicator values along side the prices for each pair
Can someone please convert this indicator to expert adviser. I did every thing but couldn't able to convert it.
1. for the same EA, data of the same time section, for example, from 2013.5.1 to now; I test the EA on time frame H1 and M5 separately, I find 2020 bars have been tested in H1 and 5857 bars in M5; but I think tested bars in M5 should be 12 times of bars in H1 because of 60/5=12; but in the fact not,...
I have an EA that was working well before now but suddenly just stopped working . Below is the entire mqh programing of the EA. It is a News Trading EA. it enters 10 pending orders ( 5 Buy_Stop and 5 Sell_Stop) a minute before a News event and trails stop 10 pips from either highest or lowest...
I'm trying to use iBands to retrieve the Bollinger Bands lower and upper values but for some reason the data does not march the visual chart (created by the same iBands function call). Sometimes it's above, sometimes it's below... doesn't seams to follow a pattern. Any Advice? double upper =...
Hello For exemple I have a trend line and 2 point A and B A : x=Time[i] -------- y=Low[i] (Or High) B: x=Time[j] --------- y=Low[j] (Or High) How can i identify the price of the trend line in Time[0] C: x=Time[0] ---------- y = ? Thank you
[Deleted]
  MT4 PHP API  (21   1 2 3)
Hello there, I am Agon Xheladini web developer. My client is an forex trader/broker and i have developed an website for him. What he wants now is to display his MT4 results and history at his website. Since i am new with this problem it will be good if someone gives me infos on that how to...
I would like to check the number of operations for each symbol that work my EA. How can I detect the number of deals open for each symbol? I found the indicator iexposure the Deals column but I can not extract the code to insert it in the EA.
int start(){//PIYASADA EMIR YOK ISE İKİ ADET EMİR AÇ//MEVCUT BIDIN //20 PIPS ASAGISINDA SATIM EMRİ AÇ//20 PIPS YUKARISINDA ALIM EMRI AÇ//1000 PIPS TP //500 PIPS STOPLOSSRefreshRates();double XAL=MarketInfo(Symbol(),MODE_ASK);double XSAT=MarketInfo(Symbol(),MODE_BID);double AL=NormalizeDouble(XAL...
I have read the classical way to do so on the internet forum. But when I download the M1 data, I have a gap of maybe one week of missing data, (one month back maybe). Therefore my indicator don't work anymore, and my platform turn to be unusable. So can you explain the good way to download data ?...
[Deleted]
Hi Everyone, I have a list of condition say (A, B, C, D, E, F). I want to write a code that say: If 2 or more condition in the list are met, then return value=1. If I try to do the regular IF, it will be very long since there are many combination. I wonder if there is any other better approach. I...
[Deleted]
hi i have problem with running experts in the mt4, i run 4 experts in different charts with different symbols, one expert open positions but other not may somebody know the reason and how can i fix it thanks.
[Deleted]
I've got problem with indicator that is searching for candlestick pattern - shooting star. Everything goes correct until I change time interval on chart - arrows are in bad places. Can someone help me and tell where is the bug? #property indicator_chart_window #property indicator_buffers 1 #property
Good Day. I have tried to use DDE on the client to get quotes from mt4 to vb.net but the only problem with DDE is that, it only works for one client only because when i tried 2 terminals with different brokers, the result is not good. There is one article here that you can use named pipes. Is there...
this is correct, or not???????/--------------------------------------------------------------------------------------------------------------------------------------------------------//+------------------------------------------------------------------+//| expert start function...
[Deleted]
Hi everyone, I am running my EA on MT4 provided by 2 different broker (FXCC and AxiTrader). Both are non-ECN, 5-digits broker. I also set my slippage to very large values, ranging from 10 to 1000. On backtesting, the EA runs properly on both brokers, with trade opened and closed at the same time....
hi, all does anyone have a clue why i cant run metatrader as administrator. if i do. it doesnt want to connect to the server. no problem with my firewall...etc. so any ideas. gr, Tom
Hi I am trying to write in file but every time is only able to create but unable to write in the file... Please help I have attached the script.
The price acton set up The pin bar trade setup is the most effectiveprice action trade setup there is. It is an extremely powerful setup when usedcorrectly. Many trader only trade off of a pin bar formation and they are verysuccessful traders. In this lesson you will learn what a pin bar is,...
Hi Forum, I use many horizontal / trendlines in my chart and sometimes I like to change the colors of them. It is really much work when you have to do it with 15 charts. Therefore I wanted to know if it is possible to set a new color for all lines in the chart with a script. Maybe somebody already...
I mean some time I create an object, a text, and set it on a bar's open time and high price; some time later, I want to view this bar's information, open price, open time and so on,so shall I get this information when I just know an object 'xyz' was on it without any other information? if ok, how?