Expert Advisors and Automated Trading - page 59

  Ordercloseby  (3)
Hi Can anyone explain the code ordercloseby to me When I use it to close buy and dell orders it gives me error 3 Thanks
I must be really stupid because I can't figure out how to get the strategy tester to work. Every time I press "start" a second passes and then there is a toy beep. I don't understand this. As a newbie to algo trading I have also copied codes from YouTube videos but they also don't work for
I had a look and it seems it's possible but a lot of the ways I found connected to forex factory but because they have some kind of firewall in place it stopped most EA's that do this from working. Is there any other methods? I just want the EA to pull the news data and be able to turn on/off the
I am using metatrader 5 on a linux manjaro distribution through wine and I am having some coding problems. I am pretty sure the code is right but it keeps giving me compile errors on the OP_BUY and OP_SELL as undeclared identifiers and when I search in the Trade.mqh file I cant find them so
[Deleted]
I coded a Simple Trail Stop EA from a tutorial video that i found on the net. It compiled successfully with no errors. Here it is below. #include <Trade\Trade.mqh> //Create an instance of CTrade CTrade trade; void OnTick () { //We calculate the Ask price double Ask= NormalizeDouble (
hi, it seems that some times, in tester graphs get wierd and also the testing graphs don't clean one after the other (I don't have an image now) but if one ends in +20, the second drops 20 and the graph doesn't clean (I still see the last graph and the second one is a continuation) does any one know
THIS IS READY MADE FULL AUTOMATIC EA MAKE THIS EA SEMI-AUTOMATIC 1. FIRST ORDER OPEN MANUALY 2.THIS IS MARTINGLE EA CONVERT IT ANTI MARTINGLE
hello guys, i'm trying to get historical data on index to do a backtest of an EA. The historical data center doesn't work. It's not importing data, it's not downloading anything. I have tick data from dukascopy but the import doesn't work. I tried 2 different mt4, 2 different brokers and i have the
Hello, i am getting the below when publishing my EA, it fails validation, i tried with many lot sizes. can you help please test on EURUSD,H1 (netting) 2019.04.18 11:00:00 failed instant sell 0.1 EURUSD at 1.12706 sl: 1.15714 tp: 1.12514 [Invalid volume] 2019.04.18 11:00:00 failed instant sell 0.1
I coded an expert advisor. it's works on indices, not in currency pairs. but in the verification process, it only be tested on EURUSD pair. which 100% have issues when the EA operation. is there any method to process this EA for a indices
  EA from .ex5 ?  (1)
I'm not a programmer so I ask the following question. Is it possible to create an EA using an indicator that only has the .ex5 but not the .mq5
Can someone help me, I would like to sell my EA on the marketplace but it is not passing the rigorous inspection. Is there anyone who is experienced with helping others pass inspection
I currently running an optimization and in task manager I saw that not all my cpu cores run at maximum is there a way to make it run at full speed
Hi Everyone, It's my first post here. I am not a developer and I tried to ask CHatgpt and different tools for help in creating the code (hopefully I will learn the MQL5 and write on my own some day) . Could you pls help me with checking why I get some syntax errors? I gave up.... initial scope: I
  Roffild's Library  (49   1 2 3 4 5)
https://github.com/Roffild/RoffildLibrary Please do not delete or move this topic.
I need to create a custom Demo version for my EA., so I used the OnTesterInt(); function and update a flag if the EA was loaded to strategy tester. but the code doesn't works as expected. What I did wrong here?. bool OnTeseter = false ; int OnInit () { if ( TimeCurrent () < ExpireTime) // If
static matrixf x_norm2m(SAMPLE_SIZE1, 4 ); // matrix for prices normalize //--- request last bars if (!x_norm2m. CopyRates ( _Symbol , _Period , COPY_RATES_OHLC , 1 ,SAMPLE_SIZE1)) { Print ( "CopyRates error" ); ExtPredictedClass=- 1 ; return ; } // Ahora puedes
Hi, is there an easy way to get the ticket number of a Deal IN knowing a Deal OUT ticket? Given a Deal OUT ticket, how can I get a Deal IN ticket? Thanks
This is a thread for Metaquotes. It's quite weird that the forward test results are not saved anywhere or at least is not displayed to the user under some probably unknown circumstances. If for some reason I need to go back to old tests to get the forward results, I need to run the optimization all
I hope someone can help me convert this ea mt4 to mt5. I just want this ea to work on the "anytime" option. The other options do not need to be used
hi I'm using this (from an article): if (!rates. CopyRates ( _Symbol , _Period , COPY_RATES_OHLC , 0 , sample_size)) (but doesnt look like the ones of the docs ; why? int CopyRates ( string symbol_name, // symbol name ENUM_TIMEFRAMES timeframe, // period int
Hi I want to get the symbol name , can I do it with _Symbol or Symbol()? if not, any other way
Hi, when I read sample size, I suppose its the whole sample size, iow the length of the data. Is it the sample size or is it the steps in
hi i want to have a ohlc output from the model, and not sure if what I'm doing is correct, please tell me if I'm doing 0k if I have this input: n_features=x_train.shape[2] n_steps_in, n_steps_out = time_step,4 kernel_reg=l2(0.0001) n_kernel=2 verbose, n_epoch, batch_size = 1, 4000, 256 n_output=2
I want to reset my arrays. so I use ArrayInitialize(); function. the function has different types. but no matter which type I selected it only shows the char type input parameters. why is that?. The array I want to reset is a double type. I have selected the double type. but still shows the char
Hey guys! I'm facing a weird issue. I'm using the code available here in this article to test OpenCL capacities. The first time I execute the script everything works fine, as you can see on the log. The second time, however, I get the message "OpenCL not found". What could be happening? Is there a
My Expert Advisor uses some technical indicator (like RSI) for trading. but the EA loads all the indicators that EA use to trade to the chart when it's on strategy tester . I want not to load any indicator on the strategy tester. How can I achieve this
Hi all, is it possible to change color, and font dimension of the text displayed with the COMMENT instruction ? Please help me. thank you
I need some help with this EA don't add SL and TP on live trading but when i use it on strategy tester it works normal sorry if the code is missy I'm just using chatgpt for this the mean EA concept is to open buy and sell position at every new candle Open. Thanks
I have an EA I am working on but I can't get the trailing stop to work. The original stop loss is at the low/high of the candle we will call it Xrange and as price moves away from open I want to trail it by values of X the rules I am looking to implement are: when price moves away from the open