Download MetaTrader 5

MQL4 and MetaTrader 4 - page 430

To post a new topic, please log in or register
Hi all, I need to shift a box object to be drawn starting from the left-side of the candle, not from the center.. is there a function to do this? Thanks
I just setup MT4 on another machine. After downloading historical data from MetaQuotes for GBP/USD, I then tried to test my EA in StrategyTester, but nothing happens. The screen is stuck on 'waiting for update'
I have looked around, and I have determined how to use the time of day / day of week to determine strategies in my EA. My question is, does this actually work in the strategy tester? (I am not sure how the strategy tester pulls the time) - Props to Raptor for this source code btw. Additionally...
Hi everyone I am kinda new to programming and am currently trying to code my own EA. when im tried to backtest my EA using the ordersend() function, the EA starts to execute too many new orders and thus ccausing the EA to overload and thus getting the error 148. According to my understanding, the...
With the help of forum members i have been able to put together an EA. Now while my EA was running i noticed that every time the EA generated an alert, the journal shows "custom indicator oscillator removed." Just for convenience the indicator is also display on the terminal. so every time there an...
Couple hours ago I downloaded and tried to use two EA. I've found the manual how to optimize the strategy: http://www.easyexpertforex.com/backtesting-optimization.html . I have run the optimization and the optimizer gave me many results. The best result was copied to input parameters and then I...
Hi I creat New EA,when I test it in Strategy tester in MT4,it work for some day then screen is freezed without any error in journal tab!!! can any one Help me!!
Hello everyone, i came across a function offered on one of the trading platforms. it is something like this : once an open order has reached take profit the pending order will be closed for that chart. has anyone come across such a script for mt4? help this poor soul manage his trades :D
Hi guys, I’minterested in strategy that modifies pending stop orders price (buy stop andsell stop) in that way that it keeps both at the same distance from the market.So if the market moves up, buy stop pending order as well as sell stop pendingorder will go up and vice versa. Is it possible to have...
Hi, when I declare a variable in a included file, if this var is called of a included file loaded from it, the compiling fails, examples... THIS WORKS FINE Script...#include <include1.mqh> // note: without this comment between include commands, the SRC style shows all in the same color#include...
dev = dev * 1.0; Why does the above line compile, but if I add a negative sign (below) then I get a compile error '-' unexpected token? dev = dev * -1.0;
  "If" question (21   1 2 3)
Lets consider 4 moving averages: double EMA1 =iMA(Symbol(),0,1,0,MODE_EMA,PRICE_CLOSE,1);double EMA2 =iMA(Symbol(),0,2,0,MODE_EMA,PRICE_CLOSE,1);double EMA3 =iMA(Symbol(),0,3,0,MODE_EMA,PRICE_CLOSE,1);double EMA4 =iMA(Symbol(),0,4,0,MODE_EMA,PRICE_CLOSE,1); Now if i want to test a buy or sell...
Hello to all, I am looking for a fast scalping Robot that trades under one minute with multiple of trades or a HFT robot that trades during normal conditions. I have initially been using a self made robot that has been trading the news and since that there is too much slippage during that time it...
Dear Coders, I need a simple EA (MT4) that moves stop loss to Heiken Ashi open price plus some pips for sell position and minus for buy position. Stop losses should be moved to complete bar open, not to current bar which is not closed yet. Will be most gratefuller if you post the code. Thank you in...
This one trader from Australia appears to have found the holy grail we have all been looking for? I've been following his Mt4 Charts blog site http://harryoo.blogspot.com/ for almost two weeks now. He posts the daily one-minute chart of his Mt4 Expert-Trader-Program trading the Emini CFD every...
Hello Everyone, I have done backtest for my EA on H4 using Strategy Tester, Control Point setting. I have few questions and hope you can help. 1. Using broker historical data, the results on Fxpor, Peperstone, FXDD, Axitrader are not the same. The shape of the balance Graph is similar across these...
Hi Everyone, I have a problem with Strategy Tester - it always returns in log window: 2013.10.12 16:00:43 There were 1 passes done during optimization. I did some manual testing during previous week and this EA send many pending orders and many of them were activated, so one passes during tests...
Hello, I need some help to create a simple Array(I guess thats what I need). When I get a signal I have stored the time of the signal like this: datetime TimeofCross; TimeOfCross = TimeCurrent(); I get the time of the current signal but I would also like to get the time...
In code I have the following lines if (g_stopBuffer[bar] == EMPTY_VALUE)    g_stopBuffer[bar] = g_stopBuffer[bar+1]; The g_stopBuffer is not drawn on screen i this case. I spent lots of time guessing why, but if I add another couple of lines and get: if (g_stopBuffer[bar] ==...
An EA that I wrote and demoing stops working sometimes (I don't know why!). I have written an indicator which continually checks the EA's operation and sounds an alarm when it detects that the EA has "gone to sleep". I then restart the EA manually. Is it possible to have the indicator restart the EA...
I want create a EA. EA work like. Take profit start with 50 pips. then every next trade TP will be double form last trade. What is the calculation solve this problem. 1. Trade TP : 50 2. Trade TP : 100 3. Trade TP : 200 4. Trade TP : 400
Hello can somebody tell me how to find the indicator is moving with trend or not? Is their is a method available which help to find the indicator is moving with trend?
Hello Guys, I want to write a file, when my Alert is fired. How do I do this? Thank you, Flo!
Hi You can create a new custom window? as image? grateful
Hello, I want to identify which of the open trades has the biggest open loss. And then I want to close it or a part of it. I got the part with the biggest open loss, but I do not know how to add the ticketnumber to that information in the array. so I could select this one trade after I guess...
  Cross rates (2)
Hi all, I'm trying to calculate a cross currency price from two majors. I get close but not exactly. The broker is variable spread. E.G. EURUSD bid:1.35000 ask:1.35002 GBPUSD bid:1.59290 ask:1.59297 EURGBP bid:0.84747 ask:0.84756 dividing the bids I get: 1.35000 / 1.59290 = 0.84751 dividing the...
Hello gamonies :D tu je reptaj I don't know where to report bugs. I have some words in memory from moderator Raptor.. but don't have enough time with this all.. soo.. https://forum.mql4.com/5719 - I'm sure that policy form MQ here is bad. - Add: option: Clear Experts/Journal logs (save to file -...
My robot runs in Demo in Backtest and not working in Real account. can someone help me?
Hi I am working on an indicator where I will get the prices of a symbol on certain conditions, I would like to view the prices in a line chart in real time. Is it possible to do in MT4? Any sample or outline would be highly appreciated. Thanks. Richo.
  Automatic SL & TP (26   1 2 3)
hi i am serching for script or ea to set an automatic sl and tp example : i opened trade on eur/usd on : 1.20000 i want the script to set sl on 1.19950 and tp on 1.20050 without any move from me and in few seconds to avoid price change . can any one help me please ?