Expert Advisors and Automated Trading - page 84

To post a new topic, please log in or register
Hello at first i back tested my ea with spread of 3 as it the average of my broker for usdjpy without any errorbut if i tried 0 or 6 or 7 almost half of the trade won't be triggered because of error 138, is there any solution to that, will that affect live or demo trading?
Hello Everybody, I am new here, I decided I would like to create an Expert Advisor. I am busy getting familiar with MQL5 and it is going great! I thought I would start of by creating a simple MA crossover EA, and so far so good. BUT  The problem comes in when I need to open a trade.  I want my EA to...
sedeghop
Hello, could someone give me a script with hotkey,  for buy,for sell and for close one time? with stop loss in points,slippage in points or in pips. five digit broker. 
Hi guys and girls, I am looking for an EA that does the following: Wait for newsAfter news has come out, assess market direction (buy or sell)Wait for the direction to change (looking at support and resistance)And at the point it detects a change in direction, place a tradeDoes an EA like this...
I have trouble to stating  the initial AccountEquity before any trade opened. Below code is not working because once a trade was opened the initEquity return 0.0 again. double notradeEquity(){   double initEquity    = 0.0;   double nowBalance    = AccountBalance();   double nowEquity     =...
Hi all I can't program to save my life so would like to know if this Ea/indicator is possible before I ask someone to program it me through the Freelance service. A Multi RSI Indicator but taking RSI period 2 taken from the Heikin ashi candle and not the normal candle So it will look something like...
Hi to all. I wanted to know about autotrading robots with minumum lots like 0.10 and i need your help. As i am new here i dont know which robots are best for scalping and with minimum loss thanks I appriciate your advise
Hi, I can't find Correlation(Profit,MFE) , Correlation(Profit,MAE) value in TesterStatistics. How can I calculate the MAE-MFE Correlation? or introduce ready class library for it?
  Tick modelles (1)
Hi, What is the meanning of tick modelles, Can I take decision using 60% tick modelles ?
hi guys, here is classical code, but OrderGetTicket() always return 0 even if i have a lot of orders OrdersTotal()is ok why ?   uint     total=OrdersTotal();    //--- go through orders in a loop     for(uint i=0;i<total;i++)       {        //--- return order ticket by its position in the list...
hello, now I need operate different period in my EA,  requirement: 1, loop in MT5 periods, like h1,h2,h3...to mn1. 2, print period in loop which working, like PERIOD_H1, PERIOD_H2.... processes like below for (iPeriod=h1, iPeriod <=mn1, iPeriod++)   { analyze iCCI on iPeriod;   //some operations...
Hello ! I'm currently setting off an EA and when i download historical data from metaquote server i figured out that i have to modify the start trading hour from my set files which are set for gmt+2. My question is: When i'm backtesting my EA, on which GMT time the metaquote data are set?? Thank you...
  Free Margin (1)
Hello. I have a question regarding the AccountFreeMargin() function. Genrally you can open new positions unless the Margin level is >100%, i.e. free margin >0. But many brokers still have a delay between time when the order was sent and time when the order was opened. While the AccountFreeMargin()...
Hey guys in MT4 I used to have a very helpful script where it would detach my charts so I could use them on my multiple screens. is there anything like that for MT5? thank you
Hey, I'm kinda of new in MQL5. I have a EA that buys one stock first (let's say PETR4) and then buys another one (let's say ABEV3). The  only problem is that I can only order the second one when the first one is executed (not only placed). I used the MqlTradeResult.retcode to get the return number...
Hello everyone: I have a question, How pass arguments of any type to a fuction, for example: string StringConcatenate_MQL5(void arg1, void arg2, void arg3, void arg4){ string result=""; StringConcatenate(result,arg0,arg1,arg2,arg3,arg4); return result; } Call to function: string Vars...
Im debating doing it. What it would take to maintain a version in both codes. If it would be time better spent to remain strictly on just one version. Opinions?
Hi everyone Can anyone post a piece of code for adding multiple positions (ie one sell and one buy) without closing the previous one(s) Thanks in advance Dada
Hi, guys, first ever post. I've been coding with the mql4 language for a few years now :) but my latest EA is worrying me. So far it is showing profit in a demo, but It starts over 200 trades per week! Clearly slight changes in the spread value will have a massive inpact on the outcome of profit....
Hi I would like to know whether it is possible to suspend/ cancel a signal programmatically. This is a very important function that should be included as the signal keeps opening trades even after you close its current positions. the only way is to suspend or to cancel the subscription before you...
In the history data of m1 I have a hole - ok, can happen. E.g. if I want to 'start to feed' as of a date that is within that data hole I get the last existing m1-bar so to say the left end of the hole: datetime tA[], t0 = TimeCurrent() - 5040000; // ~60 days => ~ 2017.06.14 02:46:10int nA =...
When I tried to publish my EA it is said that - I have to add #property strict code in my EA However, after I did that & when I tried to compile new 43 warnings & 6 errors came out from nowhere!! Here are some example: 1st warning says: implicit conversion from "number" to "string" & it indicate...
Hi guys. I have some questions, I hope someone could answer its. I have created some EA's from the std library (MT5), as for exemple: SMA (5) + SMA(10) +  Stochastic (14,3,3) + RSI (9) (four indicators) to apply to a lot of symbols. 1- I have tried to use it in  1H, M30 Charts and I see that when...
Hello, An indicator will draw a H.Line on the window. Can any indicator (same or different) see that H.Line? Is it possible to create some condition like the following? Eg.  ***if(there is a "dotted red H.Line")  do that;  else do this.....*** Thanks for helps
Hi, people. In my EA, I am using the AdoSuite.dll library to connect to a database, save data, make some calculations externally, and return the results to EA. During the Strategy Tester Optimization, I am able to process the EA among the local cores, but I can't make it work out with the remote...
  Metaeditor (4)
Is there any way to stop metaeditor's auto-complete from recommending methods which are not made public? For example,  class MyObj : private CObject{}; Now the autocomplete still recommends the public methods of CObject despite them not being available to the compiler. 
Hi, the website from the MQL5 community offers extensive filters to search for signals: max drawdown, trading time, subscribers, etc. BUT I haven't found yet how to filter between signals on real accounts and signals on demo accounts. Indeed, when training on demo accounts, it is only possible to...
  SIGNAL DELAY (6)
Hello! Does anyone know, how much the delay between the sender and the receiver is, if someone subscribes to a signal? 
Hi, I'd like to close part of the pocition. Eg. the opened position = 1 LOT. And I would like to close 0.7 LOT. I am using the function PositionClosePartial, but it does not work for me. Maybe because of the last parameter "Deviation", as I could not find what are the units of deviation (But I have...
Hey guys, i hope you can help me. the code is  //+------------------------------------------------------------------+//| Script program start function                                    |//+------------------------------------------------------------------+void OnStart()  {//---      double...