Expert Advisors and Automated Trading - page 131

hi guys, i'm going through the help doc of mql5 and am reading about enum here https://www.mql5.com/en/docs/basis/types/integer/enumeration however there's no examples of how they're used. all I got is that one can create a list which will be assigned values from 0 with increments of 1s but thats
I made a EA in MQL5 and I tested it with historycal data. After try it a lot of times I got great profits, but after that I used my EA in the real market. I realized that I had opposite results, I lost a lot of money. I was trying to guess what happened and I found some possible issues. My positions
Can someone please help me migrate my chart and EA to mql5 vps. i already paid the subscription and connected but now i cant migrate
Hi, I am trying to backtest a strategy with a custom symbol , I have imported tick data from a date range and the data displays just fine in the chart. The strategy involves simply placing an order at 8:30AM. However there is a point where one pending order at 8:30AM on 2022.08.17 gets canceled (at
I am a beginner in mql language and software. i developing a EA but i have no idea about how can i finish OnTick function what i want to do is like this; void OnTick () { if (x>y) { OrderSend (blablabla); //and here the program should end } } thanks for
I have been running an EA on a demo account since late 2020, I haven't been tracking the results much, but I would like to go back and analysis the drawdown during the entire period, as its been profitable. I would like to come up with how many times during the last 2 years did the Equity go below
Hi all, currently I am trading with MT4 using my own bot, wish to find out a few stuff before I commence with MT5. Appreciate any help or clarifications given. 1) High quality MT4 backtesting is require from 3rd party, is it the same for MT5? Or can I download the data from the broker (not
Can anyone recommend me a good currency correlation EA
I need a clarification on the Magic Number in EA. I have given the Magic Number in all my EA's as below int Magic=MathRand(); I have parallelly running 4 EA's, whenever a trade is getting executed, each EA executes the trades with a different magic number. As long as the EA's are not refreshed/not
When I try to publish my EA I get invalid volume error even when the lot size is 0.01. please I need solution, thanks
Hello there's a custom indicator that I'm loading into iCustom that has 10 buffers in the data window. The buffers I want to get values from are the first and second ones and using copy buffer on "0" and "1" returns me a random string of numbers that is not the value I want, this number doesn't
I have this code: #include <Trade\Trade.mqh> CTrade trade; double MACDValues1M[]; int MACD1M = iMACD ( _Symbol , PERIOD_M1 , 12 , 26 , 9 , PRICE_CLOSE ); ArraySetAsSeries (MACDValues1M, true ); CopyBuffer (MACD1M, 0 , 0 , 3 , MACDValues1M); traderStartValue = 50 ; if (MACDValues1M[ 1
Hi there, I've been backtesting strategies for a few months now and ran into a new issue today. Namely, until today, whenever I changed the code, saved it and started a backtest on the same file, the last saved file was loaded for backtesting. Until today: New file FileA created, parameter value set
Hi everyone, there is an issue I saw many people had when they were trying to publish their EAs. Here is some output I get(errors). 2019.04 . 05 03 : 30 : 00 failed instant sell 0.75 EURUSD at 1.12243 sl: 1.12503 tp: 1.11463 [Volume limit reached] 2019.04 . 05 09 : 00 : 00 failed instant sell
because I only open position, I didn't open any pending order, magic number only useful when identify pending order, am I right
How do I know people arent sharing my EA to escape my One Time fee? If I sell my EA to someone and send them the files to import into MT4, couldnt they just send those files to who ever they want without those people having to pay me anything? Im curious is there is some sort of notification that
I am trying to run the script but I get these on the journal tab, I have tried removing the recent added code but nothing seems to change, I have also closed and opened both terminal and the MetaEditor, Same story, someone help
Hello, I created an EA and I need to close a position by the ticket number. I am loading the EA into the VPS and for some reason I cannot close my positions. I get this error message 10027 My close position code looks like this. void close_position(long ticket) // --> MQL5 Refereances , Constants
Hi to all, in my EA, in the OnInit I attach the indiactor in this way: int OnInit () { handle_RenkAdv[i]= iCustom (symbols[i],IndicatorPeriod_M1, "::Indicators\\RenkoAdv.ex5",param1 ); } along the time I need to change the value of the Param1. I was thinking to delete the indicator and attach
I am trying to find a way to calculate the appropriate volume for longs and shorts dependent on a fixed percentage of risk. I stumbled across the CMoneyFixedRisk money management class and set it up in my EA. Every time it is called it seems to always return the value 0.0. Below is an example of how
Hello, I'd like to ask an help to understand how to get correspondace into the mql5 code about the operations in the attached picture. There is a red arrow (sell), a blue arrow (buy) and a dotted line that connects the two operations. I'm trying to implement an EA that performs a Buy Limit and Sell
Im using bot on python but i cannot open trade. Or sometimes it's okay, sometimes it's not, hơ an u fix it
  Multiple TP's  (2)
How do I set multiple Take Profits on the MT5
  Invalid stops  (5)
Hi guys, I am very new in programming in MQL5 and I have an issue that make me crazy and probably is just cause of my non experience. When I run my EA, I am buying/selling lots of GOLD if the price decrese(buy) if the price increse(sell), then my program need to update the TP of the previous open
Hello! I am looking for a utility that will close losing trades at a set level - for example 'Close all losing trades if DD is % or $ of equity' Any Ideas please? Thank you Tim
I am publishing a Trade Manager that will add a stop loss and take profit levels automatically to an existing position opened by the user. Since the EA is a Utility and does not actually open trades, how can I provide testing through the Strategy Tester
  ea  (1)
why is my ea not loading on chart
This should include both elements of hedging trading, using a grid trading algorithm, and a system with a deposit protection. Additional orders are opened with a fixed same lot size , without using lot multiplication (Martingale). If the price starts to move against the order, the EA will begin to
Hello, I recently downloaded MT5 and have purchased a tool that sets stop loss and take profit, similar to one click trading, just with more features. I can't use it because it always gives me the error, "Autotrading is turned off in MetaTrader terminal". I have tried every setting, turned on
Hi I have developed a trading automated routine, testing it numerous times in Strategy tester. I would like to test in the real environment, but it the signals do not trigger. It should trigger about 16 trades a day based on TA basd on trategy tester. Neither if I remove TA trading preconditions