Expert Advisors and Automated Trading - page 65

Good morning, everyone. I am using an ea that I have created, which normally works fine, but this morning as I normally do I went in to check if any trades had been executed and found an open order that should have been cancelled. Normally it does cancel them, but something happened and it didn't
Hey guys, I thought I give it a try by spending a week on a trading idea that I found interesting to implement in a rather simple indicator and coding some fancy EA to execute the trade signals. The results look somewhat interesting, but before I'd like to look into optimizing I was surprised to see
Good evening, I am attempting to write a HHLLS (Higher High Lower Low EA). First HHS and LLS are calculated as below. double High1 = iHigh ( Symbol (), Period (), 1 ); double High2 = iHigh ( Symbol (), Period (), 2 ); double Low1 = iLow ( Symbol (), Period (), 1 ); double Low2 = iLow ( Symbol ()
I am encountering an issue with file access in my Expert Advisor (EA). Specifically, I am trying to place TXT files and DLL files into the MQL5/Files folder and have the EA access these files. However, I am receiving error code 5002, indicating that access to the files is denied. Here are the
i can get the latest MA value for the last 5 bar using dynamic array. thanks to ArraySetAsSeries(), it reverse it's saving point so that current bar MA will be saved to index 0 double MA_Handle[]; ArraySetAsSeries (MA_Result, true ); if ( CopyBuffer (MA_Handle, 0 , 0 , 5 , MA_Result)<= 0 ) {
Hi, I have a program signals sheet that is giving me signals in shares and I typically have 30-40 trades to do near the market close. At the moment this signal sheet spits out a CSV/excel and I have to then manually execute these trades. does anyone know of a simple EA/script that would be able to
  ONNXRun Issue  (1)
Hello, I'm receiving errorcode 5804 where the parameters count is incorrect (expected 4 instead of 2) to the OnnxRun() function for my simple script. I'm not sure why this issue persists and what exactly I'm supposed to pass through apart from the x- and y-tensor. Help would be much appreciated
So currently when I start up a Strategy Tester, I can only select the day I want it to test on. As example, if I select today, it will start at 00:00. Is there a way to change the start time, since I want to test from 9am until 9pm
Hello, Does anyone know why my MT5 strategy results are coming back in RED when there's profit. If you look further down you see that there are some in GREEN. Also with profit, Can't figure out why a lot of my results are in RED when there's profit. Thanks
Hi everyone, I just started learning how to code yesterday so i'm fairly new to all of this. I'm sorry if this is a stupid mistake but here is the problem i'm trying to solve. input double MarginPercent= 300 ; //User input for the margin percentage the user wants to trade with input double
[Deleted]
I'm having some issues with my code that is trying to draw the high, low and 25%, 50% and 75% of the previous day on the current days chart, I would like to see historical data show their values so I can see certain levels. The code I have written seems to flash across the screen and not actually
Does someone know what's wrong here because positions are not closing after senkou spanB crossing chinkou span from below for buy? #include <Indicators/Trend.mqh> CiIchimoku*Ichimoku; #include <Trade\Trade.mqh> #include <Trade\PositionInfo.mqh> input int Magic = 400 ; input double lot_size = 0.1 ;
Hi, I am new to MT5. I am using a MetaQuotes demo account at the moment. I have registered to a signal and enabled a VPS. All the services seem to be correctly fonctionning (See screenshots below). However, I do not seem to see much operations happening on my account, and I would like to ask some
Hello! Is it possible to remove items from a Combobox? I know that CComboBox.AddItem() can be used to add items to Combobox but I cannot figure out how to remove items from Combobox. Thanks for taking your time
Hi I have a function that calculates lots for opening positions. But it seems to be buying to many lots. I can't seem to find the problem with my logic. Any help would be appreciated. double calcLots( double slDist, double riskPercentage){ //Calculate amount of lots to buy/sell based on SL distance
In my code,I'm trying to import funtion like: #import "libsro.so" int TrainNetwork(int inputSize, double& data[], int Bars, int training_bars, int BarfeatureCount);//---check void GetTrainingProgress(double &accuracy, double &progress, double &average_loss); bool IsTraining(); double
OnDeinit() event will not called if you call ChartIndicatorGet(0,ChartWindowOnDropped(),MQLInfoString(MQL_PROGRAM_NAME)) like this. (It's only on indicator process) In this code you will don't see print "reason: "+reason in log when you remove indicator or any deinit actions until you recompile it
  UT Bot Alert  (1)
Hi Everyone Has anyone paid a freelance to Recreate the tradingview UT Bot alert? if so please can you send me there info. Cheers Andrew
As I'm going through my backtest report. I was looking at this and thinking if this information is important. If the average position holding time is very low, does it means that my EA is more accurate and robust compare to a value that is higher? and where can I get this for use in Custom Max
  Questions about OOP  (38   1 2 3 4)
I created this topic in order to avoid creating a separate topic for each OOP question (I have already created several of these)
Backtesting an idea using Parabolic SAR. I was expecting the trade to open at the open of the new bar when the signal switches, but it doesn't. It is late and inconsistent. And it is not just the difference in the spread. I can't seem to find anything in the code that prevents it from opening the
Hello, I would like recommendations for grid EA that works with broker in the US like Oanda or Forex.com. Could someone please help me with that? I need a reliable EA that is not Martingale. Thanks
Im trying to backtest a strategy from "StrategyQuant x" and it just doesn't seem to work, no trades from the backtest. I've tried several things such as reinstalling the program or trying different money management methods. I'll share some screenshots to make it easier. Help will be highly
this is what i've been using: for ( int j = 0 ; j < OrdersTotal (); j++) { if ((OrderTicket = OrderGetTicket (j)) > 0 ) { if (( OrderGetInteger ( ORDER_TYPE ) == ORDER_TYPE_BUY_LIMIT )) { CountBuyLim++; } } } and it is succesfully count the number on Buy
in this doc Trade Operation Types all operation about placing a new instant and pending order have no ZeroMemory, but every operation about modifying or closing open order and pending has ZeroMemory in it. i experienced some error modifying SL/TP when i first start learning mql5 but i forget what
Hello everyone, I am new to coding and have limited experience, but I recently came across an ORB EA strategy online that I like. However, there is some issue with it. I The EA is supposed to draw and set the open range high, but it appears to be slightly shifted above the highest high, which is
I have read meny threads and docs, followed them but non of them work. here the place where my file is C:\Users\marti\AppData\Roaming\MetaQuotes\Terminal\F762D69EEEA9B4430D7F17C82167C844\MQL5\Files I found it in File > Open Data Folder In my code I have the path set as follow: string
Dears... I'm trying to get the open price of an order which already closed in MQL5 as i want to open a position on SL hit, I used HistoryOrderGetDouble (trans.position,ORDER_PRICE_OPEN) the trans.position return the order number properly. but this function return 0 as open price of the order. i
My EA is tailor made for Volatilty 75 but they are testing it on eurusd for validation process...obviously its not going to work for obvious reasons. assist please
how can i write a code so i could close positions after crossing two ichimoku line