Expert Advisors and Automated Trading - page 247

[Deleted]
Hello coders. Please help me understand how to draw a line joining the 10th candle close price with the last candle close price in an EA. Thank you in advance. MT5 user
I have an EA that is designed to only trade right before the close of the NY market. Majority of my code is in the OnTick function so it is unpractically slow when trying to backtest it in the Strategy Tester. My goal is to make my EA more optimal so that the code isn't being run through each tick
I have an EA that uses virtual trades as part of it's method, before following those by opening real trades, and have been told by the developer that this makes it impossible to run backtests. So, this got me wondering, firstly if this is actually always the case or if it is just a matter of coding
  VPS and EAs  (13   1 2)
Hi all, I am rather new to this activity and I have a fondamental question here. In order to trade with fully automated expert advisers, is it absolutely necessary to use a VPS? Turning this around, is it possible to be profitable from home with a computer running 24/7 and a latency of about 110-120
Hi, I want to get the history of the stop loss for a position. Example, I buy EURUSD with a stop loss at 1.1000. Then after one hour I move it to 1.1050, and I move it again at 1.1100. How can I get the list 1.1000, 1.1050, 1.1100? I read the documentation but didn't find anything. Thanks
How can I store the Ask price, then add 10 points to it, and when this new level is hit, store that, and then add another 10 points? It would need to be something like, stored Ask price, plus 10 points, then make this the target price, in which the alert will be triggered. So, I need the Ask to
  Trailing Stop EA  (113   1 2 3 4 5 ... 11 12)
Insert this EA to the chart and you will have the automatic trailing stop for all the orders opened. You may have two kind of T/S: - S/L is moving on the value of T/S from the beginning when the order is opened; - S/L is moving if the profit is more than T/S. Note: Put this EA to the one chart only
  CopyTicks & error 4014  (14   1 2)
Hi, To gather ticks infos, I use the code provided by mql5 with the strategy tester on EURUSD, M1, quality 100% : /--- the array that receives ticks   MqlTick tick_array[];//--- requesting ticks   int copied=CopyTicks(_Symbol,tick_array,COPY_TICKS_ALL,0,ticks);//--- if ticks...
[Deleted]
Hello everyone. I'd like to learn how to set a signal's expiry in EA's. Such that the signal is nolonger traded after, say four bars. I will appreciate your help. Mt5 user
hello, I have purchased (rented) an EA today, but the final process of downloading was not successful. Now the money was withdrawn from my bank and the rental time is passing by. The seller tells me he cant help me, I should contact mql service. I dont get any response either. I am a bit...
//+------------------------------------------------------------------+//| Global Variables |//+------------------------------------------------------------------+#include <Trade\Trade.mqh>CTrade
Time Current () and StringToTime () send me the same thing. What is the mistake ??? Print("CloseTime:"+HistoryDealGetInteger(ticket,DEAL_TIME)+" Time current:"+TimeCurrent()+" Time Convert:"+StringToTime(TimeCurrent()));
The Forbidden Fruit EA This EA is very profitable when the market is ranging. It can achieve more than 95% to 100% win rate (long & short). This is a semi automatic EA. The user must manually enter in two prices inside a range (highest price range, lowest price range) for EA to trade. I just
I have managed to read this thread: https://www.mql5.com/en/forum/138912 and not know how slippage for the OrderSend() function is defined in index points since it's about currency pairs in there. For example: with my broker I am able to trade 2 symbols for the german DAX index (or Ger30, if you...
Hi guys, I get zero values in the Strategy Tester result page: Did anyone ever face such a "funny" result page? What I did: 1. Select ranges for the parameters of the EA so I get 20 combinations. 2. Press "Start test" and watch the progress bar working slowly through all 20 combinations. Checking
I can't understand why tutorial about custom module of trade signals works and can be found in the wizard, but my module can't. This is my custom module of trade signals. Include\Expert\MySignals\KeltnerChannelSignal.mqh //+------------------------------------------------------------------+//|
somebody help me with the code of an ea based on two EMA where they meet on an uptred a buy order is placed and on their next crossover the buy order is crossed and a sell order is open and vice versa
  See the orders open  (26   1 2 3)
Hi, I´m trying to understand how I can now if I have one position open like. Because If I have a open position I will wating the stoploss or takeprofit close the order before open a new. I´m using this code in the backtest to see the result, but all the time the PositionsTotal show 0. Example: void
  trendline alert  (2)
Please assist, I want to get a notification if the price touches the trendline If anyone knows a script to help please assist thank you
[Deleted]
Hellow everyone. I have added the handle of my custom indicator to my EA. As a result, the EA draws arrows in strategy tester.Problem is, I cant figure out a way of using the arrows drawn as buy and sell signals. Please, I need some help
[Deleted]
Hello there. Is it possible to calculate the moving average of an RSI. please show how if it is possible
[Deleted]
Hello everyone. Please help me figure out the best approach to calculating the open price of every new candle. Thank you in advance
Hi, I just finished watching this video: https://www.youtube.com/watch?v=ZO68JEgoPeg&t=1s and I found it would be good to have anything like this new C++ string_view in or MQL5. My question is: is such a feature already implemented? Or is there any library that implements that
  Preventing overfitting  (23   1 2 3)
I read the article https://www.mql5.com/en/articles/652&nbsp;-&nbsp;MQL5 Cookbook: Reducing theEffect of Overfitting and Handling the Lack of Quotes and actually tested &nbsp;some of itsresults myself, but they are not especially overwhelming (one of theassumptions made in the article regarding...
Hey Guys, I subscribed to a signal by mistake and now I want to run my own signal. After how long can I start my own signal Please let me know what is the procedure of that? Best Regards
Hi, everyone! I've tried to run an optimization and the EA Journal at the Strategy Tester got flooded by the messages shown at the picture. While debugging nothing goes wrong and now I don't know what to do. Any ideas, guys? Best regards.
Hi this is my first time here sorry if this is the wrong place. I just started having this issue today, the code was working fine before. I'm using mt5 and getting "Error loading - wrong type." This is very frustrating for me because I cannot run any ea's as of today. Any guidance would be
I'm using a demo account right now and trying to play around with exper advisors scripting. I'm trying to reporduce that tutorial: https://www.mql5.com/en/articles/5691 but I still get error: Connection to localhost:9876 error 4014 Any idea why it isn't working? The python server is runnig
Hi im trying to make EA based on custom indicator values but in data window i see only one buffer, either than this its empty when i point the mouse of the arrows any help ? i tried this but didnt work double SignalBuy =iCustom(NULL,0,"pattern",0,1);double SignalSell = iCustom(NULL,0,"pattern",1,1);
I know how to drawl trendline using trend object but I have no idea how can get trend slope as manual drawing here manual can drawl both upper and lower trend here object Here my code Trend_Line(Time[0],Time[65],Close[0],Low[50],Gold,STYLE_SOLID);