MQL4 and MetaTrader 4 - page 718

New article Indicator for Constructing a Three Line Break Chart has been published at mql5.com: Previous articles considered Point and Figure, Kagi and Renko charts. Continuing the series of articles about charts of the 20th century, this time we are going to speak about the Three Line Break chart...
[Deleted]
Hello! I am running an EA that puts every hour an order wiht random direction and close it one hour later again. I want to run it 1000 times to show that the results are normal distributed.     if(  iVolume(Symbol(),Period(),0) == 1)        {         int num = 2*MathRand()/32768;...
As I want my order to close based upon something like "If( BarClose 1 > BarClose 0)"  for longs, how can I write the section so that it WAITS for "Bar 0" above to close BEFORE checking the comparison?  For a visual example:   In this example above, because Bar 1 Close was GREATER than Bar 2 close,...
double MA1 = iMA(NULL, 0, 5, 0, MODE_EMA, PRICE_CLOSE, 0);double MA2 = iMA(NULL, 0, 15, 0, MODE_EMA, PRICE_CLOSE, 0);if (MA1 > MA2 && ....){Buy=true;} how can I add a min. distance fex. in points after the cross and what would be the best way? signal should be triggered only if the distance between...
Hey guys,   Just wondering if you can offer some insight. I've looked around for answer but have come up short. I have a few different news trading EA's that straddle the current price with stop orders above and below it at a certain time before a news release. Works good, only problem is, once the...
[Deleted]
I'm trying to modify buy and sell orders, but having a problem.  When I'm trying to modify a buy, my code is modifying the buy, not only by the code that I have for modifying buys, but also by the code that I have for modifying a sell.  Which causes my TP to decrease rather than to increase.  Not...
[Deleted]
I dont know why, buy my plataform of Metatrader 4 for Windows 7 has incorrect price. It is always aproximatly 10 pics under the real price, comparing with the plataform in the Ipad or in an Android Mobile.  I dont know how to fix that problem, but it is imposible to use it because it draws diferent...
Hi im new in this forum and i can not do than the EA buy in the open the candlestick, therefore very expensive purchase and sell very cheap //+------------------------------------------------------------------+//|                                              Ichimoku-Simple.mq4...
Hi guys I run many demo accounts at the same time (testing EA's) and get confused with only being able to see the Account Number on the MT4 platform tabs. Is there any way that I can change the "Acc. Number" to something more appropriate. Hope this makes sense.... Thanx MikeT 
  Correct brackets/bracers {}  (16   1 2)
Hi have an EA question, what is the correct way of using icustom. Why i am asking is becuase both ways are working for me with no issues.? :S Like this? int start()  {        int n, i;   double p0, p1, p2, p3, p4, p5;   i=0;      while(n<5)      {      if(p0>0) {p5=p4; p4=p3; p3=p2; p2=p1; p1=p0;...
  What's wrong with my algo-trading?  (86   1 2 3 4 5 ... 8 9)
Greetings gentlemen! Just recently started getting into robotics. The systems are unpretentious, but have some logical basis (if increased by so much %, then buy, etc. - price action can be said). There is no sense in giving codes. I don't use indicators at all due to my conviction in their
EUR/USD and daily charts only.  Backtests really well but uses a large stoploss all the time, I would like help to reduce the risk on trades.  Any suggestions welcome. //+------------------------------------------------------------------+//|...
[Deleted]
Good Morning. I am looking for a mql4 programmer, who resides in Australia or England, for continuous Jobs. Somebody interested?
I am relativily new to programming and trying to learn by deciding what I want to do and then researching and investigating how to do that one thing.  I learn a lot and find it easier to learn with real world application. I want the ADR(20) in the buffer for each candle, for a defined session.  I am...
I want to use a custom period multiplier starting from a candlestick that I specify rather than the current candlestick. For simplicity lets say there are 11 bars in the current 15 min chart with the 11th bar being the most recent bar. I want to see how a chart looks if we combine 3 15-minute bars...
[Deleted]
Hello, I sometimes open manually position and i would like to know if there is possibility to close automatically my open position exaclty 2 or 4 hours after i have opened them Or maybe find a way to close them when the bar is finished when a new bar opens. Thank you fo information Emeric
These (BackTestings, Indicators and EAs) are consuming about 100 GB in my Pc, but when I check the MT4 folder, this only have 16 MB size. I entered to this folder anyway for check but I didn´t see anything of big size, and I didn´t see the archive name of the EAs I designed. ¿Somebody know where is...
[Deleted]
Hello everybod I hope someone can help me or point me in the right direction. I want to code an indicator that shows the history of the account balance. The logic is fine but it does not spread over the whole chart. I hope this screenshot makes clearer what i need.      My lack of english makes it...
Hi, after I realized a problem of the way mt4 is painting a second indicator in the same indicator sub-window: If you apply the ATR-14 at the chart (extra sub-window) and you pull this ATR again from the Navigator in this window and define a 7-Period, you will experience that e.g. the ATR-7 is...
My old and new platforms do not load in the required C:\users\your name\appdata\roaming\Metaquotes\Terminal…) but in the old C:\program files\MT4 terminal. In fact I can't find the required chain in my PC at all. All platforms are of course build 670. I just downloaded a new platform from a new...
[Deleted]
Hello, I installed the mobile version of the Metatrader 4 platform succesfully on my phone. I used it a while with my demo account. Now I want to go live and I wanted to clear all te old messages (notifications). So I did, but now my whole message blog is gone! Now I can receive only one...
Is it possible to single step through Backtests? If yes, how? When I set Breakpoints in my EA and press F5 I get a new Window and life ticks. Instead I'd like to get ticks from the back test engine. Is this possible? Regards
Are there any indicators or (android) apps that allow you to Chromecast Forex Charts?  (with or without MT)   I realize there is a Chrome add on that lets you Chromecast your browser content but I'm looking for a more elegant charting chromecast app that preferable works with MT4.
hello, Attached is the file containing the following errors: ';' - unexpected token Reader Delay.mq4 48 62 'handle100' - constant expression required Reader Delay.mq4 48 7 '{' - some operator expected Reader Delay.mq4 47 7 expression has no effect Reader Delay.mq4 46 47 expression has no...
[Deleted]
can I DLL retrieve AccountNumber so it's use can be restricted?
Please help me with this indicator which provides buy/sell audio alert. I try to do some modification to this indicator in order write a file and run a external .EXE file. The write file code is working fine but once I load the indicator it just open the  so many .exe until the computer is hang. How...
Hi, Why does OrdersHistoryTotal() show one more than the real value? If I have say 12 closed trades, OrdersHistoryTotal() shows 13, even on a brand-new and "empty" account it shows 1. Why? Is it a failure or am I wrong? Thx
Hi. I've just downloaded MT4 for Android and I'd like to configure the RSI indicator so it shows a level-50 line (instead of those two default 30 & 70 levels line). How can I do it? Any help will be very appreciated! Regards, Bruno 
Hi Forum, I want to check if the EMA50 is above the EMA100 in the current displayed timeframe and additionally in the D1 timeframe. The current timeframe is checked correctly but there is a problem with the D1. I think that I can't use the variable i when checking the D1 timeframe. When I use this...
[Deleted]
  Help needed with my EA  (12   1 2)
Hello,  Does anyone know how to close an order after "X" bars have passed. The catch is, I only need it to work on the Strategy Tester (because I need it for my grad paper and I don't have enough time to run it on live) and not on live data. In live data I found that I can use time as recommended by...