Expert Advisors and Automated Trading - page 193

Hi, Do any members have any tips to prevent major slippage during times of low liquidity or high volatility? I am developing an EA for scalping and running into issues with large slippage during certain times of the day. I would like to prevent trades that are more apt to slippage. I don't think the
Hi,experts I doubt if we can change parameters of indicator during the ea/script is running? as we know,we need to declare (ma_Period,symbol) them in Onit() firstly before using. Let say I want to use moving average’value of 10-50 period,Does I need to declare 40 buffers and 40 handles? thank you
Hi, A while ago I purchased, Magic 7 EA with 5 activations. but now the EA is disappear from market completely how do you re-install the EA, normally you go to market and then download/install it from there. Although the EA is making huge loss sometimes, but I still want to give it a second chance
Hi, everybody! Can I find such scripts anywhere? How? I'm new here, I don't even know how/where to search properly. Thanks
  Open Buy Code issue.  (11   1 2)
Dear All, I'm very new in here. I have read a few things about EA code and very interested to learn. I have background in C++, however there a lot of things new in here. For the first time, i try to create my first code with the basic open buy order as below. But this code is not working. can...
Hi, I am trying to replicate a strategy on MQL what I have in Thinkscript. I'm starting with one indicator, an anchored intraday VWAP line. I have read forums and watched videos on youtube on how to build an indicator and I do not understand what I am doing incorrectly. Can anybody please point me
Hi How much is PC system requirements such as CPU or RAM for running 100 EA in 100 charts in one platform in metatrader. My experts are not so heavy and each have about 4 indicators for 10 bars
  Tick database  (2)
Hello, I need some support in understanding the issue I am currently having. My finding is either, i have an issue in my code, or the tick_volume given by the terminal has one tick to much on every period. Please see screenshot attached. I am comparing the results from the Functions CopyTicksRange
I use the following code to draw a rectangle from one candle to another. bool drawRectangle( int candleInt, const double top, const double bottom, ENUM_TIMEFRAMES cDuration, color rectColor) { bool checkBarCount = true ; int useCurrDuration = PeriodSeconds (cDuration)/ PeriodSeconds ();
Is there a way to program EA so that its internal/external variables may be changed by something we've put online? For example, If we're running multiple trading accounts with the same EA, could we code it so that the EA changes into "SELL ONLY"/"BUY ONLY" with one click from an external source? I'm
I am with a broker by the name of Longhorn and they offer an MT4 platform that you can host on a MQL5 VPS. They say that any EA or robot can be migrated/synchronized onto the VPS but they don't allow DLL and when I try to synchronize I get the message attached. Please advise if I can use this VPS
Hello, I'm trying to create an EA based on ***Outlook indicator but the indicator loads data from server and show it after it's loaded. When I try to get it using iCustom() I get the value = 2147483647(max value for int32) which is not correct. Is there a way to wait for data to load and after to
Hi ppl. I have an EA and have to control how many contracts(lots) the user can trade, só i have an API and when the EA initializes, the webrequest is done placing the quantity on the database, and if the ea or set is removed, the same webservice is requested and remove this contracts, but i have a
Hi, Does anyone know of any EA that can monitor an account with multiple pairs from a signal and if the DD level gets over xx%, it will automatically lock the opened positions by opening reverse and equal positions. At the same time if new positions are opened by the signal, to keep locking them
Hi! I have an EA that checks every new bar and opens position when conditions are met. I would like it to work on multiple currency pairs, but there will be a limited number of currently working pairs, probably 2 or 3, because I don't want to be wiped out by a drawdown. So if they are already open
  Expired date  (18   1 2)
We have I q how I can know the expert with experied date or no please advise 
  Combining codes  (2)
I have an EA which I want to automatically close when an equity target is hit. Can I combine code from an existing script into my EA
Can it be possible for my EA to take trades after every minute on Mql5? If there is a way can you please help
Hi everyone, I've created an EA on MQL4 that interacts with objects created manually and sends a notification whenever a certain situation occurs. Some of them are sent only once per day. On the Strategy Tester I used Print() function instead of SendNotification() (obviously) and everything worked
Hi, I'm new to mql. I wrote simple EA based on stochastic oscillator. I don't understand backtesting: Why are there more arrows in red circle on the same bar? Maybe I open a position without before close another position? I tried checking if PositionsTotal()<1 before orderSend, but it seems not
Need help with this idea for a take profit function. the idea is as follows: When entry is made the take profit level should be entry price+atr but it doesnt close the position unless the closing price of a candle is greater than or equal to the entry price+atr. No SL, necessary just the take profit
Hi I'm new to MQL. I have an EA, and after it stops, I see the following in the Experts tab: "9 undeleted objects left 9 objects of type CDynamicArray left 5760 bytes of leaked memory" I have done some research and looked at similar posts. I know that I have to de-allocate the memory every time I
I deposited money through my bank card & it was showing money in my account balance. Then I posted a job for my developer (he gave me link to post job specifically for him). He accepted it but now facing to accept it properly and saying " Can you please check if you have put your money in it
Hi Coders and Gurus, Guys, I need an EA to Auto Remove TP & SL on each open position , 5 mins before specified time time (hh:mm) and place back same old (REMOVED) TP & SL on each open position 5 mins after specified time earlier. This can be done with single time(hh:mm) input with X mins before and
Years ago I had this ea that averaged multiple positions on the chart , it was very good. Cant seem to find anything like it here. Anyone use or no of something similar
Hello , can someone explain this error to me 2021.02 . 17 03 : 33 : 46.033 Trades '160048826' : failed market buy 0.1 EURUSD, close # 2238727196 sell 0.1 EURUSD 1.20938 [Order to close this position already exists] 2021.02 . 17 03 : 33 : 46.033 Trades '160048826' : failed market sell 0.1 EURGBP
  coding problem  (7)
Hello everyone, I am calling you because I have an error in my code, can you help me solve it please. "' symbolIsAlreadyTrade' - function declarations are allowed on global, namespace or class scope only (ligne 5)". Thank you. #include <Trade\Trade.mqh> CTrade trade ; void OnTick (){ bool
Hello, I created a little script script with Python with this function: def connectToAccount(account, pswd): # if not mt5.initialize(): # print( "initialize() failed, error code =" , mt5.last_error()) # quit() authorized = mt5.login(account, psw) if
Hi Trader and coders I stumbled on this EA "Binary crash.ex5" in one of the discussion from Forex Factory. I tested it and find that works superb on uptrend only and only for crash500. Can anyone out there modify or add MA on it. Program should be:- EA only open buy positions when price is above 72