MQL4 and MetaTrader 4 - page 412

Hello, I want to use ArrayCopy() on an array of pointers but it looks like i'm not allowed. It generates an error saying that array cannot contain objects. Is it not possible to use ArrayCopy() with arrays containing object pointers? MyObject* arrTarget[];void Copy(MyObject* &arrSource[])...
Does anyone know if there is an excel plugin similar to the Bloomberg plugin?...would make my life so much easier rather than dde/etc I know mexceltrader do one but I’ve heard bad things about them transferring your data to a third party as you trade
i am doing an optimization more than 10k passes. What if my PC hang or rebooted during optimization? Do i have to do it all over again? Does it have save the result to a log file?
[Deleted]
Is there any way that one can save a test done using the strategy tester of met4 when having to reboot to update the OS or when the PC is shut down for the night?
[Deleted]
hello guys.  I have a indicator in main windows. Is that possible to get the indicator-file-name in the "indicator" dir? I can only get the shortname of the indicator using "ChartIndicatorName()". but the shortname is not equal to the filename... confusing ...
Hi, I have written a script  below to determine the lot size of an order based upon the stoploss size. I am using mt4 pepperstone using the standard demo account (leverage 500, if that matters). However, I get the same lot size, irrespective of the stoploss value.  Can someone tell me what I am...
Hi all, I've open a demo account of mt4 at FXPRO, and I don't like the default template of FXPRO mt4 demo platform. When I open a mt4 demo account at another broker (quite wellknown), I've catched this template (attached screenshoot below), it's attractived me quite alot. Who know the name of this...
need help for newbie, i use 2 custom indicator (Please find the attachment) These 2 indicator have output arrow drawing. Question: what is the code if i want to convert that signal into variable? like whenever the signal come the variable automatically add 1 thanks before for any help
Iam  facing same problem with iCustom indicators. Iam using super trend indicator and Iam calling using ST2=iCustom(Symbol(),0,"SuperTrend",24,3.0,1,1). It works well in live and demo account when i call them, but does not work well on back testing. Can Anyone help me on this pls. Iam clueless. I...
Hello, There is this Relative Slope by Dimitris Tsokakis and am trying to plot it in MT4 but with no luck. Am only able to get the first buffer to plot and not the rest. Please kindly guide. Thanks ! K=EMA((H+L+C)/3,10); S1=2*(K-REF(K,-1))/(K+REF(K,-1)); RS=100*EMA(S1,3); Plot(RS,"RS",colorGrey40...
I created a simple DLL that reads a text file (http //: mysite.com/miofile.txt) from a server. Everything works perfectly but in only one case in a Windos 7 PC the DLL could not communicate with the server and this function returned false. In addition to enabling DLLs in the MT4 you need to enable...
I try to pair position Buy and sell by hedging.  position Buy condition if profit < 0 and not have sell position to square --- open sell and pair it. if profit < 0 and  have sell position to square and opentime > my expect time --- close this pair(buy and sell) now my code open and pair just 1 pair....
Could anybody please assist me as I don't know where I got this code wrong. I am trying to create a  function named "OrdersTotalSymbolOpen()"  to check for open trade on any of the following pairs namely EURUSD, GBPUSD, USDJPY, EURJPY and GBPJPY. It then assigns value 1 to such pair otherwise the...
Hi All, I have this error, "Terminal.exe - Initialization error 4", when I tried to open my Meta Trader 4 platform. Anyone know how to fix this issue? Thank you.
Hello All, first post :) I have an indicator that writes new arrows to a csv: if(id==CHARTEVENT_OBJECT_CREATE){Print("object created");string fname="WRITE2CSV_"+Symbol()+".csv";int handle=FileOpen(fname,FILE_CSV|FILE_WRITE|FILE_READ|FILE_SHARE_WRITE|FILE_SHARE_READ,";");Print(sparam);int...
Good day all I just have a simple request The attached indicator seems to be messing up. When loaded onto a chart and left to run some signals appear , but when the platform is restarted some signals appear in the past that hadn't been printed while the indicator was running And it doesn't seem to
Hi there, I want that the mouse pointer show me all the time, permanently in a labeL all the info. When you slide over the chart with the mouse pointer and if you stop for a couple of seconds over a candle or an object, just then appears for a few seconds a label with the object description. I would...
[Deleted]
Hi there, It is possible disable the object description label? (it appears when mouse-over on the object) If I set a void string through ObjectSetText() function, the onmouseover-label doesn't hide itself, but anyhow display (a) the name of the object and (b) the price value of the mouse-pointer...
I can't write the service with the shadow of heiken ashi can someone help me write it? {         double LowerBB =iBands(Symbol(),timeframe,PeriodBollBand,devBollBand,0,0,MODE_LOWER,1);         double UpperBB =iBands(Symbol(),timeframe,PeriodBollBand,devBollBand,0,0,MODE_UPPER,1);                  if...
when compile EA ,the terminal was shut down ,and I get this infomation ,how to solve it ?  thanks . 问题签名:   问题事件名称:    APPCRASH   应用程序名:    terminal.exe   应用程序版本:    4.0.0.1031   应用程序时间戳:    00a97c00   故障模块名称:    terminal.exe   故障模块版本:    4.0.0.1031   故障模块时间戳:    00a97c00   异常代码:    c0000005   异常偏移...
Been struggling for hours now on apparently easy task. If someone could point out my error, please? I would like to use StringConcatenate with "iOpen" (or iTime, iHigh, iLow, iClose). EURUSD_M1_OPEN = iOpen("EURUSD",PERIOD_M1,1); // this is the default way, working. Instead, I would like to avoid...
Hello Traders,Is it possible for me to rent up to 15 different or separate VPS at a time for all my available strategies?I hope to hear from anyone shortly.Thanks
If there is no data for a time range(for example not any tick in one minute), Do not display candle or display it?  
hello i have a spread recorder indicator that it is not working on new version of mt4 anymore can anyone fix it? thanks in advance
Hey all! I was messing around on a site with some free stuff what a friend sent me, and I found a PointZero indicator for free that drew my attention and I noticed something that gave me a surprise, the "cracked" indicator showed a comment on the chart that says "Free On <>" and I then thought that
[Deleted]
I've been working on this for a while today and I just can't find my mistake! I modified an existing script that exports MT4 data and changed it a little. I added more pairs and removed the moving average export functionality. Now I'm getting an error stating the parameter count is wrong. I've...
[Deleted]
Hi Guys, something strange is happening with my EA. I am using Alpari MetaTrader . I used to use more than 1 lot, to be exact 15 lots, for 6 months, to trade using my EA. But, since last week, if I use 15 lots it will not work, but, if I use 1 lot only it works. I contacted Alpari and they told me...
Hello, I am trying to design an EA to trade on divergence between the prices and RSI values. I have read this article https://www.mql5.com/en/articles/1456 and borrowed some logic in my coding to transfer an indicator code into an EA code. However, I have two questions and I would greatly appreciate...
I want to know the profit for the last order. The last (newest) closed order number  is OrdersHistoryTotal() -1 Is this correct? So, I coded like; I think I don't need to use FOR function because I just want to know the last (newest order information only). var = OrdersHistoryTotal() -1...
I want to put Close[0] price value into buffer. I coded. #property strict   #property indicator_buffers 1double Buffer[];int OnInit()  {    SetIndexBuffer(0,Buffer);}void OnTimer()  {     Buffer[0]=Close[0];} But when I checked buffer1 , it is EMPTY_VALUE. What am I missing?