Expert Advisors and Automated Trading - page 226

To post a new topic, please log in or register
  Sloping MA (1)
I'm reasonably new to this, therefore it may be staring me in the face, but as of yet I've had no luck finding the information. What I want to do is have Moving averages 8, 20, 50, 200 have crossover signals for the 8, 20 - but I only want the trade to take place IF the MA(200) and the MA(50)...
What is wrong in this code that I am unable to get number of positions. Anyone who knows, please help. int NumberOfPositions()&nbsp;&nbsp;{ static int N; ulong ticket; for(int a=0;a<PositionsTotal();a++)&nbsp;&nbsp;&nbsp;&nbsp;{ ticket=OrderGetTicket(a);...
So far none of the documentation, samples, or forum questions answer how to use a custom indicator in a wizard generated trading signal. Any information on how to perform that magic would be appreciated. I assume it will require some type of use of CiCustom but I don't see any samples of that....
I wonder if strategy tester works. My EA makes trades in real time but does nothing in strategy tester. Also, there is no Experts tab in it just Journal, impossible to track EA activities.  Maybe I am outdated or need to change something. 
I did not see an example of how to make trailing stop. Logically try to do myself. if(condition...) { TradeRequest.sl=tick.bid-_Point*TS; OrderSend(TradeRequest,TradeResult); } And it does not trail. Please help. Thank you.
I thought this function int limit = 3;ExtExpert.MaxOrders(limit); where ExtExpert is an instance of an EA off the standard library would set the maximum orders in building a position but on preliminary testing, it seems to have no effect. My question is how do we set the maximum orders to...
Hello friends I used paid service from one of the coders in this job board and in vain. I have the EA can somebody help me rectify its error I have been fighting with the useless coder who coded it wrongly without reading my strategy. I basically asked for a EA with cci and price channels.He did...
Hi, I am trying to use the Relative Vigor Index Indictaor in my EA rviHandle=iRVI(NULL,0,10); CopyBuffer(rviHandle,0,0,3,rviVal)<0 I only get the RVI main value in the array. How do i get the RVI signal value?? Thanks
I want to get 2nd buffer of a Custom Indicator. in indicator SetIndexBuffer(0,IndMapBuffer1,INDICATOR_DATA); PlotIndexSetInteger(0,PLOT_LINE_STYLE,STYLE_SOLID); PlotIndexSetInteger(1,PLOT_LINE_STYLE,STYLE_SOLID); SetIndexBuffer(1,IndMapBuffer2,INDICATOR_DATA); when call CopyBuffer...
Hi! I have a pivot points file to the meta trader and i want to know according to what time setting the pivot were defined. I tried meta editor but i couldn't understand that from there. I attached the file. I want to know according to which time zone and which start and end time the pivots were...
Hi All, Is there a way for an Expert Advisor to terminate itself? At the moment i'm using a workaround: since i've written a DLL i've created a function inside wich just throws an Exception. In this way the terminal blocks the further execution of the EA but don't really terminate it ( and anyway...
When I try to backtest an EA that uses iCustom() and CopyBuffer() in the Strategy Tester I have the following problem: the iCustom() functions works perfectly and returns a valid handle, but the CopyBuffer() function then fails to copy anything from the handle to a buffer (returns -1). When I run...
I have been experiencing some sort of cache problem with the Metatrader 5 tester when checking the chart that opens after the test is done. The problem is that the chart shows not only the trades my EA made in this run, but also trades from previous runs. Because of this it is really difficult to...
Hello, can somebody put a EA for download here, with wich it is possible to make a backtest like this: EURUSD 1 min chart, EURUSD 5 min chart, EURUSD 15 min chart and at same time USDCHF 1 min chart, USDCHF 5 min chart, USDCHF 15 min chart I want to code a strategie and backtest it like in the...
Anyone have examples of running an Ea and it get Setting From an INI File? Different Times of the Day The Chart Bar Would Change Colors so Right Before a Major News Event The Outline Of my Bars will Turn red at night the outline is green run scripts at certain times of the day , save setting when to...
  News Filter (4)
Hi Guys, How to code a news filter based on "Economic Calendar" object, include Event Time, Name, Currency, Importance,Actual,Forecast,Previous? 
Hi, If anyone can help converting this from mql4 to mql5 as I try to understand the new logic ofmql5. Thanks. doubleHigh4=iHigh(Symbol(),PERIOD_H1,iHighest(Symbol(),PERIOD_H1,MODE_HIGH,4,1)); doubleLow4=iLow(Symbol(),PERIOD_H1,iLowest(Symbol(),PERIOD_H1,MODE_LOW,4...
Hello, i'm looking for a possibility to open and close positions based ticks und not on OHLC. The signal for open or close is the simple CrossoverMA (Timeframe: H4) but i want to close and open positions by ticks so that i can close and open earlier and don't have to wait for a complete bar...
like topic, MT5 donot release this function, who can tell me when it is ready?
Hi, I really need a help with closing positions close to StopLoss. It sometimes happens that I decide to close a position one or two ticks before SL is reached. I send a request for instant order in a direction opposite to open position. Because of the fact that such action takes a while it can...
Hello, i've been fighting for two weeks with a very strange network problem. I've wrote a DLL to use sockets with my EA wich connects to a remote server and then starts sending out every price update. No problem at this stage. Since i'd like the EA to work even with the strategy tester, i've...
Hello! I invite your to view the Demo Live Results of my brand new MQL5 EA GrassHopper, at www.rainforex.com! Give your feedback. :) Thanks! Ruben
Hi Guys, Is it possiable to output multi custom max values in report file after one time optimization in strategy tester? if no, can escalate this as a feature request? thanks...
Hi, I ran the code in the following article https://www.mql5.com/en/articles/112 to understand the concept of magic numers . I ran the code magic_exp0_en.mq5. Whie debugging I tried to switch the focus of the current chart between two different time frames i.e. EURUSD M5 and EURUSD H1 to see if...
Hi all, i'm moving from mql4 and i need help... here my problem: i want to find the profit of the last closed trade... i can do easily on mq4 but i find some difficult here... Pls can you help me??? (with an example plsss) Thanks All!!!
Hi people, Does anyone know why in Strategy Tester, after running, the "Optimization Results" table exhibits less passes than in Optimization Graph ? Shouldn't they show the same number of passes ? In my execution, the results table has only 3420 passes while in the graph there are more than...
Does anyone know where the forward testing results are kept when performing backtest optimization with forward testing? BTW, is it possible to only perform forward testing based on positive results of slow optimization backtest? Currently, in slow optimization, it is running all cases for forward...
Is it possiable that there is an exclusive position for every expert by specified magic number? we can buy/sell orders, modify sl/tp without affecting by other experts.
Hi, I have been living in MT4 land and considering paying a visit to MT5 town sometime soon. One idea I had for an EA that is not possible in MT4 is a program that draws a Buy and Sell button to the screen/chart with predetermined stoploss and/or take profit levels.. this would suit an manual...
Hello! I started to test the MQL5 language using the MT5 EA Wizard. I'm currently posting the test results at http://www.rainforex.com/. Is there a way to combine (or to add) different indicadors to build an EA using the Wizard? Either using indicators that are not in the Wizard or using a...