Hello, I want to memorize in a variable the current time (when a condition happened) plus 5 Periods ( I'm testing EA in H1 timeframe). This is the code: if (RangecCandelaMax == High [ 1 ] - Low [ 1 ]) {
I want to close SELL order after a BUY order is opened . I wrote this code but I have errors 138 and 4108, how can I fix it? ps: the orders are generated by SELL LIMIT and BUY LIMIT functions if ( OrderSelect (ticketBuy
Hello, I have an EA that open #3 orders after candle close (if some conditions are true). The issue is that the orders are opened after 10 minutes from candle closing (see attached screenshot of Journal and chart). The orders should be opened at
Hello, I have this error in OrderModify fuction when run my code, can you help me? Thanks // Modifica TP per gli ordini a mercato SELL if ( OrderSelect (ticket2, SELECT_BY_TICKET )){ //
I have error type 130 during OrderSend function , can you help me to fix it? extern string ParametriCandele = "Inserimento parametri candele di set-up" ; extern string CandelePrecedentiBuy = "Inserimento numero candele
Hello, I have this error when run my EA: This is my code to open #3 orders, where is the mistake? int ticket[]; bool checkBuy = true ; int i= 3 ; //numero ordini void
Hello, I created my EA that open #3 orders at the same time when some conditions are true. In backtesting EA works fine and in Result I can see my #3 order with same open time: The issue is in DEMO. I see in Journal tab a time delay (seconds, until 1
Hello, I want to identify the candle (in the last 5) that have maximum range (High[i]-Low[i]) . I wrote this code but for fill an array with range size: int candele = candelePrecedentiBuy; int i = 1 ; while (i
Hi, I finalized my first EA on XAUUSD and after run some back-testing to check the validity of my strategy I'd like to optimize my input variables. Is suggested to use a small time window (2/3 months) vs back testing to be adherence with last market
Hello, I see this strange behavior, I created my EA and if I change the file name and run back test the result is different from the previous file. Why the results are different if change only the name of file (profit, trades, etc)? The above charts
I have this type of error in this function, why happening? // Trailing Stop per gli ordini #5 e #6 (Stop loss modify a Break Even) void TrailingStop1Sell(){ if (ticket5 > 0 ){ //
Hello, I'm backtesting my EA with tick retrieved by Tickstory Lite 1.5.3 8, I have IG MT4 platform build 1065. Timeframe M15 , symbol is Gold Why my modelling quality is n/a? Thanks Giovanni
I have this type of error (Array out range error) when I backtesting this EA. How can I identify the point of issue? Thanks Giovanni // Variabili globali bool check = true ; extern string ParametriValori = "Inserimento volume degli ordini" ; extern
Hello, backtest return me 4051 error during CloseOrder() execution inside my OrderCheck() fuction. int ticket[3] = {-1,-1,-1}; is a global variable How can I fix it? The code is attached. Thanks Giovanni
Hello, I'n new in MT4/5 . I download this EA but when I tried to do the backtest no orders are placed and this type of errors occured a lot of time: Sell(): Error inputs for trade order Sell(): OrderCheck(): Unknown error 10030 How I can fix