Expert Advisors and Automated Trading - page 66

Are EA advisors profitable in the long term and have a high win rate? Is it worth the time
I found some but they are only for demo account and some works on only limited pairs, Any free ? Thanks
I found it strange that my EA cannot read volume during tests, although, the Strategy Tester is showing it. That means I have good data. Is this expected? I am implementing inside the OnTick() event. I am having all attributes of the tick, except the volume. I am using MT5. In the images is the
When I automatically generate an MT5 EA, optimize it, and backtest it, there are periods when there are "invalid stops" errors and periods when there are not. Is the stop level not set in the auto-generation? What code should I add or modify after auto-generation and where
Hi, Is it possible to build an ea, using the arguments in a push message of another EA in MT5? For exemple, on a MT5 terminal, i have 2 EAs: the first do its work, and then when it feels a signal send a push message, for exemple "eurusd M5 trend up, possible buy" then i need to build the second EA
Hi all, Why EA terminal hangs during some news time. Due to this my trades are not managed correctly even if I set my SL and TP
I have a created a basic script that opens a position at a set time which works just fine but I want the script to open positions at additional times. At this time I am able to do this by adding the same script to multiple charts but can't use "Strategy Tester" to test all the positions at once. All
How can I change algorithmic system to demo Text converted to sentence case by moderators
  Long Only or Short Only  (23   1 2 3)
MT4 offers this setting when attaching the EA to the chart to have Long only or Short only I cannot find this in MT5. How can I do this in MT5? The only thing I can think of is to program into the EA.
I converted this code for an EA I saw online from MQL4 to MQL5, Can someone help me check for errors? //+------------------------------------------------------------------+ input int min_gapsize = 1 ; input double lotsize_gap = 0.1 ; //---- datetime order_time = 0 ; int OnInit () { //----
Hello respected experts I'm going to make an Array from 2 existing dynamic Array. But I get the following error: array out of range in 'test.mq5' Please help me to correct the codes: enum ENUM_INDICATORS {RSI,CCI}; input ENUM_INDICATORS indi=RSI; string indicator = EnumToString (indi); input int
Hello everyone, I'm still a bit of a beginner in the world of MQL5. I have an mt5 desktop with two accounts set up (one for each forex pair I want to trade). I've coded an expert advisor to execute my trades more easily. When I change the symbol or timframe, everything works perfectly as long as I
Hi I'm getting 100+ errors about undeclared identifiers in my include file, despite including the include file in my EA, i don't get any warning because I declared all of these ' undeclared identifiers ' as global variables in the EA. How do i get rid of the errors in the include file
Hello everyone, I'm trying to send a notification to my phone every time the price reaches the Sell Stop order and a trade is opened. I stumbled across OnTrade() and OnTradeTransaction() but apparently they're executed right after a Sell Stop order is placed and not when then trade is opened. How do
I have a live trading account. Someone has put an EA on my account but not disclosing the name. Can I get the name of EA? I have all the credentials of my account
Hi, i recently paid someone to code me an EA. Can someone please assist me with understand the following lines. Based on other indicators as well as the Moving Average, this function is used to work out how many of the current open positions should be closed based on how well the trade is currently
Hi, I want to ask which one of the OnTick() vs OnTradeTransaction() function is called first? On OnTick() function there's a trailing stop code that will return error if EA can't select the position ticket. On OnTradeTransaction() I will reset the position ticket to 0 if the position is closed. But
Hello, I am testing ea using iCustom function to pull data from indicator. But I found some discrepancies in the data that indicator gave on the chart vs iCustom function on the same date. I thought that my ea had some bug and run the debugging on the same date and while running code step by step it
Hi Everybody, normally, I want to open only one Trade at the same time with my EA. It looks like this and works pretty fine && ( PositionsTotal ()== 0 ) But now I want to run the EA in different Charts with different values. Now I have to check if there is an open trade by Symbol. This was my idea
I could make a change in the code (lets say I alter the EA so that it will have a fixed SL of 25 points), then I recompile the script in the MetaEditor, and run it again in the strategy tester. It does not act on the changes I made in the code unless I compile the script under a new filename. Why is
Does anybody know, why the last three lines of the EVENT_MAP-section were colored red? It´t not colored, if I delete two random lines of "ON_EVENT". Not matter of the color, the defined events are working as expected. Any explanation would be nice. Thanks a lot for you time and help
So Recently i got the hitch of knowing how all the pips and points can be taken advantage of to make better trading decisions to maximize profit of course so... Just so you know i have low level of programming as i had done just basics of web dev, now i want to do more than just build websites.. I'm
So I am testing a code for sending orders based on two different StDiv BB. When I run the script it doesn't run on some markets. It shows a notification in Journal tab saying that the script has been removed. This happens only when my specific market conditions are met for the entries I've coded
// Input parameters input int AtrPeriod= 14 ; input int AdxPeriod= 14 ; input int MultipleStopLoss= 2 ; input double MultipleTakeProfit= 2.4 ; input int MagicNumber= 4 ; // Global variables int AtrHandle; int AdxHandle; bool FakeoutHigh; bool FakeoutLow; int OnInit () { //
Dear Guys I wrote a code below :   handle=FileOpen(File_Name,FILE_READ|FILE_CSV|FILE_ANSI);    if(handle==INVALID_HANDLE)  {   Alert("Cannot Read File Error : "+DoubleToString(GetLastError(),0));  }else{    while(!FileIsEnding(handle))    {      string text=FileReadString(handle);      }   } When i...
Hi every one i want to make table that shows trade time in a week for symbols. like the pic below. how should i use SymbolInfoSessionTrade to create it
Hello, I am new to coding and still learning C, since thats what they said I should learn first but I have something that I need to build. I am trying to build an EA that picks up buy trade after a consecutive number of bearish candle, the start of the count of the bearish candles starts after the
  cant share my EA  (15   1 2)
Hey I have build my own EA and trying to share it to a friend... i have complied it and sent him the EX5 but it keeps getting him this error... MQL5 your CPU architecture does not allow to run the file '....ex5': X64 required, you have AVX only what can i do to fix this
Hello all, I need to calculate the average value of some values inside a vector. Let me explain better: # 1 CopyBuffer (funz_RSI, 0 , 0 , 20 ,value_RSI) With the above declaration I have the vector value_RSI composed of 20 values. I want to calculate the average value with the first 10 value of
Hello, this is my code, it works well in the tester strategy, but when I put it in the main chart for real trades, it does not open a position. #include<Trade\Trade.mqh> CTrade trade; //+------------------------------------------------------------------+ //|