MQL4 and MetaTrader 4 - page 309

To post a new topic, please log in or register
Hi , it seems as if when using the iHighest syntex fetching a value from a higher time frame does not work correctly. The value that is fetched does not exist on the specified time frame's candle highs. When checking this by printing functions to chart the are discrepancies on the smaller time...
hello,good evening. i need to call  functions by an array. the functions count buylot,selllot,OrdersTotal and the array is for a set of different magic number. what i did was,Use" Function_1(ARRAY_1[i]); "formate/syntax;but it seems OrdersTotal function call is working. as i am getting the result...
hello,good evening. i need to call a function with an array. the functions count buylot,selllot.and the array is for a set of different magic number. what i did was, Function_1(ARRAY_1[i]);but it doesnt seems to work. please advice. Global Declearation.int Free_Magic[4];int Magic[8];int...
Hi, I was using EA on MT4 and everything was ok untill I've downloaded MT5. I've had 3 different MT4 terminals of 3 different brokers and somehow the MetaEditor got updated. Now I cant use the EAs on the MT4 (when I try to compile there are a lot of errors). I've tryed to download the MT4 software...
I have modified the fib tool in MT4 for personal trade parameters. Is there a way to have the original fib tool along with my custom settings on the fib tool? Would like to have access to both at will.   Thanks, jacquesE 
We are developing a Algo trading, fully auto trading software for stock market, would we be able to get an API to connect to our software from MT4 chart???????
For Couple Week i try to modified open source ea simple scalping with marti and Hedging, please somebody help to make this ea better or work best, Trigger by HL candle on H1, optimized on TF 15M pair EurUsd (filtering not add yet) on BT 2014 had passed with profit more than 1000% with Dd more than...
i ran my EA on a computer, and i saw that the size of the tables (Low, High, Open, Close), that i use to compute some statistics is 101. ok. On another computer on which i work now, i print the size by using  ArrayRange function, and i obtain 12. It is very few for statistis. But on ths graphic, i...
Hi everyone, Just trying to fix a problem that I'm having with an EA of my friends'. The EA has a what he calls a grid function, the way it functions is after an initial order is opened, the grid function (if turned on) will open a new order x pips from the original order which also remains open....
Hi folks, Picked up this indicator on this forum. It's great. However, my chart background is white and so white is the colour of the indicator background. I would prefer if the indicator background colour was black to see it better and keep the chart background white. Is this possible? Any help...
I understand TimeGMT() when running an EA live uses GMT, however when back testing does it use the broker time, local time or GMT? EDIT: Nevermind, I found this: During testing in the Strategy Tester, TimeGMT() is always equal to TimeCurrent() simulated server time.
Good evening everyone. Greetings from Brazil!!!  I'm making an EA to Binary Options to works with Core Liquidity Markets Fx Lite for Meta Trader...   How can i get the amount limit per order ? Core liquidity has a limit of $ 250 USD per operation, and i need to get it on MetaQuotes!    
Hello, nice to meet you here, as this is my 1st post. On to the topic now :)  I am currently building my first EA and I finally came along to program the order logic. At that time, I was looking at OrderSend() and similar and I realised that I should have to check what is the Execution Mode of my...
Using the below syntax to send values from EA to AutoIt compiled script as below.     double value1 =234     double value2 = 678     double  value3 = 888     ShellExecuteW(0,0,"D:\tstScript.exe","value1 value2 value3","",1);     Getting below error     Access violation read to 0x000000EA in 'C...
I would like to use script separatelly for different Symbols. Pls for any example.
Hi - I'm very new to coding and have drowned in google searches and reading instruction manuals trying to find the correct way to code for high/low alerting. --- For the new high criteria, I want to generate an alert when the past 5 bars have the high being  from bar 3. e.g.: double HighBar1 =...
Hello there. I have a new EA that lauch multiple orders at the same time. Market Orders and Entry orders. What do you think I will need to code for the EA work "perfect". At the moment I just launch the orders. Should I use Sleep(), RefreshRates() or others to confirm that the order will be launched...
Hi  I am looking to create an automated expert adviser that will automatically trail my stops (if possible). I want my trailing stops to be consistent with the amount I'm risking (1 R Multiple).   For example, if I'm risking 50 pips I want my trailing stop to start locking in profits once I hit 2...
Hi! I just can't find sample code to select either vertical or trend line (actually both) on chart. The idea is to (toggle with button) hide/show objects on chart, i.e. vertical and trend lines (which clutter my chart, but i am possessed (LOL) and addicted (LOL again) by them; I need them as much as...
Hi, I am a happy MT4 user over the past few years.  Never had an issue on either Windows XP or Vista or Windows 7 but recently I had to upgrade my desktop and it came with Windows 8.1 I simply want to install 3 indicators and it installed one of them, but the other 2 simply didnt work. I am...
Hello, I think I stumbled on a common issue experienced by many: modyfing array passed by reference
Hi! Is there a short way to pass 'object_name' parameter from ObjectFind() forward into another (custom) function? Like: int OnInit()  {...   if(ObjectFind(0,"above")==0 || ObjectFind(0,"below")==0) TrailHLineOnChart(AboveOrBelow); // i.e. object (horizontal line) with object_name "above" is found...
Get historical data TF-M1 (F2) from  broker A to broker B . For convert M1 to another timeframe by script "PeriodConverter" in mtt4 . Broker A time zone is GMT+0 . Broker B time zone is GMT+2 . How to use script "PeriodConverter"  to adjust GMT+2 too ? Thankyou
I have imported high quality 1 minute bars on the EURUSD back to 2005 - 2015  When I start the backtest to run through through the date range 2010 - 2014, it doesn't run all the way through. Instead it cuts out at 2014 August... No pending orders are being used and only 177 trades were placed. What...
MT4 had been working just find until this morning when I turned on my computer, now when it opens it even before it connects to the brokers server it  says (Not Responding) for about 5-10 minutes and then works fine. I have installed MT4 from different brokers in different locations all with the...
     I have date in CSV  file with the Date formatted as:  month /day /year . How can I extract the  month / day / year  ( 04/ 23/ 2015 )  from the String ? I can't use anything that converts it to Datetime otherwise it becomes day/month/year format.   Thanks   
Hi, Just wondering if there is a way to make MT4 automatically save chart objects. Everytime I close charts I have to re-draw them which can be time consuming. Is there a way to keep objects on charts when closing them for later use? Thanks. 
After I use iCustom() to quote an existing indicator in this indicator, it says "can't open that existing indicator file". However I can quote that same existing indicator in my EA  successfully. What's the root cause? Do you have any similar experience to fix the issue? 
hi .. i want use this ind in EA  if bar red here just open sell if bar green just open buy i want know what last bar show red or green ? thank you :)
hi i cant closed my position on demo of quotes