Expert Advisors and Automated Trading - page 396

Hey guys, I was just writing to ask if anyone knew an easy way to mirror an ea? I have seen countless ea's that make loss after loss at about 90% accuracy of losing trades lots of the time with larger stop losses then take profits so was wondering if there is a way to easily make it so that it...
For the platform of my broker, the execution type for market orders is instant execution. In this case, should I identify a deviation for a pending order? Thanks.
When EA uses different indicators with different timeframes then Strategy Tester adds corresponding charts. I like to see on all these charts "Line Chart" mode instead of "Bar Chart" mode. When I change mode on charts to "Line Chart" that setting stays alive only on first chart when I start Strategy...
[Deleted]
Hello fellow traders/developers. I've found WebRequest function in the reference doc [1]. According to the doc there are 2 types of the function but I'm not able to convinced mql compiler to use the 2nd one. My intention is to send HTTP POST request to my json web service. Hence I'd obviously need...
[Deleted]
Hello forum, good day. How could I make a function that checks the previous 10 candles/bars and determine the lowest close price of those candles/bars? After this I need to check if Close[0] < LowestClose and then assign StopLoss = AskPrice; Best regards and thank you, codeMolecules
Test result in MT4 Build 765 from Mar 2011 to Mar 2015: deposit 1000$ profit 8979573$, drawdown 32.06% Is it ok? Bars in test 2195 Ticks modelled 12004205 Modelling quality n/a Mismatched charts errors 303 Initial deposit 1000.00 Spread Current (2) Total net profit...
Hi, I'm trying to find a broker who has cent/nano/micro type accounts which is seen as standard account. What I mean is when I deposit $50 into a cent account it is converted into $5000 cents, but when I subscribe to a signal all of the trades are executed as 0.01 lot, which mean the account is seen
Hi guys, just getting started with forex and some experience. I was in stocks for a long time so I understand a lot of the technical analysis. As a means of getting started I was looking at signals or EAs as a good way to see if I can automate a income. I noticed the Signals are not that...
What&nbsp;are the meanings of first column (two uppercase chars at the beginning of every row) and second column (a single digit, I can see only zeroes in my logs)&nbsp;in the log files?
  TickSize = 0 ???  (3)
OK Here's my problem: I create a double on the global scope called   TickSize Then in the Oninit function I put...   TickSize = MarketInfo(Symbol(),MODE_TICKSIZE);  The EA complains that this is zero and it is messing with the division. I print it and sure enough it is    0   No Decimal points just...
Hello, For several days I cannot test my EA due to the following journal entries (EA exiting at the beginning of the test session): MT5: 2015.03.16 15:32:07 Core 1 EURUSD: bad container not fixed 2015.03.16 15:32:07 Core 1 EURUSD 2014.01.03, damaged container found, must be resynchronized
hi i would like to know if there is a possibility to do backtest on an offline chart i have an EA place on a regular 1minute chart that trace an offline chart base on constant range bar    i need to do back test but i see only regular time chart on setting in back test.   is there a way to make it...
please can someone help me with handy code to close all buy or sell when takeprofit is reached or hit please help me i didnt know all code loops please.thanks bellow is what i even i try to count down order but yet after that the countdown loop will not work with mt4 strategy test it hangs it so...
Hi Fellow Traders and Coders. I really wish that Meta Trader 4 Strategy Tester is like Meta Trader 5 Strategy tester because Meta Trader 5 terminal strategy tester is a lot faster. T T Really the slow speed of MT4 terminal strategy tester sometimes bottlenecking development work. I am sure it is...
Hello Masters in the house, Please I need your help seriously, I coded an EA and it works fine on demo accounts but it is not working effectively with real account, sometime it will open just one or two orders out of about 10 symbols on different charts. Sometimes it won't open any position at all,...
Hi Fellow Traders and coders. I have some interesting problem giving me some hard time to resolve several days. Recently I played with OBJ_LABEL on both MT5 and MT4. The code is shown below. The aim of this code is to write some text on indicator sub window (separate window from main window)....
Hi: Sorry for this - but I remember a few years ago there was a discussion around this (I hope I remember correctly). If certain criteria are met - the EA activates a function of some sorts in order to close the workstation. If one or more of you remember this discussion - would it be possible to...
How can I test an Expert Advisor in automatic trading mode using a ticks.csv file I have previously downloaded? Thanks Joe S.
I want to make an EA to execute automatic trades based on my custom indicator. How would I add this to an EA? Thanks Yes... I'm new to EA programming
  datetime sums  (1)
I'm hoping someone can confirm this for me, since I'm having a difficult time with an EA adjusting for timezones. if I have a datetime value, and I want to add for example, 3 hours to that time, could I use this? datetime RightNow=TimeCurrent();int Adjust=3; //3 hours adjustdatetime...
Hello, I'm looking for information if MT4 support MQL5, because I'm not sure for that. Thanks for reply.
[Deleted]
Good Afternoon ! Any one have a clue on this ? If I have an EA with 2 iMA (for example) and each one has its own ENUM_TIMEFRAMES/ period. If I want my EA to run both separated timeframes and unique timeframe using a key to compare my concern is when using single timeframe mode, Strategy tester...
[Deleted]
Hello community, this is my first topic.  I am trying to build my own DLL for Metatrader 5 using C++ and Microsoft Visual Studio Community 2013. I just coded this simple function here:   #include <string> using namespace std; #define _DLLAPI extern "C" __declspec(dllexport) _DLLAPI string __stdcall...
good evening, Im trying to add a costum optimazation paramater to the EA strategy tester and i have two questions about it, What i'm trying to do is to seperate my data from a single optimazation run, lets say from december 2014 till februari 2015 into data from single months. I'm trying to create...
Looking for an EA who is buying / selling based on earnings announcement of a stock immediately in the first second after release. Decision if buy or sell order is made depends on the fact if analysts expectations are beaten or not. The hardest thing is reaction time, I assume need some pretty...
Hi, i am Peter, i started yesterday my first DEMO-Trading on the MetaTrader 4 Platform of QTrade, but after a trial of 1 month i want to change in a Live-account. I am excited about the possiblities, and hope to find some advice on this platform. I am thankful for any advice, because i am a...
Hello. I would like to know if the code of a script is the same or at least similar with an EA's code. If for example i order a script, and then i want to attach it to an EA, can it be done, or it will need to be written all over so that it can be inserted in the EA? Thank you.
Hello, I have only been learning to code with MQL4 for a couple of months and I am looking to write an EA which opens a trade when MA cross and closes the trade when they cross again. I need a helping hand as the EA won't seem to close the trade. Thank you. Here is my code: extern double...
I am a new person to EA and have been playing around with back testing an EA i found. I have got it to the position now where i want to REVERSE the buy and sell instructions in the EA - so where currently it is set up to buy then i want to change that to sell short and where it is set up to sell...
  Error 132  (4)
Hello everyone, I'm new in the community and I am writing because I have a problem with the opening time. For example with the DJI, the first bar daily after the close of the market opens at 00:00, but my broker opens 01: 00. The problem is that I use an EA that opens only at the beginning of...