Expert Advisors and Automated Trading - page 341

How to calculate the closing time of the last order in Mql5?
Hello to all. I have a problem in my EA: I can not pass a variable 'int' from my indicator to my EA. Here is the code, if you can make it work leave a comment. Thanks. My EA: #resource "\\Indicators\\Prova22b.ex5"int var=0;int OnInit()  {   var=iCustom(NULL,0,"Prova22");...
Just playing around with strategy tester and all of a sudden the prices for GBPUSD seem to be coming through wrong, they seem to be multiple by a factor of 100 Has anyone seen this before? and know what's causing this? It seems like it's using points from the JPY set, I did load GBPJPY data recently...
  FLASH CRASH DIAGNOSYS BY EA  (31   1 2 3 4)
DOES ANYONE KNOWS AMONG PROFESSIONAL TRADERS HOW TO CODE AN EA TO DIAGNOSE FLASH CRASH OF MARKET LIKE. JAN 2015 CHF PAIRS FLASH CRASH? WHICH STRATEGY AND COD WORKS BETTER. THIS IS CRUCIAL FOR ANY ROBOT. THANK YOU
Is it possible to save values in an enum instead of an array? Probably you must be wondering why I want this, simple is to use ParameterSetRange And I listed some symbols and saved in an array however to use ParameterSetRange it is necessary that this list is in enum from the moment that I execute
Hi all I am developing EA. I am having difficulty in pragmatically identifying ranging market. Please help in this regards.
Hello MQL community. Can someone please help me with with following question: In the Metatrader4 client, you can enter an Equity-Limit whichwill close all positions and EA is stopped as soon as limit is reached. When transfering  the EA to a VPS, is this limit also transfered and will the EA also...
Dear Support, I have published my Expert Adviser 10 days ago, and till now it did not go live ! Can you please tell me what is the problem ? Thanks
Hi, new to MT4 but not trading. I’ve tried adding a bot to AUDUSD pair to test it. I also had a EURUSD chart open which I did not attach the bot to. However the bot placed trades on both AUDUSD and EURUSD. How do you make it only trade the pair it’s attached to? I want to run several bots and can’t...
Hi everyone. I have been trying to set a variable in an indicator and then pass it to an Expert Advisor. I was wondering if anyone can help me with what am I doing wrong and how I should get the values that I need. Brief explanation: I have been trying to get the 'double' value for expertVar[0] and...
Dear coder  pls help us this ea he can not open the touch the  upper and lower band he can open in early upper and lower band anyone fix this thank you 
Hallo, just want some help. If in mql4 I use:   double MG1 =  MarketInfo(Pair1, MODE_MARGINREQUIRED), so how to get the same result in mql5, since there is no MODE_MARGINREQUIRED in mql5 ? Thank you for any help
Hello is posible to use File functions with flag FILE_COMMON on MQL Cloud Agents?? Thanks
Hello! I'm using the last version of MT5 (build 1881) and I'm having some troubles in strategy tester with a custom indicator with 7 buffers. The indicator works perfectly when I put it in the chart and works fine too when I put it in an EA and runs the advisor in real time mode. When I run the EA...
Hi Anyplace on the web that you can get those strategy tester reports evaluated? Reports do a find job of the basic details if you only had one symbol on it. I love the amount of details you get with myfxbook.com and others but you cannot upload a statement as far as I know of. Anyone had any...
Hello  I wish to write an EA that sends a File to a server. I am aware of SendFTP but do not want the user to be aware of the FTP details of the server as via SendFTP the user has to specify them. Hence can someone provide a method sending a File to FTP sever where the server FTP details are  coded...
I was looking to import historical data to several custom symbol as quickly as possible and thought about it: 0. Open the file 1. Read the entire csv file 2. Convert entire file to rows 3. Convert all rows into cells 4. Convert all cells to time, open, high, low, close, volume 5. Import all data to
In the ExpertSignal Class of the Standard Library we can use the method PatternUsage (sets m_patterns_usage) if we want to use specific market models from the signal modules. The method has one parameter which is a bit mask. I don't know how to set up the bit mask correctly. I found this thread...
Hi everyone,  Does anybody know how I can make my EA click to the one-click button rather than using OrderSend() function in the code?
Hi, I have tried this code but I seems to get errors: static datetime oldTime;void OnTick(){if(oldTime != Time[0])      {      m_Trade.Buy(lot_size,_Symbol,Ask,(Ask-300*_Point),(Ask+500*_Point),NULL);      oldTime = Time[0];      }} 'Time' - undeclared identifier  1 error(s), 0...
Hi at all! i'm in test phase about 3/4 EA that i develop. For each 1 EA i examinate a poll of 38.000 - 45.000 test. so 1 session of complete backtesting of 1 EA need time as 8h - 12h (it change for result requests that i use). In this scenario i prefer disconnect MT4 connection (with account not...
I have an EA that I already use both on demo and production accounts. The EA works as expected on those accounts. However, I´m having issues with strategy tester. On ST the trade results are not accounted. All the trades appear in the history tag with the correct entries and outs, but the financial...
My EA uses some indicators that open subwindows (volume, RSI, Bulls bears, etc). How can I hide these subwindow indicators? It is hard to see the candles with a lot of subwindows... Tks by advance!
  Times and Sales  (4)
How to get info from times and sales? I know that has MarketBookGet() for the market depth, but not for times and sales.
Hi Everyone! i'm a beginner and i'm trying to create an EA which uses 3 Moving Averages . First i was using 2 MA, no Problem. But there a Problems with 3 MA. The Code: if (timestamp == iTime ( Symbol (),Timeframe, 0 )) return ; timestamp = iTime ( Symbol (),Timeframe, 0 ); double maFast = iMA (
Dear (human) experts, I'm struggling to solve this issue with my EA (read several topics/help and tried to use different EAs). I'm running a backtest, but the my sl/tp orders are not executed. They remain active and the prices seem to be frozen. I don't know if this is an issue with my broker, but I...
hi there my EAs keep on coming and making trades even after i closed the charts and deleted them and closed all the orders.i am using MQL5 VPS.please help me out
Is there a way to buy and install an EA on MT5 running under Wine?
Hi guys. I am trying to make a dynamic trailing stop. Instead of moving the stoploss every point in profit, it only moves the stop loss after X amount in profit. And amount of stoploss must be equal to distance between Takeprofit and bid. For example When price reached WhenToTrail variable, EA must...
Hello folks! According to documentation, MarketBookGet() has to be used after the EA was subscribed to book using MarketBookAdd(). So, we have the event OnBookEvent() always when the book changes. What happens if I use MarketBookGet() without subscribing, out of OnBookEvent()? I think about...