MQL4 and MetaTrader 4 - page 1075

[Deleted]
  Help with EA  (2)
Hello! I am writing an expert adviser and i have a problem. I am new in MQL. void Check(double& test,double& test2, bool& UP, bool& DOWN){ if( getvalue() > test ) { CloseAll(); OrderSend(Symbol(),OP_BUY,0.01,Ask,3,Bid-15*Point,Bid+6*Point); UP = true; DOWN = false; }...
[Deleted]
Hi everybody, I'm puzzled. I think my EA's are not being called at every tick, so I wrote a test program: int init()  {   Print("Ask is "+Ask);   return;  }//+------------------------------------------------------------------+int start()  {   Print("Ask is "+Ask);   return;  } The init() Print()...
Hello Who can help me? I`m new in writing codes for EA`s. I wrote my own EA, which open by crossing over MA. But after closing it's open again but that I don`t like. I want that he opens only one, means after closing he has to sleep until I open manuelly. Thank you.
Now i am trading with FXx Open, ecn account, but i don't understand something. Commission. I am trading 0.1 lots. There isn't much information about commission on the FX Open mainpage, so i want to get it clear here. How is commission calculated, and does it also has to do with how long the trade...
[Deleted]
Hi all, i am trying to code this part on "at the start of say, m5 candle, check the trend". how do I code it? I tried to test code -- at the start of every 5 min candle, enter a buy trade. CurrentTimeM5 = iTime(NULL, PERIOD_M5,1); CurrentTimeM1 = iTime (NULL, PERIOD_M1, 1); if( CurrentTimeM5 ==...
[Deleted]
I have a 2 dimensional array: TickData[][4]; With each new change in Bid price (skipping ticks with only Ask price changes) the array's size is incremented by 1 using the 'ArrayResize' function, and it's dimensions are populated with the following data:       TickData[arIndex][0] =...
  getsymbol()  (6)
Is there a way in MT4 maybe someone has written such a tool to obtain all available symbols offered by the broker independent of what chart it's loaded on, and then store them somewhere such as in a series of global vars or an array? For example one broker we are working with uses 2 EUR/USD symbols
Hi, I want to place a pending order that will expire within 5 minutes (from the placement of the stop order). Ticket=OrderSend(Symbol(),OP_BUYSTOP,Lot,StopPrice,Slippage,0,0,"OrderSend function",0001,here I must put the expiration,Blue); // Order send I'm having difficulties with how to fill the...
Hi, I am just new to MQL. I learn well by modifying professionally written code. Right now I want to know how to modify an EA to automatically close orders that have run a certain (but Variable) amount of time, such as 4 hours or 2 days. It will, of course, be the first thing executed in the EA. I...
[Deleted]
Is there an EA that is based on ADX above 25. StochRSI will show which direction it is trending ( buy or sell) 30 pips and 10 pips stop-loss When ADX reduces, should close the trade
New article Trademinator 3: Rise of the Trading Machines is published at mql5.com: In the article "Dr. Tradelove..." we created an Expert Advisor, which independently optimizes parameters of a pre-selected trading system. Moreover, we decided to create an Expert Advisor that can not only optimize...
[Deleted]
Is it possible to open a window with an EA? E.g. the EA scans several symbols and if criteria is hit the found symbol shall be opened.
[Deleted]
%$ is this a built in global or function to be used with fibs only to show the price on level or are there other uses? any documentation to be found pertaining to this or articles etc. Saw this in a script called autofibtrend. usage as follows: ObjectSetFiboDescription(fib1, FibLevels, "%$" );...
  email alerts  (2)
Looking to ad an email alert to Parabolic sar indicator, and hma indicator. Thanks
[Deleted]
I would like to save chart's data for every 15 minutes, now I need to manually press Ctrl+S to save chart's data into csv file. Does anyone have any suggestions on how to do it in MT4? Thanks in advance for any suggestions
Hi everyone, I'm looking for a indicator that I can't seem to find. I'm looking for a info panel that will look and display the following information, will be a located at the bottom left of the chart corner. Currency | todays-high | todays-range | spread | broker-time |...
Hello forum, Market is closed for testing, but I am looking into creating this static variable, to capture the value of OrderOpenPrice for subsequent use (ie, once the current order is closed by SL, the previous level is kept as reference), for example: BUY Order A : Open at 10, with SL at 9 Once...
[Deleted]
How would I do something like this... if (some condition){ObjectSetText("lblText", "Strong Buy", 24, "Arial", Green);}if (lblText == "Strong Buy"){ObjectSetText("lblConsensus", "The consensus is a strong buy.", 24, "Arial", "151,0,0");} The second condition is based on the contents of a label. This...
I recently read in a thread here that there is discretion in forex too - "like everywhere else in this world". I don't care about forex. Not having a maths background, it's hard for me to appreciate the case. But I don't understand discreteness in the physical sense - if there is a connection
Hi, I'm trying to work out daily, weekly, monthly and yearly opening prices. I've just put very simple code together, however when I run this the weekly and monthly prices do not at all match up to what I'd expect. I have attached a copy of the journal, and you'll see that a new weekly opening price...
Hi, I want to program an indicator thats writes the gap-high every day on the chart. But it only works on D1 any there is the statement missing, that the result should only be shown on the first candle of the day. Another point is that the result is in spite of "NormalizeDouble" shown with f.g. 3...
Need help with two (2) questions with close price . Please help. 1st: Is there a difference on the followings: iClose(NULL,NULL,1) and Close[1] iOpen(NULL,NULL,1) and Open[1] also on high & low.... If there is no difference, when its best to use one over the other? 2nd: Open, Low, & High are easy...
Please help me to test A STRATEGY: I'm trading on MT4 but I noticed that I can test only the EA, but could be possible to test any strategy used on MT4, at least using the data on 6months. thanks, Ioan
[Deleted]
  EA problem HELP  (9)
Hey guys, I have an EA which trades very very good if I turn by the Strategy Tester from "Tick Mode" tot "Open Price (fastest methode)" So but in the realtime mode there is always the "Tick mode" and how can i change it to the "Open Price (fastest methode)" Can somebody help me please? I will share...
Over the next few days, we will release the MetaTrader 4 update. We recommend that you install this update because it contains a lot of improvements and error fixes. Besides, the support of the old client terminals will be stopped during the first half of 2012. MetaTrader 4 Client...
I copied some ea from somewhere long time ago. It is just Pending Order EA. I want it to help me open order. EA is a Buy STop EA No indicator at all. What I want is only one more function to add in it is when the current price fall lower than xx pip far from last order just send another...
  One Time EA  (3)
Hello, I`m a newbie! I need help. I`m looking for a possibility to"tell" to my EA, that he has to open a trade only one time. I mean, if the EA found all conditions to enter the market he has to enter and if the conditions come to exit he has to exit and now NO enter again! Thanks
pls i have a little problem.i have a strategy dat can give me 85percent profit,but i dont no hw to configure die strategy into an automated one(i mean ea or robot).i dont no if u guys can creat d software for me.the strategy involves 4 indicator which ar rsi(default setting),zigzag, fractal and tc
[Deleted]
Hello Programmers, Good day...please help have the mt4 script that will autimatically buy or sell orders based on previous candlestick (1hr chart, any pair) at specific time. Example, I want to place buy/sell at 8pm GMT based on 7pm candle. If 7pm cande is long then place buy or vice versa. The...