Expert Advisors and Automated Trading - page 154

Hi. I am trying to extract timeCurrent inside onInit() and onTick() to get optimization starting time and current time, but it returns 1970 when I try to Print these variables during onTesterPass or onTesterInit. Does anyone know what is the problem? Thanks
Hi, I just backtesting my EA and I saw an abnormal behavior in the graph shown below, After looking into the chart there isn't any particular trade that resulting in that drawdown. I looked into the journal log and found that after 2022.06.30 the strategy tester restart the equity of the strategy
MetaTrader 5 has the Debug/Profiling section on its Options at the taskbar. But the MT4 does not have it. So how to code debug/profile and have same or similar details and results as using the Code Profiler but on the MT4
Hi . Is it possible to set a time limit on the backtest ? I found an expert advisor who does not open a position even in the backtest from 2021 to today. Several people commented that this expert only opens positions based on the history that is placed inside it, and its strategy is fake, and it
According to the documentation of OrderCalcProfit , "The function calculates the profit for the current account, in the current market conditions, based on the parameters passed. The function is used for pre-evaluation of the result of a trade operation. The value is returned in the account
I need somone to build to me an expert advisor for my strategie based in martingale and hedgin . the role of this ea is to close trade at profite this depends on the number total of open trade in symbole '( ) for exemple : profit target = 10$ coefficient = 0,85 nombre of trade =1 profite on closing
When I want the effect: It starts when the profit reaches an increase of 300 points. If you hold a BUY order now, and every time the price rises by 100 points compared to the entry price, adjust the position of SL to SL+100 points. If you hold a SELL order now, and every time the price drops by 100
I am testing my EA using the strategy tester and I have been getting a wierd issue. This is for dec 12 3550 build. metatrader demo account I noticed that when I run the EA withought visual mode on, it missed trades. So when visual mode is on, it takes all of the trades. I narrowed this issue down to
Hi, I created an EA which makes trades if some conditions are satisfied and I'd like to optimize two parameters - the SL (in pips) and the risk-to-reward ratio - which do not affect those conditions. However, when I perform backtest, I see that for most of the combinations no trades are actually
This morning, I purchased an EA from a seller who promised to provide the settings and personal bonus by contacting him. I have left several messages for him. So far, no response. The product is practically useless without the settings. I opened a ticket with the service desk. Does anyone have
I have tried multiple approaches to this, based on the documentation and on information I've found in this forum, and I can't get anything to work. Simple version: void CloseAllPositions() { CTrade trade; while ( PositionsTotal () > 0 ) { trade.PositionClose( PositionGetSymbol ( 0
[Deleted]
MQL5 calendar is bad Taking today Ifo Business Climate as an example MQL5 Site: 17:30 Forex Factory: 5:00pm Investing: 5:00pm DailyFx: 5:00pm All are GMT+8 time zone. How can MQL5 missed report such an important event? Unbelievable!!! Can someone fix it
I would like to know if anyone has a clue how to program EAs much faster, without all the slow process of coding 2000 lines. I have seen somewhere Programming platforms that enable to develop EA in under 2 minutes, and work much better then MQL Linear Programming. Can Anyone share some information...
Hi can you help me how can i take a backtest with 99.9% modeiling qulality in mt4
Hi, I am a US resident, and I don't have access to Spot Gold trading. I want to subscribe to an EA that trades GOLD but then do a cross trade to XAUUSD with my US broker. So when the EA initiates a trade in GOLD, I want to initiate the corresponding trade in XAUUSD. Is that possible? If so, how
Hello. I have several MT5 terminals from the same broker on my server. I renamed each instance so I can run them independently. Now when I try to connect to the marketplace it is not allowing me. It says to make sure the "web address res" is correct. It's pointing to a web address with the name of
how to write fast working expert advisor hello, I wrote an expert of medium complexity, but his backtests are progressing very slowly. It tests 10 days in 20 minutes. It's very slow because maybe I'll have to test the last 5 years. Some experts, which are more complex than mine, can be tested very
  Vps hosting  (9)
How many MT4s does metaquotes vps host
I rented a VPS here. At the time of registration, the page showed that NY's VPS connection to my trade server was delayed by 0.72ms, but looking in the VPS log found that the VPS did not connect to the trading server in New York, but connected to the trading server in China, resulting in a delay of
My idea is: i want to be able to manually place my fibonacci on a chart and have the EA send me an email notification when the bid price hits a specified level(example: 50%, 61.8%,etc...) in the EA. But my only problem is i'm having trouble getting the fibonacci levels while using the string
Hi guyz, Please I'm new to Mql5 language, I wrote a comment line, but while running the backtester the comment is not available. If the EA is placed on the actual chart, the comment shows. Is this an mql5 thing, i don't experience such with mql4, and i need the comment to always get more info about
i am thinking of buying a robot on the market of mql5 can any one give me advice of how to setup a demo so i can test before i buy
As a newbie, I want EA to open maximum of three positions each with a difference of 100 point when condition is met. Anyone who could help us with a general idea, which will help us all thank you
hello dear programmers!! Can someone program an Ea for Metatrader 4 from a Trading View indicator
hi my friends I wrote an expert that works well and has no errors and I checked it in the backtest But when I want to put the codes in the base code section, I get an error Can anyone help
I have been currently testing my EA with difffernt brokers to gather data. However I got this weird error: [ market closed ] With metatrader demo, it was working fine. Below was for Oanda demo, but I had the same with Vantage demo as well. Build version 3550. For extra info I did create the demo
I am trying to make my EA based on the Fractals sample form the Indicator-->Examples folder. Here is the code that I tried: #include<Trade\Trade.mqh> CTrade trade; void OnTick () { int test = iCustom ( _Symbol , _Period , "Examples\\Fractals" ); MqlRates rates_price[]; if (rates_price.high ==
Good day All! I am trying to create a method to check if trading is allowed, if the trading context is busy, if the symbol has restrictions (long only/short only), etc. Here is what I came up with, I am wondering if anyone would have some suggestions concerning other Account/Symbol related prechecks
Hi! For an EA I use a custom indicator with iCustom. It works fine so far. But for the strategy I need to change the indicators parameters at some point of time. I can get a new indicatorhandel with iCustom(...) with the new indicator settings. this works fine too. But then I will have two...