Expert Advisors and Automated Trading - page 306

Hi all, It is my first time running a VPS on a demo account and I have a slight problem: I have bought a VPS for 1 month and would like to test 3 EA's on 3 separate accounts - Is it possible to do it without having to pay for another VPS? If so, could anyone please let me know how to di it? Many...
[Deleted]
Hello everyone. Is there a way of calculating how many of the last six candles were bearish or bullish? I 've tried but I keep getting the array out of range error
I have an old code MQL4 indicator, I want to use it to create EA but in new MQL4 language. How to change this part of the code from int start() (which returns value) to be void OnTick (which don't returns values) ? int start(){if(Bars<=10) return(0);ExtCountedBars=IndicatorCounted();//---- check for
Friends, I'm having trouble trying to save times & trades data to a text file. I am trying to save this data in real time, but always the last trades executed in the market are appearing repeated. If I use the Print () function to display in the console the last volumes of executed orders, they...
Hello, I try to read out and compare price at fixed time every day. I use few time/date/string management functions, however I got stuck at StringToTime conversion, instead returning number of seconds passed until requested hh:mm:ss it always returns seconds at 00:00. For example with the following
I am about finish an EA, it works accurately on my MT4 platform on tick by tick trading, it trades on the strategy tester, 2 warnings no errors, and yet it fails validation check at the marketplace, saying invalid ticket problems where can the mistake be? is something on my MT4 out of date, or
Hello there, I´m starting with MQL5 just recently. I´m learning how to make robots and I`ve done a really simple code: //+------------------------------------------------------------------+//| ProjectName |//|
[Deleted]
Hello programmers! Can anyone please help me figure out a way of calculating the tangent of a moving average then find its gradient Please
Backtestingwas working fine a few days ago, I sit down today and update MT5, then this occurs: https://imgur.com/6Kw83NG (Straight Line) This has happened many times before, but it is a quick fix in the custom symbol settings for me. The usual fix did not work this time, so I tried default
When a time is hit, I want to store the current price in a attribute. That attribute does not change. I know to use datetime, and Bid. But Bid will refresh on every tick, I assume. It is for data release buy/sell stop strategy. The second data is released, store currentprice. Then set sell/buy...
Hi Is it possible to take on a piece of data and simulate a buy/close order and know the profit ? Thanks in advance
Hello, I am trying to validate an EA but received message from automatic validation, but it did not mention what are the errors. Anyone could help me how to pass for the automatic validation? I had developed an EA just for Brazilian Market but here we do not have many EAs published and someone to
Hi there, I have a custom indicator that is drawing objects on the chart (support and resistance) but there are not helpfull buffers and I don't have the mq4 code for it (only ex4). My question is if there is a way to find if the price is inside an object from the chart. I'm adding a picture as it
[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