Download MetaTrader 5

MQL4 and MetaTrader 4 - page 623

To post a new topic, please log in or register
I am trying to get the highest high/ lowest low of last 4 weekly bars. The code works when I have it on the weekly timeframe, but when I switch timeframes it changes the value to the highest/lowest of whatever bars are there. So for example I am backtesting an EA on 5min data, and it is using the...
The purpose of an expert advisor, commercial or not, is to make money. But the brokers don't allow us to make money. So what's the right way to make money when trading with a real good expert advisor?
Hello guys, I am working on an EA to trade horizontalchannels’ break-outs. It’s not fully automated EA as I have to find a channel andthen feed its high and low manually into the EA. Basically, I want it tosubstitute placing 2 individual manual orders, a buy stop on the top and a sell stop onthe...
Hi Forum, To not highjack other ppl's recent thread and more specifically: I found this Support/Resistance indicator in the Forum (props to the Author!) and I am planning to give it a try. One thing is bugging me though: the launch of the MT4 platform slows down significantly (to "Not responding"...
problem solved. thanks a lot.
Hi, I am unable to test the same EA on different pairs with the strategy tester. The same EA is running on EURUSD or EURGBP but not on AUDCAD and many other pairs (most of them). I downloaded the history for the appropriate pair prior to running the test. I checked the date-range of the history data...
int start() /// Want to delete all pending orders  {   bool k;   double cls, Lot;   for(int i=0;i<=OrdersTotal();i++)      {      k=OrderSelect(i-1,SELECT_BY_POS);      int Ticket=OrderTicket();      Print(DoubleToStr(Ticket,3);                Lot=OrderLots();      if(OrderType()==0)...
Hi I would like to convert my Tema function to function like TEMA(CLOSE,PERIOD) I have problem with variable Tema[i], How can i return this variable from funtion ? My code : int n=4, Av=6;double var1;int i,limit;//---- buffersdouble Ema[];double EmaOfEma[];double EmaOfEmaOfEma[];double Tema[];int...
Hi fellows, In this thread I would like to analyze if this new type of moving average may/may not to bring any good... I'm showing here my first experiment with it; I did used like base, the Cuttler's RSI and I did replaced the SMA with the NMA. The result was a kind of "extremely nervous"...
hi! i would like to set an expiration date into my indicator and stop him when date is out thank you in advance!
hello i need to import/export some data to/from my script via tcp/ip. i've read this tcp post: https://www.mql5.com/en/code/9772 but with unsuccessful implementation. thanks regards
I think most people would like to have visual signs in the chart when opening and closing a position. I know, you can programm it with an EA. But it should be possible more easily: If the programmers of MetaTrader are too busy they should add a Menue Point for own scripts. So everyone can add...
Hi all, noob here:) been playing with ea's and indicators and started on custom indicators. for troubleshooting purposes i have the ea print the parameters it receives from the custom indicator at the start of each bar. now i am trying to find out why the values the custom indicator passes are...
hello there is a way to grab an indicator alerst to use it within a script? thanks in advance regards
Is there something not set right in my MT4? I see that most of the 'Close Order...' entries are missing from my log files. I can still get this info from the Detailed Summary of rhe Account History, but I am wondering why most of the time it is Not in the log files. - and how do I ensure that it IS...
Has anyone programed a counter into to tell how much time is left before a time frame resets to a new candle or bar?
  Stochastic EA (7)
Hello Does anyone seen simple Stochastic EA? Where short position will be opened when stochastic shows (overbought [above 70]) and long when oversold [above 30] ? I would be grateful if someone could give mme the link. Regards, Dmitry
Hello! I would need script for MT4 like this. Can someone code it for me, and for what price? For instance: - I open Buy position of 0,1 lots on 1,3000 and EA(script) automatically puts Take profit to 1,3010 and SL to1,2970 - It also opens Buy limit position of 0,1 lots on 1,2990 with TP on 1...
We have just released beta version of mt4Analyzer.com mt4Analyzer helps you evaluate your MetaTrader4 EA properly and easily by using statistics. In statistics, a Confidence Interval (CI) is a particular kind of interval estimate of a population parameter and is used to indicate the reliability of...
Does anyone have some sample code for how to call a DLL written in Delphi from MetaTrader? I can't get Var parameters to work. I wrote the following test function in Delphi and compiled it as a DLL (using Delphi 5): function AddIntegers( a: integer; b: integer): integer; stdcall; begin   result := a...
Hi, I'm south Korean Ichimoku SpanB SpanA and cross at the cross I would like to line represents the highest and lowest. I do not know English But you can translate. This technology is the foundation of our I run four meta-FX. I wish you good luck.
Hi guys, Im trying to build a EA that calculate the High and Low, Im using standard devtion to determ when the market isnt moving then setting high and low values and want to buy or sell if the price is crossing under the low or above the high Im getting wrong values in high and low, someone know...
Hello,I want to create an ObjectCreate- function to show an Object in one of my subwindows. An iCustom function opens me the indicator in a subwindow when I run the EA. Unfortunately when I set the 5.paramter in the ObjectCreate function as 1(index=1; for the first subwindow), the Object won't...
This is something I have been struggling with for sometime. Because of the type of EA I am trying to use, I feel that scaling lot entrys at different prices is somewhat better. I can't seem to make it stop or shut off the Maximum number of Lots or trades. Lot size control is no problem. My...
I am unable to create offline Renko chart inMatatrader 4. I was able to do this a few days ago, but now when Itry to create a EURUSD,M2 or EURUSD,M13 it does not appear in FILE -OPEN OFFLINE. Nothing has change as far as permissions. I am totallystumped on this one. Thank you in advance!
As Newbie, I just know to use below code total = OrdersTotal();if(total < 1) and the EA will not open other trade during the trade opened, it need to wait it end that make it miss out a lot entry chances I still working with my simple EA https://www.mql5.com/en/forum/137972 How to code it open...
Hello, how to print more than one variable to order comment with OrderComment() function? Example: //+------------------------------------------------------------------+//| It calculates the data for opening a new order...
Hi, Is it possible to put a limit of trades per 1H period while backtest? For example if the last trade was at 11:56 then the next trade can be send at 12:00. I have tried to do something with sleep() but this function doesn't work while backtest mode.
Hi - please forgive my newbie naivety and perhaps this question has been answered many times over (I did search, but couldn't find anything which answered my question). The version of MT4 provided by my broker doesn't seem to show historical volumes on monthly charts further out than a year prior to...
Hello everyone, I need to put trailing stop in simple MA EA. Please see attached code (I think it is there when you download MT4). I would be very grateful. Thanks, Dmitry