Expert Advisors and Automated Trading - page 82

To post a new topic, please log in or register
How to call a function after each 45 second? Period of call function = 45 second
Hello, hope i am posting in the right topic. I've been trading Binary Options(never tried Forex) for some period of time, on other side i'm happy that i've learned many things from it, but in the other side, the profit results we're none(let's not go deep in my history, binary options in my opinion,...
Hey, When i'm going to test the EA TMA this happens in my diary;  2017.09.12 02:27:43.045 Core 1 2017.09.11 23:41:00   CTrade::PositionOpen: market buy 0.20 EURUSDmicro sl: 1.18938 tp: 1.20438 [invalid fill] For what i have searched the error is in the codebase of the EA but i don't have acess to...
Hi, am programming in C# and wants to use my code to backtest RSI settings that I then wish to program in MQL.  DOES THE CALCULATION LOOK CORRECT BELOW? I'm using SMA-method for the calculation. In the example below I will have a setting of RSI 5 1) Calculate ChangeUp and ChangeDown for each bar by...
Hi My adviser does not want to trade. It compiles without errors but for the love of me doesn't open or close a trade. What an i doing wrong. Take note this is my first attempt so i might have missed some functionality. Any advise would be appreciated.
Hi ! Here's the error message I get using and indicator on a EA. It worked perfectly, then show that. Unfortunately, I restarted the terminal so I can't copy past the exact log. Anyone has experienced such an error ? PS : it worked 'til now.
I have a problem with the condition for example to buy orders. I want that the EA is opening an order when following conditions are met: (GoLongSandR=true and(Pattern1=true or Pattern2=true or Pattern3=true) That means always SandR + Pattern(s). But it is opening orders when any of theses Patterns...
Hello All; I have an iCustom call in an EA. It works fine in live mode. It was working fine in Strategy Tester as well - but no longer does. I have not made any changes to any of my system. The log in Strategy Tester has the following messages: 2017.08.17 19:33:18.036 file...
Hey, does anyone know if this EA are already made: In the EA you set a price that says to the EA that "if price closes beyond this point (close above if selling, and close below if buying), then the trade should exit. You should also have the possibility to set timeframe in the EA (if it closes on 1...
Tenho m EA que disparou a dar ordens sem TP, em um único par, mesmo tendo ordem para dar no maximo 20 ordens. Preciso de uma linha de programação que limite o numero de ordens por magic number, para reforçar segurança do EA Desde ja agradeço
Hi All, Kindly let me know if it is possible to write an MQL5 code to automate this task. A. Download csv File from http://abcx.com B. Save or replace it in \MQL5\Files folder I have tried with #import "shell32.dll" and #import "wininet.dll" but seems not able code them to work properly. Any working...
Hi There, Can you kindly assist me with how to obtain two previous ZigZag Swing Dates?
Hi, I have coded an EA that is guessing future trend. I would need to draw that future trend on the chart by displaying a zig zag line shifted to the right of the chart. From that post, the guy is asking about "How to draw something in future time coordinate ?" for indicators. I can see that it is...
Hello I am new to developing EAs I am developing an EA that Has Sort of Martingale in it so sometimes it goes to high drawdowns in equity but most of the times eventually close in profit after looking at the test report i cannot figure what is the minimum balance needed for the ea to run smoothly...
I wonder why last value of MqlTick return 0.0? Here the trivial code void OnTick()   {    MqlTick last_tick; //---    if(SymbolInfoTick(Symbol(),last_tick))      {       Print(last_tick.time,": Bid = ",last_tick.bid,             " Ask = ",last_tick.ask,"  last= ",last_tick.last);      }    else...
Hi coders. After running a walk forward analysis, lets say my 'walk forward efficiency ratio' is acceptable. After that I'll have x-period optimized inputs. Question: which inputs from which period do I need to consider to run my EA no live account? Maybe the inputs of the period with the best...
Hello all, i am new to MT. I am wondering is it possible to write a code so that i can plot the chart timeframes which are not available as standard. For example, a single candle which is equal to 2 day, 133min, 7hour etc? Thanks for your replies.
Hi, I am having trouble with my MA Crossover EA. I wanted to enter sell positions only when the price (that is set up as 1 day MA) crosses 14 days MA from above.    extern int FastMA = 1;   extern int SlowMA = 14;   extern double LotSize = 0.01;      extern int ticketSell;int OnInit()  {...
hi guys, I'm a newbie with no programming background. I start to self learn writing EA by reading other free EA online and also the Help Manuel in the EA editor. The progress is ok so fair. However, some times I face some fundamental problems that I can't understand. I hope that u guys can help me...
  EA help (1)
I have no knowledge using MQL however i created an EA. Can someone assist in reviewing my code to see if the EA would work as it is and if not what I can improve on. Any help would be much appreciated. 
can anyone create an ea to detect alert message box? when alert message box pop up then send push notification to mobile phone. Because i have seen many indicator only has alert message box but don't have push notification to mobile phone, and they are ex4 files which cannot be edited, so it is good...
Iam trying to test an EA using the strategy tester but it gives positive results(as i programmed it) for the first few ticks and then stops following the programmed instructions, Apart from the sleep() function ,what other disadvantages can one face while using the strategy tester??
any one who is good in coding eas .i have an EA but im struggling to code it to work under a certain account. like lets say im giving it to my client i want it to work only on their acc . if the acc is 24689 then it should work only on that. anyone that can help me im gonna share the EA with because...
Hello! I am a complete newbie to EA programming and managed to get an EA together through the free EA generators. The EA works just fine, but when the signal gets triggered, the EA keeps opening trades until it runs out of margin. Please, could somebody help me with limiting the EA to only one trade...
I have two EA that file open very frequently. The 2 EAs are bonded with same files. The EA reads a file per every 100 ms. and all opened handle has file close function, and error exceptions. But severals hours from first start, the eas stops and cannot access files. I want to know there is any...
I would like to ask how do you write an EA that execute market order regardless of the price with SL and TP at specific time everyday? Eg, execute market order with fixed TP and SL for USD/JPY and time 8pm everyday. 
Looking for a walk forward optimization tool for MT5. Thank you
Hello all gurus. I have zero knowledge in programming. So I may sound a little silly with my question. I would like to use ILAN MA, but to add in the following features :- 1. To have user able to specify a number, e.g "5" that would delay by 5 positions from the trigger signal. For example, signal...
hi, can someone add sound alert in indicator, which creates sound alert and email alert when dot change color and signal line cross envelope. thanks in advance