I, newbie, have a questions regarding my open orders (in automatic mode). In a downtrend sell orders are placed (i.e sell 0.03). I have some open positions that I do not understand. For example: my order type of trade sell, price 106.164, S/L 108.694, T/P 107.129 My question is: why is T/P (107.129)
Hello, I want to make my Custom Chart Template For Metatrader 4, but don't start to where.help me!
Hey guys, I trust you are well, I would really appreciate if someone can help me. I have tried using both ChartScreenShot & WindowScreenShot to take a screenshot of my chart, however, the screenshot does not have any of my indicators on them, this is when back testing my strategy. Interestingly
I noticed that with every manual change of time-frame EA is restarting. Sometimes it makes some difficulties for me. In the project I'm currently working on, every time user runs the EA some conditions have to be in checked OnInit() and if necessary, a message box will appear to give him a warning
I start this thread for the following reason: - to develop ASCTrend EAs according to the manual trading systems described here https://www.mql5.com/en/forum/173249 and - to delevelop new asctrend system for M5 timeframe . Please find updated templates (3 templates) and all the indicators for this
From the diaries of the worlds worst programmer. So I have implemented the following code in my bot, the idea is to take a screenshot OnTimer and on a button click...
As I understand it, the launch of the backtests with a genetic algorithm is cached. Does a result of a 'launch A' may appear in a result of a 'launch B'? Being 'A' and 'B' 2 launches with a genetic algorithm with identical characteristics: symbol, timeframe, date section, spread, parameters, etc
I created an offline chart and try to use ChartOpen to open it. I have read that it should work. I even used an indicator given with an article written years ago, and ChartOpen is used to open the offline chart, but the code in the given IndUSDx.mq4 names the chart the same name as symbol offline
I'm trying to put ma on rsi in expert advisor but it says Array out of range double limit=Bars-1; double ma[]; double ima[]; ArrayResize(ima,Bars); ArrayResize(ma,Bars); for(int i=0;i<limit;i++){ ma[i]=iRSI(Symbol(),0,14,0,i); ima[i]=iMAOnArray(ma,0,10,0,0,i); }
[Deleted]
Hi, I get an error regarding an unbalanced parenthesis. I've even numbered them, and they seem to match. Perhaps I am missign something. Help would be appreciated. Thanks //+------------------------------------------------------------------+//| AutoTrader for...
Hi, I have two different accounts, each with different broker setup in different terminals. Traded on account A are not copied or related to account B. I need a script that will sync a close positions between them. E.g. if on account A all positions were closed than script will close all positions
Hi all. Any ideas would be greatly appreciated. Using Mt4. I had 1 EA which was placing trades fine. I then made another working on a separate chart, which also placed trades for me. I now have 4 EA's all placed on completely different charts. None of the new EA's are placing any trades...
hi guys, got weird issue i keep getting error 130 invalid stop error... so i got frustrated then removed it and still get same error 2019.09.22 19:51:20.125 2019.09.02 04:06:03 USDJPY,M15: Error number 130 = invalid stops 2019.09.22 19:51:20.125 2019.09.02 04:06:03 USDJPY,M15: OrderSend error 130
Can someone offer advise? I added a new indicator to my MT4 and it broke it? When I open the platform, it takes almost 45 seconds to open. Once it is opened up it freezes up. If I scroll my mouse over the chart it turns grey. I receive an error message saying "not responding". I have deleted all of
Dear Gurus in the house, Please I need enlightenment on this: I used 30p for my stoploss and 30p for takeprofit also but after the ea opens the order, I noticed that the stoploss points was higher than takeprofit point sometimes by almost 10p. What do you think might be responsible for this as when...
i write c++ language though not too fluent to some extent. I have been trading for a while and I have some strategy I use in trading that I need to automate on mql4, because it is cumbersome and time-consuming. Please, I need advise on how to do this or how start
How to read all of the current positions in my trading account, using MQL4 , not MQL5 ? Thanks very much
Hello. I am trying to change the text property of an object in a another chart but I don't know why it does not work. The following script is unable to set a new string: if ( ObjectSetString(131552086461923216, "testLabel", OBJPROP_TEXT, "message") ) Print("message updated with...
I am trying to create a buffer in the FFC indicator that pulls the symbol for the upcoming news events. line 196-201//--- Buffersdouble MinuteBuffer[];double ImpactBuffer[];double PreviousBuffer[];double ForecastBuffer[];string CountryBuffer[];line 218-225//--- indicator buffers mapping
input int media1; input int media2; input int hora; bool st=false; string mns="-----"; void OnTick(){ Comment ("Message:",mss); if (Hour()==hora){ st=true; mss="AUTORIZADO!" } if (st==true){ if (iMA(NULL,0,media1,0,MODE_EMA,PRICE_CLOSE,0)) < (iMA(NULL,0,media2,0,MODE_EMA,PRICE_CLOSE,0)){
Hi guys, I have backtested a strategy based of the 1 minute chart using Open Price Only Modelling. I have then backtested the strategy using every tick mode. To get the every tick mode to match the open price only modelling I added the following code(found in another thread): static datetime
Hi all, I'm trying to recall a Global Variable from an expert in this way string HOUR_ = StringConcatenate ( "HOUR_" , Symbol ()); GlobalVariableSet (HOUR_,HOUR()); GlobalVariableGet ( StringConcatenate ( "HOUR_" , "EURJPY" )) If I apply the expert (with GlobalGet only) on a EURJPY chart the code
Hi fellows, I'm currently experiencing an issue for 2 days with an EA that use MBFX system and candles to trade. I don't have a high level on programing with mql4, so I took "OpenTiks" from the CodeBase as base for my EA. Perhaps i missed some codes that were in the original EA and that could
if RSI over 70 if Close[0]>Open[1] Sell ---- Close if RSI = 50 if RSI below 30 if Close[0]<Open[1] Buy Close if RSI = 50 I tried to code it but not work .someone help me
Hi fellows, I'm currently experiencing an issue for 2 days with an EA that use MBFX system and candles to trade. I don't have a high level on programing with mql4, so I took "OpenTiks" from the CodeBase as base for my EA. Perhaps i missed some codes that were in the original EA and that could
I want to find the pinbars circled in the attached image below. For the one on the right, the body is about 1/5th of the candle size and for the one on the left, let's say the body is 1/7th the size candle size and it also has a wick of 1/7th the candle size at the bottom. How can I use the iOpen
Not necessarily a troubleshooting topic but how come with the MQL4 language there is the stigma of including slippage in the CloseOrder function? I don't think slippage is a factor when I manually Close an order so why do you suppose slippage is absolutely necessary for an automated program? All it
Hi all, I am trying to test this indicator but sometimes it moves and doesn't stay centred in the indicator window. I am sure it is something very easy to fix, I have attached a screenshot to show the issue. Hope someone can have a look. Thank you
With the latest update, the strings set with ObjectSetString do not work any more with my horizontal lines. Why

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.