MQL4 and MetaTrader 4 - page 732

To post a new topic, please log in or register
Hi all I need to create some sort of tolerance code to be + or - 2 or something similar ? Here is what I did so far bool tweezerbottoms = false;         if(Bid < B && Low[2]*pips2points==Low[1]*pips2points)            {            tweezerbottoms = true;            if(tweezerbottoms ==...
Dear All, This is ruining my day! I have had this funny indicator that has crashed the MetaTrader platform.I have deleted the whole metatrader and deleted everything else from C/, After then I downloaded MetaTrader from MetaTrader website but I just can not open the platfrom, if I want...
How does the report calculate the maximum drawdown if there were NO losses ? Lets say an EA shows 100% profitable trades, why is there a maximum drawdown showing a % and report when there was no losses ? Does it memorize if there was some drawdown on a trade even though the trade may not be a loser...
First of all i´m a newbie... Right now I´m running the strategy tester and I want simulate a month with 1 hour resolution. This takes forever... Is this normal? If I use visual mode I can see every tick is used, for the hour... I don´t mean this is wrong, that the tester is accurate. But I just...
Hi I am new here and this prolly a silly question. I would like to script and testthis weekend. Cause the market is closed over weekend I cant. Is there softwareor something to simulate past data? Anybody got any ideas? L.
Hey I'm relatively new to forex trading/metatrader, so I apologize in advance if I'm asking amateur questions. I've programmed a bot which I think is doing well, but I'd like help from some pros on interpreting the report. For example, what should my profit factor be at? Should I care about modeling...
Hello! I can't get the SpreadGenerator script to work for me so I can backtest on weekends :-( When I run the script on a chart it says that the new symbols.sel file has been saved in the folder "experts\files" but when I open the folder it is empty?? Does anyone have a solution to this issue? or...
2 metatrader patforms work correctly on a virtual windows server, on the remote desktop. but the publishing just starts once when the metatrader is started. the statement file appears in the webspace, but empty, 0 bytes. a click on test in the publisher window has no efect, not even noticed in the...
  Nice ea (2)
Hey guys I need some help I am trying to develop a code that will do this-- at the open of the ny session, london session, sydney session EXACTLY, I need it to take an order cancels order thing of 30 pips on both ways. Then I want the triggered order, once it has been triggered to have a stop loss...
Dear Forum, I have seen many in the forum are struggling with this error. As I have understood the other threads, the error can be cause by a: setting a stoploss value too close to the current price b: a wrong number of digits after 0 Concerning a: As I have understood. MarketInfo(Symbol(),...
I do not know whether I can ask for an advice on MT4 programming. Is it possible to achieve the following ? 1) Get the (x,y) screen coordinate when a mouse button is clicked. 2) Convert the (x,y) screen coordinates to the corresponding Price and Time Thanks. Best regards, Tiffany
Hi I am trying code EA it should open position once price goes 10-15 above 3 bands but not able to figure out how to check # of pips after its above upper band like below code will confirm that its above upper band but after this condition I want to wait till it goes 15pips up and then open...
This is strange, but proberly a newbie problem. When I first run my indicator no lines is visible, but after a minute they start to show (I have 1 min resoloution). This is irritating because I have to wait for a hour before everything works as it should... When I run my other indicators they draw...
Simple request if someone can help... I just nedd code for two cordinates to draw rectangle, 8AM and 9AM
Hi, I have several very good scalping systems, but not surprizingly they're only good when spread is (very) low. I'd like to optimize / adjust these under 'adverse' spread conditions in the hope that they will then work well, and work even better when spread is lower than when optimized. The way...
Hi everyone! I have been trying MT4 and MT5, for couple of days. While checking around charts, I see on MT4 always shows up a extra bar compare to MT5. Here I toke a screenshot of the chart of both applications. Here is the MT4 AUD/USD, candlestick D1. And here is the MT5, same chart, D1. Its...
  Exit Function (19   1 2)
I have created this exit function to make an EA close whatever positions there when an order of the opposite direction is opened by the same EA. void ClosePosition(int OP){   for (int i = 0; i < OrdersTotal(); i++)   {      OrderSelect(i, SELECT_BY_POS, MODE_TRADES);      if (OrderType() <= OP_SELL...
Hi Is there any way to identify 3rd M1 bar of a new M15 candle? thanks.
Hi, I have an EA which opens trade, but I am not able to figure out how to do trilling on it can someone give me code to do trilling as fallowing condition 1. once i am xx pips in profit I want to close half position and put stoploss on 1 pip profit ex: if I buy 1lot at 1.4400 once market is at 1...
I have an EA which I have written and typically I have it running on several charts at a time. Each EA has an 'on screen ' display in the form of a comment created in the EA and shows current and history contracts for that instrument - together with some of the parameters I have used. I have an...
Hi, Could someone please help to explain why below array assignment is wrong And what is the correct way of doing it many thanks in advance. double bandU    =iBands(NULL, 0, 20, 2, 0, PRICE_CLOSE, MODE_UPPER, 0);double bandM    =iBands(NULL, 0, 20, 2, 0, PRICE_CLOSE, MODE_MAIN, 0);double...
prejudice are starting out and wanted to know how and the code for a smallindicator that should make the difference between 2 moving averages
Hi gurus, Regarding the sl and tp, and taking into accoun this is altered for 3 or 5 digit brokers ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3*pips2points,Ask-StopLoss*pips2dbl,Ask+TakeProfit*pips2dbl,"Unfinished_POS_agent_1min",MagicNumber,0,Green); Would I simply use A and D variables ? is it that...
Hello, Unable to find file test1.csv on my Windows 7 laptop after executing the following function using MetaEditor Build 409. I'm executing this as a script. the mq4 file is in folder Scripts. Experts tab and Alert window shows file test1.csv was opened and closed successfully, no errors. I'm...
Hellow, traders! Is there any way to reverse chart? I want to see price action in inverse. Thank you for your help. Good trade today!!!
Hi, Does anybody has indicator related to account balance? I need an indicator that alerts me when there's change in account balance. If account balance is decreasing, then play sound "A", and if decreasing play sound "B". Just simple as that. It seems fun hearing sounds from EA's trade. :) Anyone...
Hello, I need to test an EA on an account with a small initial deposit. For a reason I can't understand, Alpari limits their demo account to a minimum of $3000. Can you please recommend me an alternative copany that will allow a demo account with $1000 initial repository? Thank you
I opened a DEMO account 4 days ago with a META TRADER (IAM FX)....and within the last two days when I open the DEMO I see a "NO CONNECTION" at the bottom right side of the window. I cannot log in or see any active trades or time (obviously because of the no connection status)....So WTH is going on?...
Hi, I noticed some strange behaviour in MT4's backtest speed. The speed highly depends on the data used. I'm using two different sets of data spanning several years. Both set's are rather high quality M1 data spanning the same time period. I'm using two installs of MT4's most recent build and I have...
New article Dr. Tradelove or How I Stopped Worrying and Created a Self-Training Expert Advisor is published at mql5.com: Just over a year ago joo, in his article "Genetic Algorithms - It's Easy!", gave us a tool for implementation of the genetic algorithm in MQL5. Now utilizing the tool we will...