Expert Advisors and Automated Trading - page 129

To post a new topic, please log in or register
Hello, I know that most people in Europe use a comma instead of a period for the decimal place, and I am curious about how MetaTrader 5 and the MQL5 editor and compiler handle this. 1. When Europeans type in a decimal value in the MetaTrader 5 user interface, do they use a comma or a period for the...
Hi, Guys, I tested some EA history, some result were good, but some result were blank, is there anybody knows the reason? please help me, thanks a lot.
Hi, Does anyone know if a free Non-lag zigzag EA is available out there? thanks! jeap
Pls can someone explain this senerio pls,I use this code to tell make the EA wait for some seconds but my problem is when its Attached to each symbol said like EURUSD, and gbpusd after number of wait is completed it loop in to another pair time and Made the pair to wait again ,there by creating...
Hi all - I am new to this and trying to host on a VPS a particular strategy. I was reading through the rules and notice a 32 chart limit? Is that true. Can i not have more than 32 charts open on the terminal and host that on vps
  Drawing lines (2)
Hi,  Script to inform prevHigh and prevMin on D tf. However, trying to drawn lines to represent it. Not sure what is happening. Any idea ? trying to draw H_Line to represent prevHigh and prevMin.  Using two functions: High,   HLineCreate(0,highlevel,0,0,AntColor,AntStyle...
Hi to all the community, I'l like to set my EA to take one trade at time because is entering a position so many times at the time (my EA is based on take positions at the crossing of two MA, so each time the lines crosses it takes a trade, I'd like to take the trade just one time when the lines...
It appears that FileIsLineEnding does not reset the EOL flag when called. This makes it impossible to use it to iterate over lines of text in the following fashion: 1   while (!FileIsEnding(fh)) {2      while (!FileIsLineEnding(fh)) {3         words[i++] = FileReadString(fh);4      }5   } The first...
I coded a basic price calculation for an MT5 oscillator and it calculates correctly you can see after the second vertical line, the value is 0 to the end the problem i have is that it stops 10 candles early and i really dont know why it does this...
Hi all, I want to create some functions to return some signals and put them in different files to have more order in the void OnTick() function. So my problem is this. In another file I want to declare the function like: int fun_to_declare(double *array) {//some thing to to} And in the main ,...
Hello All ... I'm doing mql4 coding since the early days of the language ... Since few months I have been thinking to post this or not ... It is not personal to any coder here as I believe it is a fact that all must take care of it ... (correct me, if I'm wrong !) ... You may noticed that 10's of EA...
Hi, So you might question as to why I would want to do this? I have a very sensitive (time/price) EA on MT5, but it doesn't fire very often, so I want to use the funds in that account to be used with some MT4 EAs and Signals. I have found a MT4 -> MT5 copier, but it synchronizes so any trades...
Hello, whats a good way to check if a specific lotsize (lets say 0,11 lot) is allowed on a trading account? It works on accounts with MODE_MINLOT = 0.01 (or 0.01) and MODE_LOTSTEP = 0.01 but e.x. would not work on accounts with MODE_MINLOT = 0,1 and MODE_LOTSTEP 0,1. The next accepted value would be...
hello, with MT4 the issue is clear by addressing iCustom(.... [1]) Bar 1 instead of the latest Bar 0 for example. How would one get - previous -  values when an MT 5 EA is using a code like, let's say GlobalVariableGet("Indicator_EURUSD_5_CURR"); this code shows the latest value. But the Bar [1]...
[Deleted]
Hello, please i need help for the mql4 code for ea to open a second order when the first order is having some points in loss.. 
I'll start... I've been chasing a bug for hours and felt I'd share my new-found wisdom... In case you aren't familiar with scope resolution - you might have run across some code where the function name is prepended with two colons and wondered why... string symbol = ::Symbol(); This resolves...
I was looking for a way to create a combo box for the input variables.  I came across the following example: enum __in{    _p1, // value 1   _p2, // value 2   _p3, // value 3   _p4  // value 4 };extern __in check = _p1 It works beautifully and I have adapted it for my needs.  My question is...  What...
I have the problem that when i run a backtest​ in strategy tester​  ​​on a new installation of MT5 using the standard sample EA called "MACD Sample.ex5" i get no trades on my demo account with FX.COM. I have attached the EA. The EA is unmodified and comes with FX.COM standard install for MT5 for...
Hi, I used ObjectCreate to put some objects on the chart within the strategy tester. However, TimeCurrent and the bid price seem to have no effect. I want the objects to move with current as well as the bid price but they remain static. Any ideas? void OnTick() {    ObjectCreate(0,"test9999"...
i Got a problem when i test my EA at backtesting. anyone help me about this error? Label Delete: failed to delete a text label! Error code = 4202 Regards.
hi guys, it happens my pc get frozen and i ve forced to reboot it... Anyone has experimented it? Im using EA on MT5 Thanks
Hello, im trying to use this indicator -> https://www.mql5.com/en/code/11432 inside of my EA, but via iCustom i cannot obtain the candle result, how i can export data from this indicator to the iCustom ? if possible can you provide me an example of iCustom call ? I tried to add an buffer and store...
I want expert's properties appears when user clicks on the properties button on the chart, i know how to design and code it, i just don't know what function shows EA's properties, can someone help me please
I need help on this. I want to add some coding to my EA. I need to add new same order as previous when equity drop to certain amount. Really appreciate your help.
  Heikin Ashi (1)
Can anyone tell me how to detect when the trend direction changes from within an EA?
My cashmarket trailing stop applied to Forex is failing, sending this error code: 10036 - Invalid return code of the trade server Anybody with some clue? Thank you. Daniel
double margin = AccountInfoDouble(ACCOUNT_BALANCE);double tickValue = SymbolInfoDouble(pSymbol,SYMBOL_TRADE_TICK_VALUE);double tradeSize = margin / tickValue; Initial money: 100,000 SYMBOL_TRADE_TICK_VALUE = 1 SYMBOL_TRADE_TICK_SIZE = 0,00001 Ask Price = 1.11225 Running the code above I'll get a...
[Deleted]
I wanted to try optimization in the cloud today, deposited 10$, setup all optimization parameters, turned off local cores and local network and when I hit start I get an error 2017.05.21 14:27:26.124 Tester  no agent is ready, optimization not started The optimization does work using local cores,...
Say I have an EA that execute based on tick level (Bid Ask) information, is there a way to backtest it with tick level information in metatrader? There are two problems: a. it seems metatrader only supports 1 min chart and tick level are simulated (not accurate) b. where could I get the tick level...
do some body have the template for inserting magic number in EA i have an EA and i want to insert EA to avoid closing my other open trades