Expert Advisors and Automated Trading - page 166

  Strategy Tester End Date  (16   1 2)
There's any way (workarounds and crazy ideas are wellcome) to get the strategy tester end date in the optimization start method (OnInitStart)?
I have been copy trading on my personal desktop for a week and noticed it doesn't fully copy all trades maybe because of the connection. So I purchased VPS server over the weekend when the market was closed and suddenly it does not start copying trades? How do I fix this
  Symbol presets  (2)
Hi there community, I'm trying to set different parameters for some symbols by filtering them into the loop and I'd like to get some help. These are the lines : //+--- Parameters ---------------------------------------------------! int StartHour = 21 ; bool PartialClose =
I want to count how many times deal current bar If I Buy&Sell 2 times at current bar, it count "4". If I close my position at current bar, it count"1"
Hi All I have a problem with deleting a pending order/s after time. I don't want to delete all orders I just want to delete pending order/s after time. If you know the problem please help. for ( int Loop= OrdersTotal ()- 1 ;Loop>= 0 ;Loop--) { MqlRates Candle[]; ArraySetAsSeries (Candle, true
  Multipair test  (4)
Hi there community, I'd like to take a step forward into my coding knowledge with your well appreciated help. The main idea besides on the possibility of taking multipair tests through the 'SymbolList' input , I've been checking some samples but still need some help to fit this into my own way of
If an EA performs perfectly sometimes and at other times there are errors in the trade that it creates, does that suggest that the EA is fine, but there are other things causing those other errors? If it is indeed other things causing those errors, what could it be? Some of the errors I have gotten
Greetings fine minds. I'm looking for a bot that trades in the direction of the closing price of the first one minute candle of the London session open and the New York Session open. Basically, if the first candle closes as a Bear, the bot should Sell, if it closes as a Bull, the bot should Buy
Can someone please tell me what this code reads from the hst file? datapath= TerminalInfoString ( 3 )+ "\\history\\" +account_server+ "\\" + Symbol ()+ "240" + ".hst" ; ReadFileHst(datapath); static datetime previousBar; if (previousBar!=Time[ 0 ]) {
Does anyone know what I have to do to link MQL5 to MT4 and get a VPS on a Mac? What tabs/steps do I need to take? And is there any number for tech support? Thanks, Colin
Hi everyone, Sorry if this is a stupid question and has maybe been answered and asked before but I am looking for a EA that manages my manual trades. For example if I make a market order from my phone I want the EA to then manage the order if it goes against my trade like 10 pips lets say it adds a
Hi, How can I find out how many indicators are actif and their names (shortname) ? I know with ChartIndicatorsTotal() you can get the visually dropped indicators; but I mean the indicators used by an EA with for instance the iCustom command and that are not visual. Thx, Danny
Hi, I have a good pc (description below) , there's something i could do to improve the backtest velocity ? My pc : CPU - Ryzen 5 2400 g (overclocked to 3.9 ghz) 8 cores, so 8 backtests at the same time. Ram - DDR4 16 gb 2666 mhz HD - SSD nothing special. Does putting an m.2 ssd would increase
[Deleted]
I am having a problem properly coding OHLC to create signals for executing a trade on Candle[0] for my Harami EA. It compiles with no error but not executing trades . I have attached the EA below
Hello , When I test my EA on the strategy tester for 1 month it only stops after 1 day. I added a condition for it not to work on weekends by telling me that it would solve the problem but no. Do you know where the problem comes from and how can I fix it
Dear Members, I am trying to write an Expert Advisor with MQL5 that initiates buy limits based on certain EMA values. Here is the code that I have written in OnTick() function.    MqlRates priceData[]; //create a price array      //sort the array from the current candle downwards...
At Friday closing my new EA had open Sell orders with Entry Price < T/P and now the price is even higher. I also have open Buy orders with Entry price > T/P and now the price is even lower. Sounds incorrect to me or am I missing something? What shall I do
  Why is that?  (9)
Hello. The following function returns all properties correctly ( DEAL_VOLUME , DEAL_TIME ... etc), with exception of DEAL_PROFIT . double GetDealProfit( int num, int way, bool isout) { ulong ticket; ulong magic; string symbol; double DealProfit= 0 ; if ( HistorySelect ( 0 , TimeCurrent
Dear All Could you pleas help me fix Validation completed with errors. My EA have custom indicator.How to Validation completed
Hello, I need a clarification regarding the CSignalRSI.PatternUsage function. We have the 5 below patterns defined in CSignalRSI signal filter. int m_pattern_0; // model 0 "the oscillator has required direction" int m_pattern_1; // model 1 "reverse behind the level of
void OnTick () { if (MAPeriod1<MAPeriod2) { ArraySetAsSeries (ma1, true ); ArraySetAsSeries (ma2, true ); ArraySetAsSeries (close, true ); CopyBuffer (maHandle1, 0 , 0 , 1 ,ma1); CopyBuffer (maHandle2, 0 , 0 , 1 ,ma2); CopyClose ( _Symbol , 0 , 0 , 1
I want to save some histories of the optimizations in a CSV file. But sometimes not all deals are written to the file correctly. For example, maybe one pass had 2000 trades and only 3500 deals were written in the file. Or sometimes some of the data in a row is missing. I don't know what is happening
MT5 comes with 5 Expert Adviser for example this MACD Exper Adviser The default lot sixe is 0.01 How to increase the lot size in this Expert Adviser? Can someone tell Metaquote to add Valu input/lot size increase. KMA Trades
Hello there! I would like to know if anyone has any solution on this: very often i come to work on the EAs on the weekends when the FOREX market is closed. Although i have the possibilities for the backtesting, very often the live market conditions are necessary to get the full picture how the EA is
Hi folks, My EA was working fine since last week, but now some functions it's not working anymore. Then I figure out that all my positions magic number are returning "0". As I'm using CTrade class, I inserted the following lines: ulong EA_Magic= 1234 ; int OnInit () {
Hi I can't find any server my broker is NAGA. On the MT4 platform, I linked my MQL5 account. What could be causing the problem
Hello I have written an EA that sends notifications and creates objects on chart when certain conditions are met. I also am signed up for a Virtual Server so that this EA can keep running while my PC/trading software is off. I have been receiving notifications with SendNotification function at all
I have bought a VPS through MetaTrader and wants to log in to it. Needs IP VPS: username: password: How do I find that? Thanks
As long as the Return Code is not 10009, I can safely assume its an error but looking up on the list of return code here: https://www.mql5.com/en/docs/constants/errorswarnings/enum_trade_return_codes I couldn't find anything for 0. Here's a sample of the order check result
Dear whomever this may concern, Can someone please explain to me how to fix the "license verification failed" For whatever reason I am unable to use any expert traders or Forex robot on any of my mt4's on my laptop . I used to use one a while back but then for some reason I started receiving