Download MetaTrader 5

MQL4 and MetaTrader 4 - page 829

To post a new topic, please log in or register
Hello to all. im new to programming on mql but have been programming on c++ for years. I need to start, so im asking, where do i begin? Id like to write a script that checks all the current open positions and if they are older than x seconds And loosing more than y points (not pips, points) it close...
Hello friends this is checkmail and want to code an EA to execute order even in minimum amount, means it should buy-sell-close even when the Free margin is less than the standard limit of 1:100.Means all i want to do is make that EA to work on an Micro Account starting with $25-...
Hello, I was just wondering if someone could help me out with a small script problem. Right now my EA puts one trade for each period that the entry criteria matches AND has no max orders open at a given time. However, I would like it if the EA would put in continuous trades (lets say up to 10 open...
Can somebody tell me how do i deposit money o metatrader 4 and how do i take it out by transfering the money to my bank account or paypal account????? I am enterally new to metatrader. Thanks.
hi, i have an EA which does a bit of number crunching. as a result, each tick the EA typically runs for a few seconds. now, in general this is fine but sometimes the next tick arrives before the previous instance of the EA has exited. and this causes all sorts of snarl ups. for example, the first...
I would like to test the Custom indicator using Strategy Tester. Hence I create a simple EA to call the Custom Indicator using iCustom() Problem: Custom indicator global variable seem do not record the previous assigned value when testing in Strategy Tester but this is not the case when manually...
Good day. First of all thanks a lot to PHY for helping me with my previous post. U rock! He gave me the key to build my first robot! And a semi successful one at that! https://www.mql5.com/en/users/phy I would like to know, using the Heiken Ashi Smoothed indicator, how use the indicator on multiple...
I have read all I can find about the iCustom function, but I cannot get my code to work. I have found an indicator on the internet which I have attached, called the 4TF HAS BAR. This indicator shows 4 timeframes as bars in two different colours (blue for up and red for down). In my EA, I want to...
I replaced the 3rd last paramater and changed it for PRICE_CLOSE to 1 and suddenly perfect answers every time!!!! stoch1=iStochastic(Symbol(),time_period,PeriodsK,PeriodsD,SmoothD,MODE_SMA,PRICE_CLOSE,MODE_MAIN,1); stoch1=iStochastic(Symbol(),time_period,PeriodsK,PeriodsD,SmoothD,MODE_SMA,1...
  iStochastic (5)
Hi Frustrating!! When I use iStochastic in my EA it returns a diffirent value of what I read visualy off my chart. Diffirence up to 10 big!!!! I have checked and checked my paramaters and it is correct!! Please help stoch1=iStochastic(Symbol(),time_period,PeriodsK,PeriodsD,SmoothD,MODE_SMA...
Hi all, While programming in the MetaEditor, I frequently make small changes and re-compile the program. On Windows XP this was no hassle, once re-compiled you just went into the platform and ran a backtest with no need to even restart the platform, and the new version of the EA would load up to be...
Hey there. Does anyone know of some code or an existing EA that can scan through my existing trades and see if a certain trade has gone x amount of pips negative then placing an opposite order of that that was initialy placed (hedging it). for example I place a trade(sell), it goes 100 pips negative...
I have recently upgrades to windows 7, and despite having reloaded MT4 several times and multiple attempts I am still seeing the problem. Metaeditor stops working any time I attempt to copy text. Any recommendations on this? Thank you Jon
When I trade by entering the stops manually and initially set the stop parameter in OrderSend to "0" the trade will go through - and that is pretty much the only time it will work (on MB Trading & IBFX). It also works when I backtest the EA in StrategyTester. Here is the code that sets the stops...
I am trying to create an indicator that paints the area between two defined standard deviation bands. E.g. The area between the 2nd and 3rd deviations from the central MA. How can I do this? My code is below....
Hello friends this is checkmail and am trying to build an EA for Micro accounts that might start with an capital of $50 - $100. Well i tried myself but couldn't arrive on a particular decision, so am seeking an expert advice in the code. What am trying to explain...
why im getting error 130 all the time ? thanx //+------------------------------------------------------------------+//|                                                        SHAUL.mq4...
Hello, i'm searching for a Script that moves sl above open price. If price has reached +13 pips I want that sl moves auto to +3 pip. With this I can not loose money once the trade hit +13 pips. I am a total script beginner so I hope that there is already a script where i only have to change the...
I am trying to use this indicator in my EA. I need help on how to code this in my EA. I am using the following: nlag0 = iCustom(NULL,0,"NonLagMA_v4",0,9,0,20,1, 0,0,0,1); nlag1 = iCustom(NULL,0,"NonLagMA_v4",0,9,0,20,1, 0,0,1,1); nlag2 = iCustom(NULL,0,"NonLagMA_v4",0,9,0,20,1, 0,0,2,1);...
Hi, May i inquire how can i add a pop up message box with a sound alert indicating the time,the currency pair and the colour. The alert will sound and text box will pop up only at end of the bar once. The condition for the alert is when the candle change to Red or White or Magenta. Currently when i...
I have an EA downloaded to my computer. I have MT4 downloaded to my computer. How do I upload my EA to MT4 so that it's in the list of EAs in my Navigator and available for backtesting?
I need to find an indicator similar to TrendLord, (its a freebie) its just vertical bars at the bottom of the mt4 window/chart, blue bars for an uptrend, green bars for a downtrend, thats it. I already have trend lord installed but the programming is ex4 and its a bit funny with my platform, i was...
Hello, What would be a good method for auto-handling the OFF QUOTES error? I've tried the following but with no success: while (RefreshRates() == false) Sleep( 10 ); I'm trying to close the position and all retries fail over and over again due to that error. The interesting part is that at some...
Where does one begin: I have a four hour chart of a currency pair, and the indicator loaded is the ichimoku. Now, I want to create an alert that will alert me when certain criteria are met: 1. Tenkan kijun cross on the close of a 4hr candle. thats it! How is this done???? I know it sounds simple...
Can anyone help with this... I can barter with some web design: very much appreciated =========================================== #property indicator_chart_window #property indicator_buffers 3 #property indicator_color1 Aqua #property indicator_color2 Tomato //---- input parameters extern int...
Hello.   Why i have better results at backtesting when i mark the lots and maxorders ? I dont change any settings,i only mark and i get better results ?          
I would like to know if an order has just hit SL and is in ordershistory but I dont want to count the same order over and over I want to only count the new orders that were just closed can I do it like this? for(int i = OrdersHistoryTotal()-1; i >=0; i--) { OrderSelect(i, SEL_BY_POS,...
hi, i purchased a license key for MT4 mobile, but it's not accepting the key i received. i checked the logs and i'm getting this... serial key cheking failed i don't think it has to do with the connectivity, coz i was connecting fine during the 7-day trial period. anybody who had the same experience...
Hello, I'm looking for Trailing stop for martingale: If first trade going to positive, use TS. Thanks //------------------------------ I have this Trailing stop: cnt=OrdersTotal(); while(cnt>=0) { OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES); if (OrderSymbol()==Symbol() &&...
hi, just to know what happens here, how gets the data from the period befor the Euro was actually introduced gets calculated? //z
1...822823824825826827828829830831832833834835836...1244