Expert Advisors and Automated Trading - page 242

Hi I'm new to MQL. I have an EA, and after it stops, I see the following in the Experts tab: "9 undeleted objects left 9 objects of type CDynamicArray left 5760 bytes of leaked memory" I have done some research and looked at similar posts. I know that I have to de-allocate the memory every time I
I deposited money through my bank card & it was showing money in my account balance. Then I posted a job for my developer (he gave me link to post job specifically for him). He accepted it but now facing to accept it properly and saying " Can you please check if you have put your money in it
Hi Coders and Gurus, Guys, I need an EA to Auto Remove TP & SL on each open position , 5 mins before specified time time (hh:mm) and place back same old (REMOVED) TP & SL on each open position 5 mins after specified time earlier. This can be done with single time(hh:mm) input with X mins before and
Years ago I had this ea that averaged multiple positions on the chart , it was very good. Cant seem to find anything like it here. Anyone use or no of something similar
Hello , can someone explain this error to me 2021.02 . 17 03 : 33 : 46.033 Trades '160048826' : failed market buy 0.1 EURUSD, close # 2238727196 sell 0.1 EURUSD 1.20938 [Order to close this position already exists] 2021.02 . 17 03 : 33 : 46.033 Trades '160048826' : failed market sell 0.1 EURGBP
  coding problem  (7)
Hello everyone, I am calling you because I have an error in my code, can you help me solve it please. "' symbolIsAlreadyTrade' - function declarations are allowed on global, namespace or class scope only (ligne 5)". Thank you. #include <Trade\Trade.mqh> CTrade trade ; void OnTick (){ bool
Hello, I created a little script script with Python with this function: def connectToAccount(account, pswd): # if not mt5.initialize(): # print( "initialize() failed, error code =" , mt5.last_error()) # quit() authorized = mt5.login(account, psw) if
Hi Trader and coders I stumbled on this EA "Binary crash.ex5" in one of the discussion from Forex Factory. I tested it and find that works superb on uptrend only and only for crash500. Can anyone out there modify or add MA on it. Program should be:- EA only open buy positions when price is above 72
Hi, is there an EA that sets multiple TPs at a specific price point as opposed to amount of pips or % in profit? This would be an EA that you have to do a separate one for each individual trade so that you can make your take profits more specific based on structure. For Example: When EU = 1.205
I'm trying to finish coding my strategy and this is the last thing I have to do but I cant find a way to code 2 separate TakeProfit based on Fibonacci retracements
Hello I want to add a condition to my purchase code. my buy code is as follows: double ATRBuy = GetIndicatorValue (handleatr, 0,1); I would like to add the following condition to this code. I use atr as the line with the following stop loss. Don't buy if the Atr indicator is 2% higher than the
The code I have for writing to a file and reading to another seems to only work with the writing to file part. I have no idea why the reading part does not work. I have made sure the file to read is not open anywhere else but still it fails. Can anyone help me out here? very perplexing. This is in
  help to code  (5)
383 / 5000 Résultats de traduction Could someone help me, i cannot code. This code is instructed to: sell when the market is falling and buy when the market is rising, close a position when it has made a profit of 10 euros. To know if the market is up, it means that the last candle is higher than
I am receiving the "Notifications: not enough space for notification" on many of my accounts. How can I fix this error? I changed my mobile phone and updated the MQID but that did not fix this issue.
Hello everyone . I need expert can close all buy/sell positions of one symbol after specified points of breakeven I will give an example to get my point of view I opened sell position by lot 0.01 and it makes 40 points drawdown then I opened new sell position by lot 0.01 that's mean if the price go
Is this possible to integrate in ea? I've tried searching for a function related to this for mql5 but nothing seems to appear. Any answer would be truly appreciated, thank you
What I need an anonymised trading dataset (no PII): eg: trade start/end time, trade outcome, order levels (stop-loss, take profit etc.), asset traded and such; you get the picture.. Why Research. I'm interested in developing a ML model that studies the trading patterns of traders and offers
Hi everyone, I was wondering how to add Moving Average IN the RSI indicator. Thanks for spending your time
VPS failed to migrate command 2021.02.16 11:07:51.141 Virtual Hosting: 6145438 failed to get status for 6145438 failed to execute the migrate command
Hi there, Hi friend, can anyone help make code with the following rules: Buy if the angle formed between the MA 50 indicator with a horizontal direction is greater or equal to 30 degrees or Sell if the angle formed between the MA 50 indicator with a horizontal direction is less than or equal to 330
[Deleted]
Hello, I'm working on an ea that executes buyStops and sellStops at specific signals already defined. The code works well in in the demo account of the metaQuotes. Switching to the broker account (The broker is Credit Financial Invest CFI and the symbol is EURUSD ) no trades are executed as I get
I am trying to convert an indicator that is too complex to be called by iCustom into an expert advisor. When I say too complicated, I mean that we would need to copy hundreds of indicator buffers. So Instead I am porting the indicator code directly to the EA code. Most of it is straightforward, but
I couldn't figure out what's wrong with my code, i've tried everything i could think of. The buy and sell position is working but the order limit ,stop,and stop limit part isn't working. void OnTick() { //--- Ask = NormalizeDouble(SymbolInfoDouble(_Symbol,SYMBOL_ASK),_Digits); Bid =
Hi DLL with EA work Well in my pc (i test it in two metatrader and no problem) but i get error in my vps ! i put DLL in right place see image, but MT4 can't load DLL or Call it. unresolved import function call cannot call call DLL : #import "demo.dll" int Account_check(int acc,int...
hello @ all like in subject written i am using metatrader5 on a linux host. this has worked fine just until a short (can't say it precisely) time ago. but now there is no signals-tab anymore in the terminal-window. i've just tried anything like login to mql5.com in the metatrader-program an so on...
Hi everyone, I am trying to draw a standard deviation channel as part of my EA using the Least Squares Method: https://www.mathsisfun.com/data/least-squares-regression.html But I am getting some strange values. Can anyone spot something in the code that I am doing wrong? Or is it just because iTime
[Deleted]
I am trying to use Universal Expert Advisor: CUnIndicator and Use of Pending Orders (Part 9) Code for PositionMT5.mqh file ... (able to compile this file without any errors). However, When try to compile Trailing.mqh (code attached below), I am getting following errors ... 'CTrailing' - unexpected
Hi maybe buy? I get compiler error on: Min_Bar= ArrayMinimum (mrateMesec, 0 , WHOLE_ARRAY ); Maks_Bar= ArrayMaximum (mrateMesec, 0 , WHOLE_ARRAY ); 'ArrayMinimum' - constant cannot be modified Please check code in file test2.mq5