MQL4 and MetaTrader 4 - page 1014

Hello guys. I wanted to understand why I get different results using a multi timeframe indicator code to develop an EA. Basically I have written a quite simple code to check the Parabolic Sar over three different timeframes. The indicator seems to work fine in accordance with the logic, instead when...
[Deleted]
Hi, all. Firstly, I am sorry with my poor English. I have created an EA that open many orders on many currency pairs. When the total profit of all orders (in $) have reached the defined profit, the EA will closing all orders one by one. But this execution sequence takes more times and sometime...
Hi, I want to check open orders (market) orders for special number in OrderComment. If order with same comment exsist do not open another order. Problem is that somethimes it duplicate order. Can you check for errors, please? int countbuy = 0 ; for ( int i= OrdersTotal ()- 1 ; i >= 0 ; i--)
Hi there (personally, to those who still remember me ;-) ), haven't been here in a while). I've read a couple of threads about probability, randomness and theory, but it's a shambles. So I'll just throw my twisted thoughts at you in case anyone understands. ;-) here we go. Probability Theory(!) is
  Read File and EA  (5)
Hi All, I am looking for for help to see if this scenerio can be achieved in an ExpertAdvisor : 1. I have a text file(input_to_MT4.CSV) lets say: BUY, EURUSD ,1.0,MAGICNUMBER001 //{Action,symbol,lot,orderIdentifier} 2. The ExpertAdvisor should: Loop { A. Read the File B. If there is contents in the
  new order each hour  (16   1 2)
I have some code to create some orders once per hour. Do I need to run it in a for lopp for each section ie 0 to 24 to do this?             //create new orders, open at xx:00            if (Hour() ==0 && Minute() == 0 && varH1BiasDirection == 1 && OrderSetFlag == 0) {...
How can a script place a trade? The error 4109 shows up. There'sno opportunity to enable the checkbox to "Allow live trading" in theexpert properties. The script just runs and exits a second later. Hereis the bare bones script I'm working with. int start(){   int...
[Deleted]
I've a major problem with My EA as detailed below; please help and advice with partially written CODE as possible. Introduction: My EA is instructed to start by certain neutral conditions, till only one of the GoLG (buy) or GoSH (sell) condition(s) is met.The last OrderType() should be stored in...
I had some spare time today after I was talking to a friend who has been toying around with MetaTrader 5, so I decided to download a copy of MT5 from this site and see what he was talking about. Later I went back into MetaTrader 4 to finish up some editing to an EA I had been working on, after 1...
[Deleted]
I don't understand the logic behind NOT offering robots on mobile platforms. If one of Metaquotes objective is to popularize the meta trader i think NOT allowing robots on iPhones or Android is severely hindering meta trader's growth... (I don't get it!) Can anybody explain the logic behind this...
[Deleted]
  Finding my ID  (3)
Hi, how do i find my MetaQotes/MetaTrader ID? the instructions (Tools>Options) say it's located at Settings>Messages can't find it thank you Randy
I've been setting my stoploss and takeprofit based on price volume.So I created this indicator that determines the high and low for some number ofbars and uses that spread to place two moving horizontal lines indicating wherethe stoploss and takeprofit will be if a trade is opened. I think it helps...
Hi all, I'm trying to recall the closing time for the last order executed on the account for a certain currency. What do you think about this code? Thank you! total_history = OrdersHistoryTotal( ) ;    for(cnt=0;cnt<=total_history;cnt++)     {     OrderSelect(cnt, SELECT_BY_POS, MODE_HISTORY);...
[Deleted]
Have you ever heard about the site http://www.forex-einstieg.de or something like that? As far as I know, if you look for German brokers then you will get help from this site.
[Deleted]
Hello. I have no idea if this is the right Forum, or if this has been asked before, but I am using the latest build of MT4 and there is NO WAY TO KNOW WHICH TEMPLATE YOU ARE CURRENTLY USING. Can't believe this has been an oversight for SO long, please, in the next build, have this info somewhere,...
[Deleted]
  OrderSend() BUG  (2)
Hello, is it possible that there is a BUG in the OrderSend()-Function? For few weeks the OrderSend() doens't work correct. When I have a SL in my OrderSend(), the EA doesn't open the order, but when I set SL to 0, then he opens a order and I have to modify the order with OrderModify(). Why?...
ı did a indicator and ı need to use it in my EA. ı know there is iCustom code but ı didnt understand to use it please help me .
Dear all, I would like to know, if I put entry condition in an indicator and put order execution in EA, is it still able to perform backtesting for this system? If yes, how? Thanks for your kind help. wing
Hi everyone, I am looking for the simplest code in order to get the daily Highest/Lowest value of an indicator. For example we run CCI indicator with CCI_Period=12. This indicator has many picks as lowest or highest value in a day. I am trying to get this values in order to compare it with other...
[Deleted]
As you see on the picture the green line is over the NULL -Line, but the indicator repeats negative values (by mouse-over). May be I have to restart my MQL4
[Deleted]
  problem with Big in start()  (12   1 2)
Hi,I'm so new to MQL4. I wanted to test this sample code that is in toturial : -------------------------------------------------- int Count=0; // Global variable//------------------------------------------------------------------- int start()...
[Deleted]
Hi is there a way someone can change the background of the performance chart that is generated when you generate a report from mt4(not the chart in the symbol window).
In an indicator, I'm trying to modify the fibo description of a fibo object I created. The code to create the object works fine: ObjectCreate(objFibID,OBJ_FIBO,0,Time[HighestBar],High[HighestBar],Time[LowestBar],Low[LowestBar]); "HighestBar" and "LowestBar" are integer variables. After a couple...
Is there any way to programmatically retrieve the name of our EA?
  GOLD in a couple of weeks &gt;1000 ?  (116   1 2 3 4 5 ... 11 12)
similar to the parallel thread ( EURUSD in a couple of weeks from 1.4 to 1.5) would like to chat about gold :)
If I make a trade using OrderSend() or OrderClose() then want to look at the number of lots or execution price on the ticket, do I need to make a further call to OrderSelect to get this ticket, or does this happen automatically? Eg if I call OrderSend() then OrderMagicNumber(), is the magic number...
[Deleted]
I want to sendorder on the 5 minutes' duration use this bar's open price, how I can do? The condition will true in the pre-bar. Sorry for my english... Thank you very much!!!
Sat ) Interested in an opinion on all three questions, preferably with an intelligible explanation of why. The answer should not depend on the trading system used. I will give my opinion later) if necessary
Hi, I've been looking for a custom indicator that identifies divergence between price and the OSMA, to help compile a simple EA based on osma divergence Is there already a custom indicator that does this? Any help will be much appreciated! Thanks
Hello! I'm just trying to add an email alert to this indy similar to the popup alert box, but I"m getting an error (highlighted in yellow below). Could you please help me to correct the 'wrong parameters count' error message in this indy when adding the email alert?...