MQL4 and MetaTrader 4 - page 620

To post a new topic, please log in or register
Hi I am trying to work out how my EA can identify if the current Symbol() has "FXF" in the title, for example "EURUSDFXF" This is what I have tried using and its all I can think of using: if(Symbol()== ""+"FXF"){return(0);} Can anyone suggest any ideas? Thank you Antony
For me to buy into oversold and overbought sell, on the RSI indicator would do look something like this double GetRsi(int tf, int period, int ap, int shift){   return(iRSI(NULL, tf, period, ap, shift) );}//End double GetRsi(int tf, int period, int ap, int...
Hi, strange Thing? My EA is working (always and only with M1) with one Broker and EURUSD but with another Broker (I changed at the right bottom) and the EURUDi I got TestGenerator: internal error because the file not opened But with that BrokerGBPUSD or XAUUSD are working? So it's not my EA! I...
OrderClose error 3,i can't search answer,thank you
Hi, Sorry for my English :) I bought signals from provider and I want to hear sound when the position is opened. I want to change this indicator. In this indicator I can only manualy change position: for example when I write in SoundWhenPriceIsExactly = 1.3133 then alert is on when this position...
  Yesterday High/Low/Close (12   1 2)
Hey Everyone, I am trying to find out if there is such a variable that I can call to find the previous day high/low/close. I cant seem to find it, my guess is there is one, but it seems to be avoiding me. Thanks
I have some problem with OrdersHistoryTotal() and the tester. I have used 2 different simple code (AAAAA and BBBBB) and i got correct value of print on terminal window when the EA is used with a live chart. But when i use the tester with the same code, OrdersHistoryTotal()=0 (whatever the number of...
OK, so you may have some tick data in FXT files that you’d like to use for backtesting, but each time you start the test, the files are overwritten. Here’s a quick workaround. Place the FXT files in your tester/history folder, and rename them all with “x” in the front. Then add this simple code to...
Hi All. Quick question does anyone have an idea for how to stop or prevent an EA making another type of trade, if it has already traded one in that day. For example, if I have placed a buy limit, and it has triggered. How would I prevent another buy limit being placed later in the day. I currently...
Greeting to all, recently I had this error from OrderDelete Function... "xxxxxxx : unknown ticket xxxxxx for OrderDelete Function" This error appears every 1-2 min in my experts log... Initially, I thought i have created an infinity loop that caused this... So, I modified my codes to use a 3 trial...
double iBandsOnArray( double array[], int total, int period, int deviation, int bands_shift, int mode, int shift) double iEnvelopes( string symbol, int timeframe, int ma_period, int ma_method, int ma_shift, int applied_price, double deviation, int mode, int shift) How do you make changes so...
This is the indicator SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,UpTrendBuffer); SetIndexDrawBegin(0,MA_Length+ATR_Length); SetIndexLabel(0,"UpTrend"); How to get this UpTrend value ? and asign to EA .Please quide
Hi MQLers, I am happy to finally be able to programmatically add trendlines on my charts based on select parameters. However I seem to need help with the next step, which is: how am I able to detect if a trendline is crossed by a candle (or any other symbol)? I suppose I am not able to get the...
Hello forum, hoping someone might steer me in the right direction with this query. I have attached a very simple diagram where I show three candles, A, B and C and a previous low marked with an arrow. I am looking for a way to filter entries based on previous lows (or highs for long trades) that...
We have an EA that can open a trade or several trades every pipette or 5th decimal pip. Running this on a single pair can open hundreds of trades in a few minutes. If we load this on multiple pairs it just multiplies. I'm wondering if anyone has experienced limits with number of open trades or...
Throughout the entire duration of the Automated Trading Championship 2012, we will be providing live coverage of the events - hot reports and interviews every week. As the first few days of the competition unfold and the TOP 10 is forming, some participants have already broken through with their...
hi... I made one simple Ea. but this looks like doesn't work right.. but not tooooooo wrong... sometimes works right but few times... this looks like losing focus what this guy had to do;;;;... to have any position or changing position... sometimes lose signal that i can't find y... can someone plz...
this attached ea is free from local forum, created by jjsmads. but in my mt4, from various broker, it cant run, always said "zero divide" on jornal. please help. thx.
I find it hard to decide an optimal setting from the result of an optimization. Could anyone please tell me which is the best to choose from an optimization result, the lowest drawdown, the profit factor or any other thing that I should consider? Thanks!
Hi forum, quick question here. i am trying to do this: int size = 500; double some_array[size]; but i am getting compilation error "size - integer number expected" is there a way i can do this at mql4? thank you very much. oX.
Hi, I'm trying to create EA based on the attached indictor. However I'm having difficulties to make simple rule that makes Buy when FastPeriod line changes from Red to Green and Sell when FastPeriod line changes from Green to Red. All transactions based on 1st shift. Thanks in advance for help....
Dear friend can u help me for addition Martiangle fungtion at this EA
Hello, Hi there, I need a mql4 programmer to create a custome EA for me. I use 3 indicators (1 custom) and the details are below. I intend to use it on eur/usd on the 1 hr timeframe. Indicators: Breakout Eagle Panca (it's attached) Parabolic SAR Stoch (5,3,3) For the Breakout Eagle Panca indicator...
I don't really like that alerts in MT4 seem to go off more than once and several candles after a signal. They are useless then. If I miss the alert the first time, then I cannot trade on it anyway so why would I need to hear that alert again several candles later. It is so annoying! Is there a...
Hi, I have an EA for each Pair that i trade - all of these EA's contain this code:    int order_type;      while(deleted == 0)   {      //Ticket_1 closes ticket 2, BUY_LIMIT = 2, SELL_LIMIT =3, BUY=0, SELL=1      if (OrderSelect (ticket_b1,SELECT_BY_TICKET)==True)      {         order_type =...
Hi I need help finding a certain EA(i don't know if it exists or not), the EA i need must do the following 1) Lets me set a price where i want to enter a trade 2) Lets me chose whether i want to buy or sell at this price 3) Lets me set the Lot size 4) Lets me set the Take Profit and Stop Loss in...
  one trade a day (12   1 2)
Hi there, I have no idea of the programming of EA's yet I have an EA now that does automated trades, yet I want this EA to only trade 1 trade every day. The EA has the ability to work with many indicators and when the time is right it opens an order. I work on a 30min time frame. some trades are...
I have multiple open order (up to 4). Only buy or sell open at any time. I want to set lot size of the next buy order depending if the current open buy orders are in profit. if total openorder profit > 0, then next order lot size = 1.4 if total openorder profit < 0, then next order lot size = 0...
Hi, There are dozens of visual order scripts/ea's but I cannot seem to find one with a cancellation line; if price hits this line before hitting the pending order the pending order will be cancelled. Example; Buy limit @ 1.29 Cancellation line @ 1.30 TP @ 1.31 As soon as price reaches 1.30 and the...
I'm in the monthly process of updating my currency pair history data. I've successfully imported the M1 data. I've opened up a M1 chart, dragged the period converter onto the chart, and put in the numbers of the higher time frames that I want to test. On each attempt, nothing has happened. I...