Download MetaTrader 5

MQL4 and MetaTrader 4 - page 914

To post a new topic, please log in or register
I don't have a programing background but I have been teaching myself MQ4 for the last 6 months. I get most of it now but arrays, I've got a mental block. I've read the documentation repeatedly but, I still haven't got to grips with them. I don't understand how you get the data into an array in the...
  iFractals (2)
Hi everyone, I want to use iFractals and I have a trouble. Actually it always return the value 0.000 I was wondering if someone has already used it in his code and explain why it does not work. Here is the code : total = OrdersTotal(); if(total<1)//fix the nb of trade to 1 {...
Hi, I have trendline on D1 chart with time1=2009.12.03 and time2=2010.04.15. This gives 1598 bars between time1 and time2. For M1 chart for the same symbol I have history only to 04.10.2010, so in this compression time1 is outside the timeseries array. When I find the time2 point on M1 chart and try...
Hi, the reason I'm posting this is because of the frustration I feel after trying more than 10 EAs and having them all fail one after the other. I mean is it just me or has everyone else been through this frustration? How do you define a successful EA? I'm looking for one that is profitable for at...
hi all, this is always a problem to me. when i try to download the history, the data seems to "jump" from one date to another leaving a missing period how can i ensure the quality of my data to backtest me EA?
Today morning, for some technical reasons problems occurred accessing our test MetaTrader 5 server that is located at our external provider's facility. Due to these problems, logging in to accounts opened on this server is impossible. Please accept our apologies for the inconveniences caused. We...
hi guys..... somebody of u have tried to insert the conditions that permit to envy opening order in particular days or hours?? i would need to envy to open order in the last 4 hours in the friday( FOR ITALY 19.00 - 23.00 ) . sometimes there is a big gap in the sunday opening ....so...i 'd...
Hi, I wish to add 2 lines showing a % retracement from highest high and lowest low on the standard RSI. I added commands in red to the code, but it wont compile. I am stuck. Thanks in advance for your help. #property indicator_separate_window #property indicator_minimum 0 #property indicator_maximum...
New article Using the Object Pointers in MQL5 is published: By default, all objects in MQL5 are passed by reference, but there is a possibility to use the object pointers. However it's necessary to perform the pointer checking, because the object may be not initialized. In this case, the MQL5...
hi all, i need your help on that: is there an away i can save an array and its index all together? i have a array let's say array_mine[counter]... i want to save its content indexed with the counter. it seems like it should be easier... so please any help is must appreciated. thanks. ,,,
I've posted it in 7bit's "5 digits detection" and I found myself delving into another problem altogether. What I'm after : - How do I make a function of this simple trade operation. And to be able to be used on all types of symbols and/or brokers (pip or sub-pip) - I know that if we go from pip...
Is anyone using Swiss army knife order managment for thier EA? I'm thinking about porting my EA to this code for its order managment capabilities. Can anyone tell me if they have used it and if it works as told? unfortunatly you can only get the mql for version 1.36 http://expert-advisors.ucoz.co...
Hi, If you have exists MT4 account, with any broker, I offering you my proven account managing service. Incredibly results, Low DD, Manual trading. Managing Fee depend on investment sum. Details on kevinam67@gmail.com
Does the market watch time shift with daylight savings time...forward an hour in the spring?
Hey, What does it mean... "String parameter expected"? I get this error message, when i test my EA with this StopLoss... Tahnks void CheckForOpen() { double ma; int res; //---- get Moving Average ma=iMA(NULL,0,MovingPeriod,MovingShift,MODE_SMA,PRICE_CLOSE,0); //---- sell conditions...
Hi, Can somebody help to code indicator? Upper Band=(1+M1/100) x MA(close,N) Lower Band=(1-M2/100) x MA(close,N) Middle band=( Upper Band+Lower Band )/2 M1 & M2---->6 N--->25 Thank.
i want to icrease lot with 0.1 with every new order and every 25 order it start all over again i code it with best idea i got but i dont know what is wrong im not good in programming double LotsOptimized() { double lot=0.1; double orders[]=HistoryTotal(); // history orders total...
  Need help creating a VERY simple EA (61   1 2 3 4 5 6 7)
i have never created an EA before but i have a trade i do that happens every 30 minutes. i trade it on the gbpusd. when the current 30min candle breaches the previous candle by one pip, i enter to go for 5 pips. it can be a buy or a sell, dosnt matter. i have a few other very simple rules for this...
Hi everyone, I'm a newbie in MQL programming however, I found a quirky thing about the following code: extern string Resistance_Line_Name = "resist"; extern string Support_Line_Name = "support"; extern double Risk_Reward_Ratio = 1; extern double Take_Profit_In_Pips = 30; extern double No_Of_Lots = 0...
For example : ExampledFunction(string Txt, double ProfitFromOrder) { ... expression... ; ... conditions... ; return (Txt, ProfitFromOrder); } If YES, then what the TYPE should I use in order to properly DECLARE the FUNCTION as above example: double, string or the other ONE? Then I would like call...
hi guys only an advice: i need to check the number of pending order ( for the currency and for the type of order ) i have tried in this way: for (int i=0; i<ordertotal() ;i++) orderselect(i,select by pos); if(ordersymbol()==symbol() and ordertype==op_sell ) x++ break if x=0...
i 'm coding, or at least copiing from other ea's sections that i like . this is to emulate a current stratagy i use. i am however strugeling coding my expert function. i have written the way i think it should work - no success. could someone have look at the function and advize ?
喜欢当Moving Average移动平均线设为:Simple 应用于设为:close时时间周期分别为5,10,15,33,55,87,200当报价与后四个周期差距大小在10以内时能在主图上用箭头指示一下。 喜欢高手帮一下忙。在这先谢谢了。
guys.... i work on two personal computer and in one there metatrader 2.24 and in the other there is metatrader 2.26 same history.......but if i use the same EA, i obtain different results. have u noticed this problem u too ????
How do you generate a random number within a range of 1 to 10?
Hi everyone, Please can anyone help me out get a ready to use Ea or autorobot. I have no knowledge of computer programming language. And that makes it very difficult for me to edit or modifying any programme
Hi guys, Here's the code i use...just a test sample: double test_array[6] = { 0.5, 0.6, 0.7, 0.8, 0.9, 1.0 }; double result1 = 0, result2 = 0; ArraySetAsSeries( test_array, false ); //default behaviourresult1 = iMAOnArray( test_array, 0, 3, 0, MODE_SMA, 0 );Print( "Default. result = " + result1...
Hi All, I have never come to this forum without leaving with a solution. Sometimes it takes a little work to solve a problem but the help here is always outstanding. This one may be simple. A moving average is drawn on a chart after being selected by a specific set of criteria. I want to retrieve...
Hi guys, Our next grid trading course starts on Apr 18th. It discusses a comprehensive trading approach - both theory and practical application of grid trading on the forex markets. Including market selection, strategy selection, risk and money management, backtesting, analyzing, building a trading...
Hi good day, I'm just learning how to program in mql4, I read an interesting tutorial which gave an EA basics, and I made small modifications to it so I could built my own. Here is the code, as you can see it's a simple T3 Tilson crossover, that gets called with the iCustom function, the T3...