MQL4 and MetaTrader 4 - page 1199

  Deleting Objects  (2)
I was writing a deinit() to try and delete all the objects associated with the indicator that created them on close of that indicator. All the objects created by the indicator start with the letters T16 followed by some other identifiers including a number for each arrow. I wrote this short code to
[Deleted]
It happens very often that we get unwanted calls in our life but you can do nothing about it. It maybe someone you are familiar with or someone you never know, it maybe a relentless salesman, or an annoying ex, or a harassment call from freaks. It is disturbing, it is torturing, you are totally...
[Deleted]
Function "Trailing_Stop_Handler" is not referenced and will be removed from exp-file Function "Trailing_Stop_Handler" is not referenced and will be removed from exp-file Function "Trailing_Stop_Handler" is not referenced and will be removed from exp-file The above where WARNING message...
Please coding of EA i have done keeps opening same position as the one closed before it instead of waiting for the next opposite signal. i want order history control that will select the last closed order that has same ordertype andsymbol with that of which is to be processed by the EA for making
can someone help me with an indicator. 3 vertical lines drawn on markets open. ( adjustable time would be a good idea as times of metatrader changes from broker to broker ) Tokyo - London - USA Using 15 mins chart, the high and low is marked with horizontal lines. eg. using FXCM... a screen shot...
New article Using Pseudo-Templates as Alternative to C++ Templates is published at mql5.com: The article describes a way of programming without using templates but keeping the style of programming iherenet to them. It tells about implementation of templates using custom methods and has a ready-made...
Hi Programmers! Can I check whether the chart used by the EA is the active chart in the MetaTrader? Thank you. Relative
Hi All.. Is there a way for an indicator to get the current time when using the testing Platform using visual with FromTo Dates?An indicator by itself does not know whether its running in TestMode or not(To my knowledge, that function works for EAs/Scripts only). I have had to resort to a dummy EA...
[Deleted]
I was wondering if anyone has written an indicator in MQL4 of the Kase Peak Oscillator (KPO). I have found mql4 codes based on the following algorithm: KPO = RWI(high) - RWI(low) where RWI(high)=(High[0]-Low[n])/ATR*sqrt(n), RWI(low) =(High[n]-Low[0])/ATR*sqrt(n), and ATR is the average true...
Hello !! Once again about RSI. I looked around on this forum for RSI EA and ….. it is a lot of it. Some of them simple – some of them serious robots. But …… I couldn’t find RSI EA which cross level 80 from the top to the bottom and level 20 from bottom to top. . I am not sure you are...
[Deleted]
Hi I have an EA that uses ATR: res = iATR(Symbol(),Period(),theAtrPeriod,shift);      return(NormalizeDouble(res,Digits));   return(res); I have comments on the chart showing what the EA is seeing, I have found that sometimes the EA misses a trade because it was showing a very slightly different atr...
  BUY PROFITABLE ADVISOR !!!!!!!!!!!!  (193   1 2 3 4 5 ... 19 20)
Hello all. I started to write an Expert Advisor and started testing Bill William on history. I've been thinking, there are profitable Expert Advisors, so I don't have to reinvent the wheel. ( Besides, the Championship has even been organized). If I have a developer who yields 50% per month on demos
Hello! Please advice on how to change these values or somehow else squeeze chart. Here is what I am trying to achieve. I apply template to a chart and my resistance\support levels look just fine on Daily Chart, but when I change timeframe to let say 1H, windowspricemin and windowspricemax are...
Hi, I don't know what is wrong. I can't close the order. There is last ERROR nr 129. Can you help me?    for(pos = OrdersTotal()-1; pos >= 0 ; pos--) if (                    OrderSelect(pos, SELECT_BY_POS)                                     &&  OrderMagicNumber()  == 4...
[Deleted]
Hi I am trying to save the final candle of the trading day to a csv file, logging the currency pair and the candle type ie bull, bear, neutral. I have used this code below and modifed it for my use but I am new to coding and cant seem to get it to work, please can anyone help with this?...
How can I tell if my EA is running in the Strategy Tester or in realtime data? When I run it for real my EA adds lines on the chart and activates individual windows when trades look propitious - I think it would be inefficient for it to do this if I run it in the tester. To prevent this I'd like to...
New article Random Walk and the Trend Indicator is published at mql5.com: Random Walk looks very similar to the real market data, but it has some significant features. In this article we will consider the properties of Random Walk, simulated using the coin-tossing game. To study the properties of...
Is there a way to work out the most common max reading pf the indicator? Alternatively, how can I get a mving average top show on this indicator window? ...or last option a bollinger band around the indicator?...
Hello every one, I want to know if an ea can be programmed to trade with different settings and different charts at the same time. For example say parabolic sar setting 0.01 and 0.04. at the same time. also can it trade 5 minutes 15, 30, 1 hour charts simultaneously.
[Deleted]
i just tested the MACD.MQL4,but the terminal shows:couldnot send order,error 131.who could tell me why? the code is written by metasoft,isnot wrong?TKS!
I have an EA that produces an array of future prices. I'd like to be able to plot these on the chart to ensure the EA is working properly. Is there any way to do this, similar to loading the array into an indicator buffer-type object, or do i have to draw a bunch of small lines with ObjectCreate?
[Deleted]
Hi, If someone could help me finding or coding this indicator I will appreciate your help. Im looking for an indicator that play an alert and popup a message when open a lot of x size (previously defined). I already have an ea, but the thing is that I have it running in 10 pairs, so it will be...
New article Use of Resources in MQL5 is published at mql5.com: MQL5 programs not only automate routine calculations, but also can create a full-featured graphical environment. The functions for creating truly interactive controls are now virtually the same rich, as those in classical programming...
[Deleted]
MQL is so complicated. I need help. I need a script that will execute a stop loss at a set price if that stop loss has been hit two more more times within the last 5 minutes. For example, (this is a long position), wick of candle hits 1.9000 but open and close of the candle are at 1.8999 and 1...
This thread is the "second series" of the series of the same name. I suggest that all Eurovette activity be moved here. The announcement about moving the thread here can be found here
[Deleted]
Hi guys, I am coding a simple gap indy for myself and am wondering how to get rid of the extra zero's at the end of the usable numbers... have a look at the pic and you will see the extra 0's. I have tried normalizedouble, mathround and mathfloor to no avail. any help much appreciated....
Dear all FOREX traders, I am making this topic in the exclusive section after considering that all of you have at least one year experience in forex trading , Hope newdigitalagree with me for putting this topic here. A bunch of newbie or inexperience traders are trying too hard to find the PERFECT...