Expert Advisors and Automated Trading - page 221

Hi all I'm looking for MT5 script or EA (possibly MT4) I would like that when candle a bar crosses the horizontal trendline i.e. when the close price are on the opposite sides of the line then close position. Does anyone know similar solutions? Please share with me. So far, just I found it....
It's all in this little screencast. Any help much appreciated ! *** thanks
Hi, When trying to get the swap long of a CFD's in the past(3 months ago) , the expert returns to me the actual value of the swap (which means , i don't varies with time and remain the same for my EA); Is it a problem coming from my broker or is it a data that cannot be find in the past ? (I'm
Hello Everyone, I am developing my EA in Metatrader 5 and have an error in strategy tester in the line: iMACD_Handle=iMACD("USDJPY",PERIOD_H1,20,60,6,PRICE_CLOSE); The strateg tester show the error: cannot load indicator 'MACD' [4805] Error= 4805 Error applying an indicator to chart...
  2nd computer  (1)
Do I need to pay twice for EA to install on 2nd computer using the same account
hi, i want to check if order is sell orbuy type,and this require an integer...but wich one is buy and wich one the sell? cant find infoin help file... i can not do this; if (OrderGetInteger(ORDER_TYPE)==ORDER_TYPE_BUY)??somebody can show mewhere i can find int value of a buy and sell order? the...
[Deleted]
  Input changes  (1)
I need to test a demo of an EA on the market before I buy it, but it won't let me save input changes to the demo so I can test it. Is this normal before I buy it or am I doing something wrong? Thanks in advance for the help
Hello, I keep getting the runtime OnTick Critical error when I try to test my ea. Here is part of the code; double cci[]; double rsi[]; double prev_volume, prev_AvD, prev_holdthese, prev_cci; double volume, AvD, holdthese; int OnInit () { MqlRates rates[]; int totalbars=Bars(_Symbol,_Period);
I am new to mql5 and I'm trying to trade GOLD. I tested some sample EA but it doesn't execute any buy or sell positions. I tested with MA and MACD code made by MQL5 wizard. It works at currencies but it doesn't work at GOLD. It doesn't execute any trade because of [Invalid stops] error. I'm using
I have rent vps mql5 service to run EA on mt4 but sometime vps get DC to ping broker tickmill at the weekend ... so I ask, my ea still working after DC in vps and resume on monday or stop working and need synchronization again ? because before DC my ea shown DD around 2%(still opened order position)
How to fix these errors 2020.08.17 00:57:58.620 PipFinite Trend PRO EURUSD ,H1: out of memory 2020.08.17 00:32:59.450 not enough memory to load C:\Users\OMISTAJA\AppData\Roaming\MetaQuotes\Terminal\\MQL4\indicators\Market\PipFinite Trend PRO.ex4 2020.08.17 00:07:15.193 cannot load
[Deleted]
How can I integrate an indicator i bought on the market into an EA
I have build and EA, and want to add more trade protection into it, what I need is a function than i can integrate with my previous code by just calling it The strategy are : If daily profit is equal or more than target profit (by precentege of ballance) , than trading stop for that day Or if loss
Hi there, I wanted to ask about what potential downsides there could be to running multiple, different EA’s on one trading account. I’m looking to diversify my trading and would like to know about the possible risks or benefits. If anyone could help me out or has any previous experience with this, I
Hi i want to use iMa and iRSI and compare values . but values are not true because of showing iMa in chart windows and iRSI in Data window. how can i use both of them in data window ? Thanks
Hello, hope everyone is well. I am new to mql5 and for some reason when i go to test my EA it doesn't execute any buy or sell positions. There are no syntax errors Here is my code. Thank you in advance for your help :) vo }
Hello evryone,  Gmail provides userfriendly rss feeds to read unread emails https://mail.google.com/mail/u/0/feed/atom I want to get access to my emails via MQL4. I have found https://www.mql5.com/en/code/10428 this script. But even when i replace all functions with unicode (W) it still...
I ran the optimiser on my EA. I have several variables (stop loss, take profit and three others). The optimiser showed me tasty profits on various currency pairs, so I noted the values it had chosen and hard-coded them into the EA. Then I just ran it on the strategy tester without optimising, but
Hi there, i am trying to enter a code that would allow me to retrieve the open price of a specific symbol other than the current one being work on. anyone know how do i do that? my code is something like , i tried Position Select, but on my last line i tried printing the value and it...
I have seen many topics around this subject, but i am finding it difficult to understand. My trading algorithm sets my stop loss to 1.5 x the ATR of a symbol. My risk is 2% of my Free margin. (Is free margin the best place to take 2% of my balance?) //--- ATR calculations for Stop loss and Take
Hi all,  Is it possible to do this? I'm opening a position with a order like this. 10 lots with stop loss and no take profit. CTrade t_buy;t_buy.OrderOpen(_Symbol, ORDER_TYPE_BUY_LIMIT, 10, 0, p, sl, 0, ORDER_TIME_DAY); Now when the order gets in (creates a position) I want to have 5 partial take...
Hi Folks, It seems like sometimes my EA is taking a little more time to send an order. As I'm trading in a very short of time (Scalping), I'm loosing money sometimes. So I'm trying to figure out if is there any part of my code is wasting time. The part below was extracted form OnTick. Void OnTick
Hi All, I have trawled through many of the previous questions regarding ST issues but so far have been unable to find a solution. So here goes: 1. I can test all indices in June and July except JPN225 which only runs successfully in July for some reason. 2. I have gone to the history centre and I'm
Hi everyone, sorry for my bad English. I'm new to the world of trading and c++ programming (just started a book to learn). Following the guides I was able to compile a mq5 file which draws a second Renko chart below the main EURUSD. ( Https://www.mql5.com/en/articles/792 ) Thanks to this graph I was
I have coded a robot but my knowledge of coding is limited so, obviously, I have added the functions I need but I see these are not working right. I am constantly modifying the code LIVE adding /if and /while according to what I am seeing in the market. So, my question is, Is there a preestablished
Hi all, thanks for this space. I'm currently building an EA that increments the operation's volume when the price goes above half of take profit's distance: stop loss is modified accordingly maximum loss admitted. Just to be more clear, here an example of a long position: Price Situation 1,1220
[Deleted]
Hi, What are the function I should look for in source code of a EA to disable display of indicators (internal and customised) after a backrest with visual and non-visual mode
I programmed an EA that opens either buy or sell trades depending on the signal from a custom indicator. The custom indicator gives a signal on candle A then the trade is taken on the following candle B. The problem i have is that, the signal is usually not stable, for example if the indicator gives
Hi. My problem is I bought an EA few days ago. I run tests on it, everything was okay it showed the deals then I tried to use it in real time for trading and it doing nothing. Is anyone got any idea what is the problem? I would be so thankful is someone will help me.
double closeh4x[]; ArraySetAsSeries (closeh4x, true ); CopyClose ( _Symbol , PERIOD_H4 , 0 , 30 ,closeh4x); double close26h4x=closeh4x[ 26 ]; //================ The error relates to the close price of the last 26th candle and states ' Array out of range' How do i fix this