Expert Advisors and Automated Trading - page 55

Hello Folks, I'm very new to MQL programming. I just start coding to write LAST TRADED PRICE in external text file. All my effort are failed. Below is my code. Can anyone please correct my code. //+------------------------------------------------------------------+ //|
Hi, I am trying to update and reference multiple SL values using a function TrailingStop() When I have two positions open and I iterate through them selecting ticket by index I am able to update the two different SL Values. I do this for each position and store the SL value in an Array double
I will not mention the name of the product i bought because I hope the author will fix this issue as the product works great in demo. I hope to have the issue fixed and working great in real account soon. However, the issue is that in demo the ea has a small sl of 5 points, but when added to live
I bought 3 EA's recently. Problem is I installed them wrongly using wizard instead of file/open data folder/copy on/off done. I tried deleting files from both my MT5 account and in my files, then when I tried to re install the EA goes to my market section only in my navigator. When I then try the
Please update me why I am getting these error : 'vctReturns' is not a class , struct or union CMomentum.mqh 48 21 'Std' - undeclared identifier CMomentum.mqh 48 33 'Std' - some operator expected CMomentum.mqh 48 33 '(' - semicolon expected CMomentum.mqh 48 36
Hello everyone. Currently, I'm attempting to manipulate MT5 using Python. I first place an order without setting any stop-loss and take-profit conditions. After a period of time, I then set the stop-loss and take-profit prices. However, I'm encountering the following error message: "order_send
When loading any EA to any chart (Demo Account) it shows the EA on the top right, but it is freezing my terminal. I cant click anything anymore and I have to force close it. I tested it with a few EAs from the market and with self programmed ones. My PC has enough power and MT5 is updated.  Please...
Hi Fam , 1. Is there a resource that shows who rented an EA and when ? 2. When the EA 1 month or three month rental period , does the EA renter receive a notification prior to expiry ? Thanks KC
logic is if minimum 2 trade open SL TP Trigger(place at 1st trade breakeven price) if minimum 2 Trade open but it trigger after max trade open . like if i set max 5 trade . after 5 trade open sl tp trigger now. any body help what i need to change or replace
Metatrader 5 succeeds at loading tick data but not bar data. Source is FXCM historical data. I can't load more then ~7000 bars into the 'Import Bars' menu without it failing, no error message either, then when i click 'OK' it fails to keep any of the data. :( Same with tick data, i can load it into...
Hello I have a Renko chart whose candlestick times are based on the first price tick that plays a role in its creation. I have problems adding the last new tick to the chart. Because the time of the Renko candle is different from the time of the online candle, I have to change the time of the last
Hi Can someone please help me figure out with what i wrote in the topic, and i dled 2 same broker meta5 on my pc, but i ran a backtest with both of them, but came out different results? as you can see in the graph, its totally different, does anyone know why? Thanks in advance
I just realized it after retesting the results with a single test. I rechecked some random passes, they all did not work as optimized results. I rechecked the parameters, and it's the same. I have no idea why it happened like that. My EA doesn't use iCustom or external resources. Since it's not
I had buy an EA in market Autopip Gold EA which works very well on my local machine using, when I migrate to VPS, although I can see that the migration was done successfully, no trade has been placed
Hi, I observe the optimizer in MT5 getting slower and slower over time. At first, it shows to need 20 hours for 10000 runs. After 2000 runs it shows 600hrs . Quite often, when all agents are done, the optimizer waits and waits before it starts the next iteration. Is there anything I can check in
I have issue where I am getting the error [Position Doesn't Exist] Below is my function that closes trades. Note: I am using this ea to close trades on many symbols. I have not added check for Symbols, because I want the ea to manage all trades; that were opened by other eas and on other charts
//+------------------------------------------------------------------+ //| Script program start function | //+------------------------------------------------------------------+ void OnStart () { datetime tBegin = iTime ( _Symbol , PERIOD_D1 , 0 );
Hi All I want to use trail my buy stop and sell stop orders but I encounter invalid price error when using the code below. input double TakeProfit= 5 ; input double StopLoss= 2 ; input double PendingStopTrail= 2 ; int MagicNumber; double Filter= 0 ; int Direction= 0 ; int StopLevel=( int )
I have a relatively simple EA that I'm optimizing and when I run tick data the tester freezes at 99.8% complete and produces no error messages but will just sit there for hours until I stop the optimization. The peculiar behavior is that my agents can process 1 test just fine, but if it has to do
  Slow execution with MQL5 VPS  (11   1 2)
Hi, I started using the MQL5 VPS and it works but very slowly. My first few trades were executed with 25-35 seconds delay. On my PC it works within a second and have also used on a different VPS that worked very fast. Any suggestions would be appreciated. EH 0 08:57:02.167 Terminal MetaTrader 5 x64
Hello, I am trying to build a very simple EA that monitors all open positions and then closes a position if that one reaches 10 pips drawdown .. I am familiar with MQL5 and have written many codes with it, though I am not a professional programmer .. the EA is simply not closing positions at 10
Hi experts :) I'm rather new to MT5, so I have limited knowhow. I'm running an EA, which placed orders incl. TP and SL (all good). However, during marked closure - or that very volatile hour - my broker has high spreads (e.g. 29 pips on EURGBP ), which sometimes triggers my SL "unwantedly". Meaning
Hi all.... I'm working on an EA and it's getting an weird behavior. I created a variable where I can change the timeframe for the chart. Everything worked OK until I added a Panel based on the CAppDialog. - if I change the timeframe using that configuration variable, the EA Exits. - If i change the
I have a bug in my strategy but I can't find it. it's a bug that's been there for days but it's very rare. when I start an optimization, it causes the optimization to freezes and the test stops at a point like 501/10496. in this context, because my inputs are distributed in a complex way for each
Hi, I have an issue... I have no idea on how to overcome this. One EA on a MT5 client have been running for months with good results. Now for some reason it has.Not taken a single trade since July started. Nothing have changed in the settings, just stopped trading. So I setup a completely new and
Maybe a stupid question but what is ACCOUNT_MARGIN supposed to be as opposed to ACCOUNT_MARGIN_FREE? If I print this: AccountInfoDouble ( ACCOUNT_MARGIN ); I get 0.0 returned back from the broker. If I print this: AccountInfoDouble ( ACCOUNT_MARGIN_FREE ); I retrieve my current free margin
Hi, i made an expert, and i desired to play a sound every time the expert buy. So, i added this line, but it does't work: PlaySound ( "buy_alert" ); Note that i hear a sound if i place it inside of the OnDeinit function. But i don"t hear any sound when i place it inside the function that create a
Hello, I am starting to learn MQL5 and right at the beginning I have a problem that I can't solve. The console shows an error that my function has no body, even though everything is in the second file. Help
Hello. I am running the optimizer on my laptop and I have agents linked to my PC. I just bought a new motherboard and cpu with 12 cores. When I start optimization, Windows on my pc starts to hang even when I only use 6 agents. The cpu is around 2%-5%, the ram is ok and it's running on a disk that