Expert Advisors and Automated Trading - page 202

hello, I have a multiline separate indicator with 4 line graphs and I want to print the latest value from line index 2 from TDI indicator I tried this //Expert advisor double buff[]; //buffer array int h; //handle for icustom chart int OnInit () { h = iCustom (
I've just purchased a grid EA and I've noticed (via backtesting) that it needs to be reset periodically. What is the safest way to do this? I've asked the developer and tried to do my own research but I'm hoping to gain extra insight here. The bot will be running on a VPS . So I assume a reset would
Hello everybody, I have a question for you: Has anybody a code that allows me to setup a take profit based on the whole basket of buy/sell orders open? Let me explain... Let's say I have 1 buy order with TP se at 20 pips, the market goes against, I open another order and I need to setup the TP for
Hello! Could someone suggest robots with the break out feature, i.e. setting that allows you to limit the loss of the balance, as occurs in signal signatures
Hi All, I hope you are all well safe... I am currently trying to put together an EA that is only allowed to take LONG/BUY positions above the Senkou Span A and only allowed to take SHORT/SELL positions below the Senkou Span B. So for example, say the price crossed the lower bollinger band and i
Hello, during testing, I receive the message [invald volume] please help #property copyright "TradeBOT" #property link "TradeBOT" #property version "1.00" #include <Trade\PositionInfo.mqh> #include <Trade\Trade.mqh> #include <Trade\SymbolInfo.mqh> #include <Trade\AccountInfo.mqh>
I have added two RSI indicators using two RSI handle variables and it creates two indicator windows. I want both RSI indicators to be in same window like in the second image. What changes should I make in my code for this to happen
Hello! Can you help me and write a simple EA. I've got no time to learn writig mql5 code, but i've got a simple strategy and i want to test it if it is profitable. There is no need of indicators. The strategy is pure martingale. The EA must open long position in the begining with 0.1 lots, stoploss
Hey Guys! There is a question hovering around my head for a while when I am backtesting EAs. After every backtest, the Chart related to that test stays open in the MT5 Terminal. I have attached a screenshot of the issue. Am I missing something in my code to stop MT5 keeping the trace of the
Hello! How are you? In the past I did some questions, that I solved, but one I am trying to find the answer and... nothing, for this reason the creation of this post. I want to put some conditionals for the EA to close the position immediately, since they are met, but... I can't imagine how to
hello guys i need ea or script that set auto tp for EX if i open trade for EU at 1.21000 and tp is 10 pips so its 1.21100 and if the price goes against when i open another buy at 1.20995 so the tp auto modified for all trades to equal 10 pips at 1.21050
i'm running an ea on about10 pairs and i would rather only have one chart on the screen at a time and the rest in tabs at the bottom. if all the pairs have the ea activated will that still work even if 9 of the charts are below in the tabs and not live on the screen as tiled windows? thanks
[Deleted]
Greetings to the members of Forum I am trying to capture RANGE IN / OUT periods for Three Time Frames. Looking forward how I can create, fill and get information from a MultiDimensional Array for this purpose. Example of array, if possible at all arrayRange [timeFrame] [InBarTime] [OutBarTime]
Hello friends, I have a question about mt5 strategy tester. When I test my expert in visual mode, it takes about 2 minutes for testing eurusd in last 6 mounts, but when I want to use optimization, it take 3 hoarse to test only 10 cases. I select "fast generic based algorithm" but it is very slow
Hello, a query, is there a way to test 2 or more experts at the same time ??? I know that with MT4 it is impossible. I have an account and I would like to try a combination of Experts, individually the tests are good for me, but I want to know if it can be possible to do a test between 2 experts
hi everybody, I have (for my mind) a bit more of a complex solution. 1. I open a grid of five pending orders. 2. at some event i take all unopened orders away, so the ones which haven't been triggered 3. at another event I want to put the five pending orders again, apart from the ones which were
From a running EA, I am trying to start a second MT4 terminal which then should run its Optimiser and return the results as a report. The idea for this I took from the article Automated Optimization of a Trading Robot in Real Trading ( https://www.mql5.com/en/articles/1467 ) dating back to 2007 but
*** Please help please
As dumb as the question is, I've spent nearly 3 hours looking for an answer. My OnTick function reads and stores 2 consecutive tick values in 2 variable A and B, I then want to store B somewhere and then compare it with the new value of A and B when a new tick occurs, and again store B and so on
  EA with vps  (7)
Hi, I'm very new to all of this, I don't know it when I'm running bots in the vps (and its doing trading while having opend orders), and I configure a new templete and synchronize it, those orders that where opened before, the will get under control of the new template or I should close them...
I'm trying to run some code if in a tester optimization. My code below doesn't seem to work and MQLInfoInteger(MQL_OPTIMIZATION) seems to be false. The function is called from OnTesterPass. Should that make a difference? Cheers E void WriteTestResultsToFile( string & parameters_list[], int pass
Hi, i have a problem with backtesting that maybe someone would be willing to help me with. When i try to backtest my EA it cannot load an indicator, i tried with multiple custom and built-in, niether worked. I run backtests on multiple pairs, usually more than 20, on 10-15 years of daily data. The
some one tell me why my bot suddently not be able push notification? i trade on MT4 of IC Market. thanks alot
  trade.Buy help  (1)
Hi, I use this line of code to open a buy in mt5. trade.Buy(volumeSet,_Symbol,0,(candleOpen-slDifference),(candleOpen+tpDifference)); the issue I get is a new buy would overwrite the previous open position buy sl and tp. Is there a way to not have the overwriting? Any help is much appreciated
I'm still learning so I thought about printing the value of a tick as it occurs using this code: void OnTick () { double price = SymbolInfoDouble ( _Symbol , SYMBOL_ASK ); Print (price); } But Instead of Showing one tick value, it instead shows me all tick values from 2021-01-01 till now
Hello, It's possible to check the price every second (or whatever time you whant) and register on an array? I wanna check the price of the last second and register it. If so, can anyone help me out? Thanks in advance
So I'm totally new to MetaEditor 5 and I've searched for this everywhere but couldn't really understand. All I want to do is to check the value of the last tick and store it in a variable and then store the current tick value on another variable, compare them, decide either to Buy/Sell and reset the
Hi folks, I would like to check every hour or every 30 minutes if VPS I'm using for my EA is working. I wrote the following code, but I think there is some better way to input "times" every time that the function was called, instead of one line for each hour. What do you guys think
Is there a function that will give me a list of input parameters used for a test? Something similar to FrameInput when running an optimisation? My understanding is that I wont be able to use FrameInput if it's not an optimization run. E
Hi, I am using few EAs with Martinghale and grid. In case of a long trend it can lead to big DD. I am looking for a Recovery EA that would start a recovery based on various settings like % of DD in account and similar. I want to ask users of various recovery EA to share which recovery EA they use