MQL4 and MetaTrader 4 - page 1040

To post a new topic, please log in or register
Hello my friends 1590 pips in two day expert.fx@hotmail.com om
  inavlid price (5)
I get an invalid price error when the target inhere is set as 0.00000 ANy ideas why? A zero target should just be sent without a TP? int ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,NULL,SenkouStop,Target,DoubleToStr(Period(),0),255,0,CLR_NONE);
Can anyone tell me how can I know when a MT4 begins calculating data and switches to a timeframe ? I want to reset my tick counter every time MetaTrader switches to the next bar or time frame? thanks
Hello! My name is Josef and i write from Austria!! I have the following problem for the first time in MT4: It leaves me no orders to more, that means I can integrate neither T / P nor can I manually close the open positions! If I turn left at the bottom of the "Journal", then says: investor size...
1) In EUR/USD M5 time frame can't get EUR/USD H1 highest and lowest data(the data is wrong data)? 2) In EUR/USD M5 time frame can't get USD/CHF H1 highest and lowest data (the data is wrong data)?
i have a EA that has working just fine and has made me gain some money, but after i test it in the strategy tester it stop working. now it does do nothing. some one can tell me why that happens please?
Hello, I have problem with my EA to reset a flag ( in this sample = false). I build Auto EA stop loss modify and dont know how to reset flagwhen is order close or come to stop loss. Exsample EA: i buy at price 1.4000 * when price come to 1.4020 (in that exsample is 20pips profit) - EA must...
I am unable to find a method to send an attachment with the email sent to me from the MT4 indicator. The SendEmail function only lets me send subject and body to the email server. How do I also send attachment like a picture that I get using the WindowScreenShot in the alert email?
Dear all Just wondering is there a way to programmatically load and unload indicator within an EA in periodic interval (say 30min) I need this feature as a workaround for one of my EA problem.. Thanks
Hi all, I'm doing some testing with a Custom Indicator and for my surprise the Journal is full with: 2008.09.16 02:55:14 2008.09.01 17:18 SmallBands USDJPY,M5: loaded successfully 2008.09.16 02:55:14 2008.09.01 16:11 SmallBands USDJPY,M5: removed 2008.09.16 02:55:14 2008.09.01 17:18 SmallBands...
I just write a simple EA with the principle is : 1. if example there is openB10, make B11 and S9 2. if example there is openB10, and there is open B11, make S9 3. if example there is openB10, and there is open S9, make B11 4. so the point is if move up make BUY and if move down make SELL, but the SL...
I've done a test by strategy tester, to print every ticks of a day and I've discovered that at the same second the bid value is the same (for multiple running of this test) but the ask value is different!! For one running spread value is immutable for all the day (or for the period you want to...
Hi, How often should an EA be re-optimized ? Say I'm aiming H4 or H1 charts... How often should I re-optimize it ? Is there a common sense or rule for that ? Thanks.
kolier1
136707892009.09.11 10:16sell1.00gbpusd1.669111.674521.645002009.09.14 12:581.653890.000.00-5.001 522.00137416692009.09.14 13:00buy1.00gbpusd1.653671.650381.656382009.09.14 13:251.656380.000.000.00271.00137453722009.09.14 13:47buy1.00gbpusd1.659971.656581.662582009.09.14 14:521.662580.000.000.00261...
To Rosh: Hi Rosh, I downloaded your script, I compile and fail-error.-  https://www.mql5.com/en/code/7665 Do you tell me what´s wrong?...The code is incomplete! Please, repair code. Thanks....=)
Hi, I want to load the complete history (data until 1970) in one step, without manual scrolling the chart until the date I want. How can I do it?
Hello I want to make a script which open trade with stoploss of 2% of account free margin... and i dont know, how to calculate 1 point value... for examle: OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Bid- something *Point,0,"comment",255,0,CLR_NONE); Lots is variable. and "something" will represent how...
What would be the best way to import the results in from external indicators into the EA? A bried example would be nice. As always your help is appreciated.
I wonder if anyone can help me. Everytime I open Meta I need to add my Toolbars and teh status bar can any help pls. Thanks
  Rogue Trader (2)
I was working on an EA for sometime now, constantly changing things and adding new settings. Here is the latest version for you to try out. It's free and is still a work in progress. It works best on a 5 digit broker, wouldn't recommend on a 4 digit broker. In all of august there is not 1 losing...
Has anyone had any experience with counting periods. I am trying to write code which will count the number of 1 minute periods. Can get the count of the first period, but not subsequent periods. Seem to be just swimming in circles. int LTM=0,AB,AC,AD; AB = LTM; //------ Past...
Hi all, I'd like to know how MetaTrader generally handles concurrently running EAs. Let me pose a scenario to illustrate my question more thoroughly: I have two separate Experts running on the same magic number on the same symbol, and they both have the capacity to enter a trade. My ideal case is...
Hello mql4 community, here is my first EA and i have a few problem with it althought it is very simple. the idea is to open a position when high or low of the previous hour is broken. Can someone have a look on it and tell me why when backtesting it does not open a trade. thank in advance
The above chart shows my back testing result... Check the attached file to see the forward testing result....
Hi.. I have been trading forex for sometime, and i have figured out a way to earn pips consistently on USDJPY.. This requires hourly monitoring, which only a robot can do. I am looking for someone who can sincerely help me write out an EA for the entry exit rules which i specify, along with the SL...
This is closing partial lots BUT...not exactly doing what I expected. Maybe you can see the issue here. should close 1 lot when there is a BUY and the price goes .00071(just a random number i'm testing on a 1 minute chart) or close 1 lot when there is a SELL and price goes .00071 down using a 5...
I'm not sure why, but my EA is acting a little funny. I back test it, it executes the orders, and gernerates the "Pending Order Alert". However, when it is live, all it does is generate the alert, saying, "Pending order Alert". I checked in the properties and along the program bar that the EA...
Hello friends, i want to download or buy the m t 4 server API/SDK. Where Can i buy it or download it? The sever package i bought dont contain any developing files, so i want to get it now. Best Regards, Fox
hi, Is it possible to use MQL API without starting terminal? Thanks Arnab
  Semi-log (4)
Is it possible to change to logarithmic scales in MT4 charts? If not, is this planned?