MQL4 and MetaTrader 4 - page 446

To post a new topic, please log in or register
Hi, are here some people that can tell us (me) about their experience with running mt4 on (vps) either KVM with Windows || Linux+Wine or directly Linux+Wine compared to either WindowsServer: crashes, updates, (backtest-) speed, .. Thanks in advance! Gooly
MetaTrader 4 platform update is to be released on Friday, September 26, 2014. It contains the following changes: Support for mobile terminals MetaTrader 4 for Windows Mobile and Windows Mobile SE has ended These terminals will not be able to connect to the new server versions. This decision is based...
Hi Guys,     How do I get the contract value for #nkdz4  USDJPY #CLX4    Is there a function that I can extract the value straight or do I need to do it manually?     ShijiOno 
Hi To whom this may concern, This is only for research purposes and will not used for live trading, the EA is only used for determining a WIN/LOSE ratio in relation to a martingale system Trading Binary options, am looking for a simple answer. We will use an oscillator as an EA, in my example and...
Hi, I want to trade and backtest a strategy which is only working at a defined German time on the German stock index and there are also times in a day which I want to exclude e.g. 14:30. The german dax is running in my metatrader (Brokertime) -at summertime from 6 - 20 o’clock  >> German time = UTC...
OK, so having spent weeks messing around with different data and getting different results, I think I have found a good way to test my open prices only (once per bar) EA. Please note that I do not believe I need tick data for this testing as it only works on m15 open bar prices, once per bar. Step1:...
I am writing my first code and ask, is there any reference to code a " Close an Order When conditions are Met. " An example would be when a open order reverses and meets a moving average ! Thanks to any help. 
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" component on the result lines be?   Thanks   extern int MagicNumber=10001;extern double Lots =5;extern double...
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...