Expert Advisors and Automated Trading - page 146

To post a new topic, please log in or register
Hi, is there an equivalent for Open[], High[], .. Volume[] of MQL4 in MQL5? Actually I am using Volume[i] in OnInit for a volume-indicator in a separate chart-window to set the max. and min. int OnInit() {    ...    while(b-->0) {       lMin = fmin(lMin,Volume[b]);       lMax = fmax(lMax...
All the indicators return an int value, called handle. Do they mean pointers?
Hi to all My main problem is ==> i don't have the color of last dot in magic dot indicator with (iCustom function)!! double s = iCustom(Symbol(),0, "Magic dots 2 mtf alerts", 0 ,MODE_EMA ,6 , 0 , PRICE_CLOSE , false,false,true,false,false,false); I Commented (s) and the out puts doesn't mach with...
Hello,   i try to convert my EA from MT4 to MT5 and now i have the problem to close all position, in MT4 it was easy to say at a spezific time to close everything. now on mt5 i use following code      if(Minute()==00 && Sekunde()==00)      {       if(PositionSelect(_Symbol)==true)         {...
Hello, I believe if I run an EA in an ecn account then market orders open in two stages: 1- The order is first opened and then only after that the 2- the stop-loss and take profit are placed. Most of the time this is not a problem but occassionally my stop loss order and take profit order are not...
why do people use this protection in their EA? I mean, if you make your MT4 window smaller, you WANT the EA to continue trading, right? But with this protection, the EA will stop working and won't open any orders. I think it's useless, because if you don't want to trade, just turn off the EA. Or...
Hi,  I want to write an script which I should use file commands to store some data like names of stocks in it, but it will be overwritten everytime I open, write, and close the file. What should I do to keep previous file data and write the new data after them on a text file everytime I run the...
Hello,  How are you doing? Hope you are doing well.  I have coded an EA to trade in H4 periods. I'm having an issue and I can't solve it, even if I've been trying it since a lot of time.  This is the issue: The EA is NOT opening or closing the orders when the H4 bar is closed. I need the EA to...
let's say I've develloped an EA that i want to test. On how many years should I test it to say that it can be used with confidence on a certain timeframe and currency pair ?
  timing (11   1 2)
Hi I I have this EA and I was wondering how to make it wait 1 minute after it gives me an alert before it does its job again.   currently it is echoing the alert nonstop until it meets its goal. what code do I use ?  
Hello I wrote an EA and I want to close  my all open position but always "EURUSDPositionClose() method failed. Return code=10006. Code description: rejected" Why? I use void CloseAll() { for (int i=PositionsTotal()-1;i>=0; i--)   {    {     PositionSelect(PositionGetSymbol(i));     if(!m_trade...
How to auto-indent a whole code quickly?   For example, whenever I copy/paste code from a webpage or ebook it looks like:     if(SellTakeProfit > 0) SellTakeProfit = AdjustBelowStopLevel(Symbol(), SellTakeProfit,5); AddStopProfit(SellTicket,SellStopLoss...
Hi I developed a EA using CExpert, and create my signal using nrtr_atr_stop.mq5. Also I created an trailing stop based in same indicator. (class CTrailingNRTR_ATR : public CExpertTrailing) but what happens is that the indicator use two buffers, one for UP Signal and other for Down Signal. In...
  iCustom adressing (12   1 2)
Hello to the expers, I want to see/check custom indicator values in an EA. This variation on built in indicators works fine: OnInit part:      MA_handle=iMA(NULL,0,21,0,MODE_EMA,PRICE_CLOSE); OnTick Part:      CopyBuffer(MA_handle,0,0,100,MA); ArraySetAsSeries(MA,true);     Comment(MA[0]);    the...
Hello everyone, I am writting my own version of a trading robot. This time I am using the .net platform instead of MQL5. My currenty strategy is to use MACD indicator with standard parameters being filtred by RSI. The process start with a short/long indication and a stoploss setting pretty far away...
[Deleted]
Good morning, I'm new in MQL4 / I would like to help, I need a function to my EA open an order every X days or hours after the previous order. Ex. Opened a orden on Monday 7 am, would open another on Wednesday 7am
some online service like fxblue.com  and signalstart.com,you submit your mt4 account number,broker server and read-only password,andthen they could constantly and automatically extract your latest accountstatement to their database,and analyse your statement with beautiful charts onwebpage.Could...
I'm trying to create an EA based on stochastic and moving averages. It works ok but I have noticed that if i have a position already opened on one pair is not going to open another on another paireven if it meets the requirements. Can anyone help me with this? 
hi, these are  eas which has warnings problems in compilations, hope someone can help to fix those warnings  make them work correctly. each one has 6 warnings.   please someone fix .   really thanks. 
Hello if someone can help or instruct where to find good ea for binary options
Hi! I´m searching for a EA to trade binary options. Does anyone know about a accurate EA? Please contact me!
Hi All, I am using loops to run a few calculations. For example look at the below, where I am using this to calculate mean over a period of time. I was wondering if I am better of inserting this into an array or is loop a better way? I am running this every one minute. I haven't been able to...
Hello, Can anyone recommend a good data provider for backtesting EA's? I currently use TickStory (Dukascopy) but the history is limited to only a few years, especially for the indices. For example history for the S&P is only 5 years. The maximum history is for the majors such as EURUSD with 9 years....
I would like to know if anyone has a clue how to program EAs much faster, without all the slow process of coding 2000 lines. I have seen somewhere Programming platforms that enable to develop EA in under 2 minutes, and work much better then MQL Linear Programming. Can Anyone share some information...
Hello, I have an indicator that it is drawing himself on separate window at the bottom of the chart (#property indicator_separate_window). When I insert it into an expert advisor I wrote, at each value change on the market it reload the indicator and causes to the expert advisor to stucks the...
I just purchased a newly released commercial EA from a website. After using paypal as payment, i tried to search the recipient name on google. I am not supprised to found out that he was the creator of another scam EA that doesnt work. Now, i finally received the new EA that i just purchased, but...
 help in regards to placing instant market execution orders at a certain time regardless of the price. and also be able to set the parameters for the TP and SL. please advise
I have an EA which I can successfully run on various timeframes on the DAX on MT4. However - the 10 minute chart is not one of the standard MT4 charts. I have successfully downloaded an offline 10 minute MT4 chart. I can see this holds data for over the last year - which is sufficient for my initial...
I've just started to study C and MQL5 at the same time and I have three questions. 1. In documentation, there are [in] and [out] words near the function parameters. What do they mean? 2. On the PrintFormat page, specification of data sizes section, why do we have two different size specifiers for...