Expert Advisors and Automated Trading - page 209

Hello, I would like to add a Trailling Take Profit for my trading robot. Quite simply, I open a position at $ 100 The StopLoss is at -20 $ If my position is at $ 180 (+80) then my TakeProfit will be at $ 200 and my StopLoss will be at $ 150 Regarding the StopLoss I have already managed to find a
Hi guys, first of all thank you for your help! I have some trades opened by another EA in one direction (eg. 5 trades BUY). I want to set the stop loss for all these BUY trades together to be triggered at a specific price (not pips of distance but a specific price). Therfore if the price reaces
Good afternoon, I'm writing and EA in MQL5 with Bollinger Bands based on example I've found on this site. I'm trying to say to the EA to stop trading Friday at 21:00 (server time) and during the week to avoid to trade from 20:00 to 21:00. Unfortunately during the backtesting it doesn't work. Below
hi, i say to my expert that: if the price goes up 400pip, make trade, and get position, I have run this EA in 3 accounts, and it work good, But some days, randomly one or two account does not trade, while price has gone up 400pip, what is the problem?? _i run the EA in VPS, _EA is the same in three
folks This is my code NormalizeDouble ( MathAbs ( 10 / 100 ), 3 )* 1000 ); or this double math=( 10 / 100 )* 1000 ; It just returns a zero value what is wrong here i have tried Removing NormalizeDouble and MathAbs but still the same story But the Funny thing happens when i put the values after
Hi everyone, I'm quite new to EA programming. I'm trying to check that all my symbols are open and will be open for at least 10 minutes before I open any positions. My code is below: //check if all symbols open now and for the next 10 minutes datetime start; datetime finish; datetime
can any one help me to make my mt4 ea work at mt5
When I was first with MT5 and trading gold the spread would flux from 24 -75. I left Mt5 for Mt4. But now I am back with MT5 because of the move. I don't understand why the spread was fluctuating for weeks now for the past days since last week it is 50. Is my MT5 app messed up?? I don't understand
Moderator: Hello! After December 5, 2020, the verification of EA project failed to pass when it was submitted for audit! See the screenshot below。Even if I create a new simplest EA, it will not pass
Hello I created a 5 and 13 SMA EA but i cannot add the trailing stop on it. The second challenge i want to make this EA to function different charts at the same time. #include<Trade\Trade.mqh> CTrade trade; void OnTick () { double Ask= NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_ASK )
Hello, I am running a small EA and what to display some Horizontal Lines on open Charts on the Backtester. With OpenedCharts() I read out all openend Charts and Print them. It's working well with Live Trading, but in Backtest (Visual Mode) it only returns the one Chart, on which the backtest is
Hi. Could anyone enhance this EA? Adding Opening Time, Closing Time, Time to reset open position, Breakeven, TraillingStop and Partial Execution. I am grateful for the help. input int lote = 1 ; input int periodoCurta = 10 ; input int periodoLonga = 50 ;
Hi all, Is there a way to hide input variables from the user if he selected different enum. For example, i have 3 different cases under one enum. Based on the user selection, i want to show some input variables and hide others. Is that possible with MQL5? Thanks in advance
Hi, I've downloaded several free EA from the Market (Download and Installation function) and they work fine on that specific computer. But when i manually copy the .ex4 EA file from one computer to another from the expert folder the EA will not load. To get it to work on another computer or vps
Ok, it is easy to syncronize the signals and the EAs of your PC MT4 on VPN. But after resetting my PC MT4, how can I see what EAs are running on VPN?
im trying to make an ea i put all the conditions to open trade but im stuck idk how to code so the ea close the order by an opposite signal
Hi I made a EA and define all my indicator and variable base on 1 year back test ( i made a optilimazion and chose to best result ) 1. when i run it for 2019-2020 ( 1 Year ) my EA was work perfect 150 trades with 20% Relative drawdown and very good profit but when i try to run my EA for 2 years
Good morning, I would like to implement an EA that runs two EAs in one. The first that send only virtual orders and deserves only to check that the equity curve is above or below its moving average. The second identic to the virtual one that send real order to the broker and is active only when the
Hello everyone I greet you all. I am just a newbie, interested in learning how to write EA. I read an article on this site (https://www.mql5.com/en/articles/100) step by step guide on how to write an expert advisor in mql5 I then downloaded the programme file provided. I tried to test it using the
Hi guys, I'm trying to code a simple EA to pick up a type of divergence from a custom indicator and need some help (new to mql4 programming, engineer in real life, so most likely just need some code snippets, as I'm most likely doing something wrong). I'm using the iCustom function on the indi
Hello Great people, I am new to coding. I attempted to write a code for a simple expert advisor (MQL5) to return the value 0, if the swap on a long position (or series of long positions) is positive. If the swap is negative, the EA should retrieve, add up all the negative swaps of all Buy positions
Hi, did you know which CPU is better to run back testing in MT5? Intel or AMD? does the size of the level 1 cache impact the performance? etc... Is there any comparison / benchmark available? or what type of standard benchmark should we check which is the most relevant for MT5? (PCMark, content
Hi Everyone, I want to use a indicator in an EA, this indicator has some input settings that I want to change it by EA and then EA use it for take positions, below picture is input settings of indicator, my problem is How I can use iCustom function for set value of drop down menu? for example How...
Hi I have a EA that work on many symbol and bar period now i need to open each chart and select bar period and input and run the EA its take me a long time the open all the chart and run the EA there is a easy way to run the EA on multi chart and bar period exept to open many chart seperate at
Hi, There is an EA on both MT4 & MT5 Platforms, HOW to use this wonderful feature if HISTORY DATA ARE BEING DELETED especially 1min, 5min charts & so on? WHY KEEPING DATA as old as 1999, remove all these OLD DATA to MAKE ROOM for 1min, 5min, 15min, 30min, 1hr charts? One Year of Quality Data is
Hi, recently I created an indicator that analize objects drawn in the graph iterating over ObjectsTotal() and plots signs in a DRAW_COLOR_ARROW buffer. I'm curious to know if there is any similar way to to this between an EA and an indicator. Normally when an EA wants to get the information from an
Is there any tool to set the opening time of EA? For example: it can automatically turn on at 21:30 every day. It can start EA at 22:30 every Friday
Oh everyone. I am a bit of a novice. I am looking for an EA who will perform a 'take profit' afterward automatically so that I can set it to say 150 pips. So every time the market moves up or down 150 pips, the take profit moves with it "Reverse Trailing Stop". Example: You placed a buy order at
Hello everyone, I am just a beginner coder. I am a bit confused about EA's, they work on a single chart and if you change the symbol the EA gets reloaded right? The problem is I want to maintain network state and I need to work on multiple symbols. My original idea was to use a script or service but
Hi Guys Please help me, my VPS at Amsterdam reinitialized my EA for the second time last night on XAUUSD (I am with Exness). If it is reinitialized it causes problems. Please Help. Thank you