Expert Advisors and Automated Trading - page 204

Hello everyone, pls I'm new to the mql5 programming....Please I need your help with applying the inbuilt experttrailingstop classes in adding a trailing Stop to my EA..it's been really hard trying to understand how to apply it...thanks
Hello Is it possible to help me add code for any expert until you become like in the picture Thank you For example, when you press the buy button, it becomes red, so the expert does not buy
Hello, i published new EA today (18.1.2021) but like my other EA's i published before, this EA didnt shown on new tab on MT5 market. Any ideas why that happen ? <Deleted>
I have a problem with upgrading the ea version. I want to ask how to publish while the validation has been passed but there is no publish button
I want to provide signals om mql5.com. I have more than 5 EA's running but i would only like to send signals from specific EA with specific magic number and NOT send signals from the rest. How would I achieve this
I just try with a classic ShellExecuteW(NULL,"open","C:\\Users\\name\\Desktop\\loul\\LauncherPushB.vbs",NULL,NULL,1); command and it doesn't do anything I think it's related to admin rights or something , i'm trying to run a "exe" file , that press a "B" keyboard touch. it works when i launch the
Hello Community, is it possible that I buy an EA on my MQL5 Account and give my brother my account data to download the EA on his MT5 and use it. He then logs out of my account. Please don't assume anything illegal, but I want to reduce costs with my brother. Thanks for answers! Best Regards Azzo
Hi! When i need to select the close of the third candle away from current price i use: candle[2].close. In this case i need to write the [2], but what if i want to select the close of the last 100 candles? Do i need to select one by one or is there a better way to do that? Currently i am doing this
Hi Friends, can any share Expert Advisor sample file
I would like my mql5 code to run a key , like for example "A" anytime a specific action occurs. Is it possible ? Anybody knowing how to do it ? Example : microsoft word is launched and the expert runs in background. any time the action occurs , a "A" will appear on microsoft word. I've seen similar
[Deleted]
Hey guys, I am not a programmer, but I hope someone here can add a stop loss function to this EA. The EA seems to have potential, and it already has a trailing TP, but if someone could also add a trailing SL after it goes beyond TP, that would be great. Thanks
Hi, How to close multiple position based on symbol, profit etc. Like : Close all GBPUSD Positions/Trades Close All GBPUSD Sell Positions/Trades Close All negative trades/positions Close All Open positions/trades Any EA/Script to close trades based on filter
Hi folks, From the last 3 years, for all my EAs I've been using "Ctrade" include structure to open, modify and close trade positions. I'm using it in Future markets, not forex! #include <Trade/Trade.mqh> CTrade Trade; //--- Example void BuyTrade() { double lot= 1 ; double ask= SymbolInfoDouble
I was looking for information in the community for not ask again what was asked, but the invalid stops are being shown for me too, but... only for selling positions, very weird, since I only have to change the logical inverting it for selling, it's the only difference from buy. for ( int bSell=
Is there a way to compare two arrays and get a double between 0 and 1 where 0 would be 90 degree difference between two arrays and 1 would be perfectly parallel? Something like this would be extremely useful for Bollinger Bands and other indicators with similar structure. Also is there a way to
Hi All I have an EA which only works when I create first/initial buy or sell manual order. Can any one kindly let me know that how to back test that EA ? I could not find any first/initial manual order option in Strategy testing. Thanks Imran
I have an idea of an EA that can be used to trade a particular synthetic index. The idea is to add a Momentum indicator (Period 14) to RSI window (Period 1) with two RSI lines (at 10 and 90). When the momentum touches the 10 line or goes above it, a buy is triggered immediately and runs for 3 bars
Hello, hope somebody could help me. How can I read out the REAL current time (e.g. LocalPC) during a Backtest? TimeCurrent(), TimeLocal() and TimeTradeServer() will just give the time according to the Backtest. Thanks in Advance
Hi guys. Im getting this logs continuously and I don't know what they really mean. Can someone please explain me if this is normal? Is my EA working correctly on the VPS. It has not placed any position in 3 days. I was thinking that was a normal behavior because of some conditions not triggering
[Deleted]
Hello everyone, I want to know what will happen to the trades after changing the EA settings or modifying the time frame. Will those trades be closed based on the new or old settings and time frame? Or should I close them manually? Thank you
Hello, Does anyone know of an EA or Indicator that will trail a pending order?  Idea would be: Let's say pair is falling and I want only buy it when rebound starts. So pair need to be trailed down with the Buy Stop order ones reverse (let's say more than 70 pips adjustable) it's going to hit Buy...
Hi. I have made an EA which I want to improve by moving SL and TP while a position is running. What I do not understand is how this method changes my backtesting result??!? <Deleted> when i'm not calling this method - but when I'm calling the method my EA breaks down pretty fast... As you can see I
Hi! I am making a few adjustments in the Fractals indicator from MetaQuotes and i am trying to create more dots to the right, like a support and resistance line, i need 5 more dots to the right instead of just one but i am having a hard time doing it Can someone show me the way? I needed something
I would like to check the maximum lot size that can make an order in the market, before I make the order. If an order does not success due to the lot size is not available in market with current open price , I would like to get the available lot size that is available in market with current price
Yesterday i subscribed to a signal through mt4, but the trades are not being copied. Please do note that my broker uses a different name for the pair i.e EURUSD . rather than EURUSD, Is this the reason that trades are not getting executed automatically
Hi Why I get error 4806 on CopyBuffer? //+------------------------------------------------------------------+ //| test1.mq5 | //| Copyright 2021, MetaQuotes Software Corp. | //|
While running this minimal piece of code, I have different results on tester. input int nothing = 0 ; double totalticks; int OnInit () { totalticks = 0 ; return ( INIT_SUCCEEDED ); } void OnTick () { totalticks = totalticks+ 1 ; } double OnTester () { return totalticks; } Running for
hi i use a EA on real account The EA send a order but i get a error 4756 as you can see at the code below i made a alert to tell me if the order was send or not despite the order was send i still get a alert with error and not get a alert " order "+ _Symbol+ " long was sent " the code is
Hi, I'm struggling and wondered if someone can help? I'm running MT5 from Python using the command line and a config file. I'd like to be able to read in equity curve data from each pass in the optimization. I'm not familiar with Frames and can't really see any good documentation on their use. Can
//+------------------------------------------------------------------+ //| ObjectOnChart | //+------------------------------------------------------------------+ datetime prev_bar = 0 ; int handle_ma_50, handle_ma_200; int OnInit ()