Expert Advisors and Automated Trading - page 463

I had been having some difficulty translating my EA into mql5, but after a while I eventually succeeded however, 10 percent of the time it's performance on mt5 differed greatly with it's performance on mt4, and this disparate occurrence would arise on around the same date, and on multiple currencies...
hi, m having a doubt... i want to upload my robot but as m seeing backtesting is must and my robot works on other 2 eas which is there inside it so back testing of the ticks is not possible... so need suggestions.. what to do???
Hey, i have a problem with uploading my ea on the market. There is ab problem because i have nor source code. I´m using molanis strategy builder , but just the standard version. It means that the source code ist not available. On Pro Version it is available but not on my standard version. So i cant
I've noticed this during backtests, the Data goes back to 1990 I believe, and the birth of the Euro was in 1999.
The strategy tester on the cloud is really an advance in strategy testing. Works like a charm most of the time.  But a bit to often it just stops when there might be a few unprocessed task left. Nothing happens. It seems like 1 or 2 agents just do not report in and the strategy tester keeps...
During a back test I found this error, In my attempt to find the bottom of this huge candle I flattened the chart.... I can not find a bottom, that's some drop, reminds me of when I tried to import tick data on another platform. The currency is GBPUSD and the error occurs between April 5 2010
Not looking for anything profitable just some advanced trading operations to learn from. Most mt4/mt5 EAs in code base are simplistic with what they use as filters/order management/ etc. Probably why they're not reliable. Do any of you know some good EAs or even Indicators to get me thinking...
I keep getting the error "invalid volume", the account balance is 10 000 and the lot size is 0.07. This is my code, I think it might not be the volume tbh. MqlTradeResult StageOneBuyRes={ 0 }; MqlTradeRequest StageOneBuy={ 0 }; StageOneBuy.action= TRADE_ACTION_DEAL ;
hello I used the following program in MQL4 but my supplier changed ME on version 5 Can someone translate it for me mql5. I am very grateful for any help. <code removed by moderator, see next post>
  Adding to position  (14   1 2)
I am sure this is explained somewhere but did not find it. What will be the sequence of events if I place 2 trades with Stoploss and different targets if both targets will be reached? Will the end result be the same as in MT4?
hi people, i am searching a script for mt5 with the following function: - managing trading time for current forex pair for days and hours - also if ea's are attached at the chart and activ   exist such a script or have someome an idea thanks and regards johermann 
Hi, I want to write an EA, that uses long signals only. So far I succeeded in creating my own indicator and creating long- and short-signals using my own class derived from CExpertSignal. The long and short signals are generated using LongCondition() and ShortCondition(). However, I...
I have subscribed to a signal provider and have the below scenario: Signal Provider is using 1:500 Leverage Converts to $275 Per Standard Lot and has a balance of $178,478 Trading @ 30 Lots --> $8,250 for Margin --> 4.5% of the Total Balance In My case: 50,000 --> Allocated 10% of Deposit -->
As the expert advisor to check whether the account is active signal subscription? What is the code I use to check it
hi I am new to EA writing using standard library and have some questions: 1. I looked at some code and saw that for creating signals from some indicators they act like this: bool CSampleSignal::InitIndicators(CIndicators* indicators)&nbsp;&nbsp;{//--- Validation of the pointer...
I have an account with Avatrade. They have turned off the signals tab so I can't subscribe to a mql5.com signal from the terminal itself. When I clicked on subscribe to signal on mql5.com, a dialog opens and gives the option saying: "I do not have Metatrader 4". That option takes me to a page where...
hi ! my code datetime datetimeDeb,datetimeFin;SymbolInfoSessionTrade("EURUSD",WEDNESDAY,0,datetimeDeb,datetimeFin);Print("/"+datetimeDeb+"/"+datetimeFin+"/"); my result /1970.01.01 00:00:00/1970.01.02 00:00:00/ where is the ? please
hi   i'am looking for a function or constant to know if my E.A. is in run mode or backtest mode. thank's  
Hi, I subscribe to a signals but I would like to have an alert, sounds and e-mail when a trade has been placed. Anyone knows if that exist already ?
If it is for all symbols is there a function that returns the total orders open for the current symbol?
hello i try to use SymbolInfoSessionTrade() to get session open and close time this function need session_index (https://www.mql5.com/en/docs/marketinformation/symbolinfosessiontrade) what's this please? Thank's
If a position is kept open by weekend or holiday involved, how to measure the net time, real-time market that is open?  If we use the following function we obtain the natural time but not the actual open market ... double tiempoMercadoPosic(string simb= NULL, mi_FECHA_HORA modo=...
my EA need to close a position (not with stop loss) example : i want to close my position Friday before the week-end to avoid surprises on Monday i don't find any function for this. am i obliged to send several orders (if volume >50 on forex) n? thank's
Hello, I have a question related to MQL5. I know the meaning of FREEZE level, however I'm a bit confused. Let's suppose, that we have an open position with a volume 0.1 lot. The freeze level specified by the broker is 5 points (theorically). Because the current price is very close to the SL (for...
is there a fast way for having a menu of numbers from 1 to 31/30 for having them in the input part of the EA without writing them down one by one by typing them? I mean I can do this the hard way: enum DaysOfEachMonth{ one=1, two=2, three=3, .... thirty=30, }; but is there a faster...
Hi, Is there a way to run an optimization test from within the EA & integrate the results as the settings of the EA ?
Hello, I don´t know if this is the right place to question this, so sorry it is not: I have an EA that assigns a value to a global variable with every tick, whis is at the start initialized to zero.  I want to know if it is possible to preserve the value assigned trough a switch off/on of...
The EA I am developing is a SwingTrader EA. It uses Daily, 4-hour and 1-hour todetermine trend. It uses 5-Minute for prospective entry and 1-M forentry. In order to make it independent ofbroker server time it is not a good idea to use the 4H and 1D data asis since they will differ depending on...
I have been using my 3 local computers to run as many agent as possible. Has been working fine for a long time. It stilltakes a long time running for a multicurrency EA optimizing one pair at the time. I decided to try the cloud. Works fine most of the time and it is a time saver. I have however...
printf("Numbers of opened positions : %G", PositionsTotal());for (int x=0;x<=PositionsTotal();x++) { //numbers of position = index printf("Index of the position %G",x);printf("Symbol of the selected position : %G",PositionGetSymbol(x));printf("Profit on the selected position : %G",...