MQL4 and MetaTrader 4 - page 556

Hi Folks, Last week a position went somewhat wrong and I wanted to stop my EA, but as my EA sits on a VPN, I was not able to stop it. Can someone advise me if there is a way to send an email kill message to EAs? Thanks,  
  Candle Change  (4)
Hi everyone, I'm looking for a push notification  after the current candle closes opposite colour of the previous candle (ie. bull to bear or vice versa). I've searched but cannot find one. Thank you.
Hi, Is it true, that mt4-Comment() cannot show the Wingdings (while it show e.g. the greak letters like: α,β,ø,µ while others like δ ε appear as d e) on the chart in an easy way like: string OK   = WingdingToString(252),        NO   = WingdingToString(251),        Bomb = WingdingToString(77),...
How do you get the PIP's in every ticks? Is there any standard way to calculate the PIP? What do you think of my formula? I used the formula for 5 digit broker:  (close - open) * 10000 /* Example: (1.12555 - 1.12545) * 10000 = 1 PIP */
Hi, I am trying to import a dynamic library coded in C++ in my EA. Only problem is that despite the functions being exported, my EA does not load them properly. The C++ code is as follows: CONSOLEAPPLICATION2_API bool AsciiToUnicode(const char * szAscii, wchar_t * szUnicode) CONSOLEAPPLICATION2_API...
Hi,  I'd like to find a way to download automatically daily historical prices from MT4 to excel. Is it possible to use a DDE formula ?  Thank you ! Cheers  
  tick data in strategy tester  (13   1 2)
Hi, I amnew to this forum and have a couple of questions. I don’t know if this has beenasked before, so sorry for possible duplication. I will have difficulties toname the English expressions for the interface since mine is in German. Maybeyou can help. Besides I use MT4. Thesequestions mainly...
[Deleted]
Hello, I am new to MetaTrader and have been trying to write my first EA. I've done plenty of programming in the past (Java, php, etc) so I have no issues with that aspect, but I've been really stuggling with things like money management, optimising trade entry and exit. Anyway, to cut a long story...
Hi, I wanted to develop an indicator that when RSI is below 30 on H1 interval I can see blue arrows on other intervals - ex. M5, M15, H1, even H4. But I have a problem - on live data it draws correctly - but when I attach my idicator to the window it doesn't show arrows in some places on H1...
[Deleted]
Hi, i have an issue. I add text to my chart and then switch timeframes, come back and the text is gone. How can i make it stay?
  converting ask to a double  (15   1 2)
Hi guys,   so i'm attempting to create code for a Take Profit on a buy trade. code will be a user function to be called upon when order placement happens. The rules are: Take Profit to be set at the closest institutional level 00 , 20 , 50 , 80 as long as it's more than the Stop Loss ie greater than...
Hi,   I am running a simple grid/martingale EA.  However, on trades that are "old", when the price eventually returns to the levels where they should become profitable, ie the take profit price should give a positive amount, the EA produces a large cash loss.  This loss is proportionately bigger the...
I would like to create a lots list if there are consecutive losses. Example: 1 trial - lot 0.01 - Lost. 21 trial - lot 0.02 - Lost. 26 trial - lot 0.03 - Lost 31 trial - Lot 0.07 - Won Then, since the ea won back to the 1 attempt. Remembering that lots do not follow a multiplication order or...
[Deleted]
  Hi guys, how can i fix this?  
  Decrypt  (23   1 2 3)
Hi Gurus! Here is the mql example of using of CryptEncode/CryptDecode. Based on that example, let's say: string my_string=ArrayToHex(dst); I'd like to get the original text string ("The quick brown ... ") from my_string. How can I get it? Thank you 
  Template problem  (1)
How to revive "Popular" template in the Templates? I somehow removed it
Hello brothers, I would like to know how to convert a order commission + swap value into PIP and I need to add that PIP value with Open order value... (So i'll get exact open order price value) Thanks in Advance.
Hi Guys,  I have been looking for an EA or inidcator that can plot or display RSI support or resistance... I have been searching and everytime I get the support and resistance for the cadle chart , I was hoping for a similar one as below but for RSI window:    
How to make the function not to return 0 val when Vol >1 ?? double MTRd() { int i; int n= MathRound((MTRperiod-1)/2); if (Volume[0]<1)  // calculate only when the new bar appears {    double c;    double Ext[];    ArrayResize(Ext,0);                //reset old values    ArrayResize(Ext...
Hi, This is my first post, so welcome everyone!  I'm trying to develop a set of custom indicators based on another custom indicator. The custom indicator I want to use is similar to RSI. What I want to do is to check if RSI is below 30 on H1 timeframe. And if it is I want to draw a blue line/ blue...
Hello to all. I would like to bring up a ball, when the Buffer Histogram purple and  Buffer line are not overlapped. the code written by me no errors. #resource "\\Indicators\\price_speed_and_acceleration.ex4" //--- indicator settings #property indicator_chart_window #property indicator_buffers 1...
I have the MA Croosover alert indicator which will alert when two moving averages cross. It plays an alert sound and sends an email. The indicator works very well, but once the alert has been triggered, it keeps repeating the same alert over and over again. Could someone please help me adjust the
Hi, I am currently encountering this error when loading my dll coded in C++. What could be the problem?  Thanks. 
Hi,   I want to know how many contracts i can take with my account. If i use :  NormalizeDouble((AccountFreeMargin()/MarketInfo(NULL,MODE_MARGINREQUIRED)),0) the answer is  (int)0.89, so less than 1 contract but i can buy 1 contract . Why ?    Thanks for your answers. 
Hello,   i'm pretty new to programming, i'm studiyng a Renko Expert Advisor, it converts a normal chart in a Renko chart. File is attached, i'm understanding pretty much everything, expect this:   void UpdateChartWindow() {   if(hwnd == 0)   {     hwnd = WindowHandle(sSymbolName, RenkoTimeFrame);...
Hi,  i have two identical instance of MT4 where i run some backtest. Same settings, same historical data. One of them was connected to a broker and the restart without credentials just to allow MT4 to use microlots. Now some strange happens in the MT4 that has been connected just one time: With same...
Is it true that I cannot define e.g. for Comment(..) leading zeros  before the decimal point. As I want to show percent-numbers which range from 1.1% to 999.9% and I want to be able to see mat the chart (with Comment(..)) 001.1% .. 009.9 % .. 022.2 % .. 123.4 % .. 999.9 %. I tried StringFormat(%03...
I've been using an EA of my creation for a few years now and it always worked quite well (at least in terms of doing what was expected of it, results are a different story!).. I've only used it on currencies so far without issues, but recently I tried to apply it to XAUUSD The result is that the EA
I've created an indicator that will plot horizontal lines on each tick. On each tick, I'd like to find the line that is closest to the current price in order do other things (plot vertical line between those 2 points, know how to do that.) I figured the best way would be to just loop over all chart...
[Deleted]
  what is the right way to learn?  (210   1 2 3 4 5 ... 20 21)
Hi all! I am very new to forex. Can you tell me the right way to learn and what to learn