Download MetaTrader 5

MQL4 and MetaTrader 4 - page 273

To post a new topic, please log in or register
bool clbuy,clsell;//+------------------------------------------------------------------+//| Close Signal                                                     |//+------------------------------------------------------------------+void start() //CloseSignal(){      if(OrdersTotal()>0)      clsell...
Hi,   I'm asking for comment or conceptual comment on the changes in Mt4 (600+) regarding the OnTick() versus Start() command, reaching beyond the limited help file details I've found.  Not expecting specific answers below in every case, but to try to explain the confusion I'm finding if a couple of...
hi, i am new in forex and also in this forum.i dont what to do and how to do? i have seen adds that posting on forum is a source of earning dollars.please somebody help me.
Hello dear Coders, could you please confirm whether or not the following code, which i conceived in the night in bed, will extract the pair, which is not from the chart where this EA is placed but has the same magic number as the pair of the chart? bc_cnt and sc_cnt are the buy and sell counts of...
How do you find the current indicator width? I want to preserve the changes rather than go with defaults.             color tmpcolor1 = indicator_color1;            color tmpcolor2 = indicator_color2;            color tmpcolor3 = indicator_color3;            color tmpcolor4 =...
  Serious Bug in 7.11 (16   1 2)
My MT4 got updated by broker to 7.11 and for some reason it does not work and I cant figure out why. It just keep looping somewhere, does not display any error and in general I must remove my indicator and restart. ( I suspect some memory problem) All prior releases i.e. 6.70 did worked a OK. Is...
Hi All,   Is there a way to go to a specific point in chart based on the technical value/pattern (with option of moving onto the next pattern)  For ex:   PSAR  moves from below to above the existing price on 01.09.2014 and the same pattern occurs on  03.09.2014.   Initially when i run the code, it...
In my EA, I am placing a pending stop order to enter based on indicator criteria. If after placing the pending order, price moves against me, I want to modify my pending entry price to the high/low (depending on Long/Short) of the last bar. I am getting errors 4108 and 4501 and can't figure out why....
New article MQL5 Cookbook: Handling Custom Chart Events has been published at mql5.com: This article is a logical continuation of the article MQL5 Cookbook: Handling Typical Chart Events. It covers methods of work with custom chart events. Here the reader can find examples of developing and handling...
Hi, I have a problem with a divide. I hope someone could help me.   //---- indicator settings #property  indicator_separate_window #property  indicator_buffers 4 #property  indicator_color1  Yellow #property  indicator_color2  Crimson #property  indicator_color3  OliveDrab #property...
Hello, My MT4 platform with a broker is blocked after the first MT4 window appears, no button can be used (like "files" etc.). There is no connection with the server and the memory of the PC is filled completely! The support told me to uninstall MT4 and install it again, but Windows says that I...
Hi,  I have written an indicator that sends email alerts based on some logical condition. I apply it on many currency pairs simultaneously. Since i want to monitor the markets permanently, I added to the window xp scheduler a task to run and to close the metatrader platform with a given frequency...
Can someone tell me if it is possible to add a 5 min MACD to a 1 min chart and have it look as if you where looking at it on the 5 min chart? By simply changing the timeframe to 5 with in the code yields the desired look on initialization and when I change to a higher timeframe chart and back to the...
The Range bar indicators I have found (so far) makes use of an offline chart to display. How do I combine this with an EA? Attaching the EA to the offline chart? Sounds logical but I have my doubts. And I really like to have one year of data for backtesting
  Build 711 (1)
There is a problem with this version. When loading your own EA's and Indicators in a couple of minutes it hangs up/go dead. Are you working on sorting the issues out soon?
It’s impossible to know floating spread . How to pending  buystop with Bid price ? Thank you
hi ;) first i want to say thx for so much input all of you gave me, my english is bad sry for that ;) i was reading here for years, finally i registered an account, because i got a problem and i think i need your help. im not using the mt4 strategy tester, i calculate the trades and the results "on...
Hello everyone, I tried to improvise the SuperSR 6 a little bit. However, when I insert my code, the Metatrader stop working. I struggle with this problem for a while now, yet no idea why. Please help me. Here is the part has error:    double gap;   double contract=(Contract_Step + Precision) *...
I have an indicator that is crashing Metatrader sometimes, and by using logs, I found out it's happening right when start() ends (it's logging in the last line, and then doesn't log anymore). What does Metatrader do exactly when start() ends? The code is just too big to post it here..
Hi, I used an online EA builder to start to understand the coding but it will not place any trades when i backtest it. Can anyone tell me why please? what should the "EA Generator www.ForexEAdvisor.com" component on the result lines be?   Thanks   extern int MagicNumber=10001; extern double Lots =5;...
Is there a way to draw a single candle on a chart, with either a script or indicator, to represent the current candle for a given currency pair?  I would like to create a chart that displays all of the currency pairs, in one location,  that are offered by my broker, with the current candle of each...
Who can help me by modifying the new Metatrader to portable mode I have windows 8   runnung on a ssd  and the MT4 is running on a 2 TB harddisk, with free space. reason for change to portable is, that can use the folder of the Installation of the MT4 for the logfiles. when starting backtests there...
Graphically, I am able to apply Bands (Bollinger) to another indicator (say RSI).  However, if I would like to call this value in an EA using iBands, it looks like it may only be done with Hi/Lo or Close, not with another input value, like RSI. Do I need to modify the Bands indicator to run on an...
If I use the statement of :    if X = High  then Y = 1; each time X = High, Y will be 1.  Therefore, when X != High, Y = 0.  Which is fine.  But, in some cases, I need Y to remain as 1 to show that a high has been reached.  Tried a number of approaches, without any luck.  Each time X != High, Y = 0...
regarding : 'How to calculate profit from volume and pips' Hi all ! I have a related problem: I used: TextComment =                        "TICK SIZE (in points):                    " + DoubleToStr(MarketInfo(Symbol(),MODE_TICKSIZE) , 4) + "\n" +                      "TICK VALUE p. 1.0 Lot (deposit...
if( OpenOrdersThisPair(Symbol()) == 0 && LotSize_Buy >= minlot )         {          BuyTicketOrder1 = OrderSend(Symbol(),OP_BUY,LotSize_Buy,Ask ,3,                                             0,0,NULL,MagicNumber1,0,Green);RefreshRates();                                                if(...
Hello, I have the problem where no matter what drive I install MT4 the data folder is always located on the main drive (C: in my case).  This is terrible since my C drive is almost full!  I can't store history files so I cannot backtest.  There needs to be a way to relocate the data folder to...
Do I need to create an array if I want to record the MACD signal value each time RSI(2) goes above 90 or below 10?
hello.   Im trying to get the output for the amount of seconds since jan 1, 1970.  The output I desire should look something like this:   1413424764   I can't seem to figure this out, i've been over the documents and i keep getting the date written out such as Jan 01, 1970   or the amount of seconds...