MQL4 and MetaTrader 4 - page 1140

[Deleted]
Hello guys, i need programme this: IF LAST TICK > 2 pips = ................. (5 digits brooker) how can i do it? thank you.
[Deleted]
Hello, I am a (very) beginner in mql programming. I am trying out simple ideas, and I would need help with one of them. How could I put a condition that new position opening only if previous one was closed? Thanks, Richard
[Deleted]
Very proffesional and quick programmer. Dont waste your time, contact me with definition of your idea and get it coded in MQ4, payment is 20$ via Paypal. eascoder511@gmail.com or PM here Have a great day.
  data acquicition  (3)
Hello Guys, I collected this data from yesterday London and part of New York trading section, expecting to be a big big file, using this: int init()  {      handle=FileOpen("dataLondonNY.bin", FILE_BIN|FILE_WRITE);    if(handle<1)      Comment("File could not be opened");...
[Deleted]
Hello guys, i have this, OrderSend(Symbol(),OP_SELL,lotesell1,Ask,3,stopsell,Bid-35*Point); and this opens a lot of ordens, i want to open one order by one pair and i have no ideia how i can do that :s can you help me ? Thanks everybody.
[Deleted]
i tried to test my EA on strategy tester. i did not get any results and i had this error can any one help me out on how to fix this thankz
[Deleted]
hi guys im trying to create a stratergy where given a set of conditions becomes true in the current bar. i place a pending order.But if this pending order does not get triggered in the next following bar i want to cancel the trade.at the moment im struggling to come up with a solution for deleting...
hi.... i need help in ea......i had an order placed in a bar and it is still pending and many bars have passed without trading, now i want to select the low or high of that pending order's bar....how to do it ??...please some one tell me the code snippet for it???
[Deleted]
hi guys can you guys help me fins a way to know whether the current bar has closed.specifically what is the value returned when Close[0] is used when the current bar has not been closed yet. thanks
When an EA uses a custom indicator does it load the indicator into the terminal one time then access it from there to get the latest values, or does it have to reload the indicator to get the latest value at every iteration of start() ? Reason I ask I have a custom indicator that is a little on the...
[Deleted]
Hello, I'm relatively new to MQL, so please go easy on me. I've searched the forum and could not find that this has been specifically discussed. Question: Does the "Total net profit" shown in the Strategy Tester Report take into account spread costs? I understand that spread costs can be variable...
[Deleted]
Hello Everybody I have a mt4 EA that has been working fine. In the past when the conditions were right, trades are opened on multiple currency pairs. The other day, however, I had a problem arise which I can't figure out. I had the EA attached to about 10 charts. (The EA includes magic number...
[Deleted]
I want to make a negative trailing stops.I pasted code which makes takeprofit 0 when it goes for exzample -10 pips.But it gives error... void TrailingPositions() { double pBid, pAsk, pp; pp = MarketInfo(OrderSymbol(), MODE_POINT); if (OrderType()==OP_BUY) { pBid =...
[Deleted]
Hello Guys, In my project this works OrderSend(Symbol(),OP_BUY,0.1,Ask,3,Bid-15*Point,Bid+15*Point); but, this isn't work and i don't know why. OrderSend(Symbol(),OP_SELL,0.1,Ask,3,Bid-15*Point,Bid+15*Point); Thanks everybody
[Deleted]
  Help with EA CODE  (20   1 2)
My EA compiles with no error, but for some reason It will not start test in the strategy tester? Is there any error in my code that creates a bug. I downloaded the pivot points from https://www.mql5.com/en/code/8685. My server is GMT +2, so my input for using iCustom() with pivots is -2. here...
All there in the tile, why should .set files not be allowed on such a forum?
Hi all, I'd like to code a simple indocator with draws a vertical line at the position where 2 SMAs intersect, but I have no clue how to... :( Maybe somebody can help me out! These are my current lines: //| Custom indicator deinitialization function |...
[Deleted]
NEWBIE NEED HELP Excuse me, may I ask? I am a newbie in the MQL4 programming and is currently just starting to learn to make EA. 1. In an EA, I saw the following statement # define SIGNAL_NONE 0 # define SIGNAL_BUY 1 # define SIGNAL_SELL 2 # define SIGNAL_CLOSEBUY 3 # define SIGNAL_CLOSESELL 4 I've...
[Deleted]
  mql code help  (2)
Hi All, I am new to this mql4 programming. I want some simple code as the below simple logic. Everytime a trade is closed. I want to put the same pending trade for the same open price and profit taken and stoploss. ( For example: When a GBPJPY trade closed at 125.25 whose open price was 125.00...
Good afternoon everyone, I propose to discuss a system that has already been discussed more than once is the euro usd correction Let's look at the market 1 Everyone is looking for something, or rather not something, but money and material welfare 2 Everyone wants to find the golden key, but not
i want to create the EA ROBOT of this my forex trading system EXPONENTIAL MOVING AVERAGE (SMA) =50 the trading idea For Buy Signal/Entry when the candle stick cross the ema 50 up the ea should enter buy. If there is open order for sell signal,the ea should...
[Deleted]
To be more precise: int a= 5;int b=3;int c=a+b;MessageBox("The result of a+b is", <how to reference c?>, "Title"); So i need a way to reference result c i tried following: int a= 5;int b=3;int c=a+b;MessageBox("The result of a+b is", + (c), "Title"); But when i put script in a chart nothing happens....
[Deleted]
Has anybody ever done a study of whether it's more efficient (faster or fewer resources) to run an indicator twice vs storing the value in a static variable? Specifically, I want to know if the Stochastics are moving up or down. Is it more efficient to run iStochastic() 4 times for each bar (2 for...
[Deleted]
I have learned enough programming skills to build my own working EA'S. With this one though I need a little help. The way it works is, the signal is based off of the alignment of 3 different currency pairs and the RSI indicator on 3 timeframes of each. Also there is supposed to be a trendline break...
Is it possible to send messages to MT4 terminal from MT4 manager? What about news?
[Deleted]
I did a search and found several people who have complained that the iMA function doesn't match the internal MA function. I found one who said (s)he solved it, but did not say how (s)he solved it. I'm setting the internal MA to 5 periods, shift 0, MA method Exponential, apply to Close. I'm using...
hi guys I am new to this i want get the actual value of an ema and subtract it from another value what i cant figure out is how to get the numerical value I am sure it is simple but i cannot find reference to it anywhere thanks in advance
hi, I have a small question for coders: In MT4: What is the correct way to check if a particular sound file exist. PlaySound(SoundFileName); If the SoundFile does not exist it seems I get no error message - it's just skipped. Thanks a lot
[Deleted]
Recently after my computer was destroyed, i acquired a MacBook Pro, but i failed to access any Meta Trader to work on it, rely want to trade but am stuck, please assist me if any one has a solution to my problem. Thanks Kats
Hi everybody, I want to analyse the news published by broker in order not to trade, if it highly impacts the market. I need datetime, header and the body of last news published. The file 'news.dat' is located in history folder of terminal, but it is updated once terminal is closed, so I can't use...