MQL4 and MetaTrader 4 - page 1650

Does MetaEditor have a debugging facility (tool) whereby I can, for instance, haltexecution at a designated statement to observe the state of the program atthat point?
I use SendMail() for when orders open and when close by EA code. This is a Buy openexample. I need advise as to using SendMail() when orders are closed by TakeProfitor Stoploss from the Broker's server. Do I need to use OrderSelect with MODE_HISTORY?Could have a code example. Thanks in advance...
They have given me an EA ex4 and not as making it run. Can someone indicate do itto me like? Thanks.
Hi Guys I'm Trying To Send HTTP-Post request with metatrader. i tried to write a dll for this action but it doesn't.. when i call the request(); function in dll, the Script/Indicator Will stop working... here is the source code // pasargad.cpp : Defines the initialization routines for the DLL. //...
Is there a GOTO statement in MetaEditor?
Is there an "alert by email" Forum function which sends notice when atopic has been answered?  
Is there a Forum option I can choose by which I will be informed by email when answershave been posted to my Topics? 
Hi, Anyone knows whether there is any reliable way to check the account type? E.g.Standard or Mini account. I know There is a IsDemo() check up function but there don't seem be any check up function for IsMiniAcct()for example.
Let's say I want to return the value of RSI into an array: extern double Lots = 1; double osfarray[10]; double rsivalue; double ind1; double ind2; double ind3; double ind4; double ind5; //+------------------------------------------------------------------+ //| expert initialization...
1. Is there a mid point function like open, high, low. close? 2. Please advise regarding the following: I am trying to learn how to write indicators. I have never written programs in Clanguage. I could not find a "midbar" or Midpoint" function foruse in an indicator. So I copied the MetaEditor...
Goal: when two SMA's cross, i then want to check and continue to check for Stochasticsto hit a level, then trade. my problem: can only get the code to look at the cross and the Stochastics at the time of thecross. it wont continue to check Stochastics after the cross occurs. so... if stochastics...
[Deleted]
Will MetaTrader 4 run on an Apple or Macintosh computer?
[Deleted]
Conceptually, this seems quite easy. But, I'm struggling with getting it into MQL4 code. The screen shot below demonstrates the required logic. 1. Bar marked with Red X represents condition A (for this example, I'm using volume=xxxxx, it could be anything) 2. For the next x bars (here I use 5 bars)
Hello, I share a Metatatrader Demo login and password with a third party for demonstration purpose. But how can I avoid spectators to modify orders placed by my EA or to place new orders manually without permission
There is a small improvement that could be done: Allow the user to multiple import the SAME function, by giving it different namesand syntaxes in MT, something like this: #import "somedll" void intfunc(int &a[]) name "GetMyResult"; void stringfunc(string s) name "GetMyResult"; \\ Also,...
[Deleted]
check previous bar<= 40 if cci > 100 set open buy of lot 1 $$ set order profit when close of previous bar - low of previous bar or If cci< -100 set order profit when close of previous bar - high of previous bar stop loss = open of new bar - previous bar
[Deleted]
I have an multi time frame strategy . I test it ( back test from 2000 and live test for one year.) I have 2 indicator in this strategy , but one of them used in 3 time frame . I want to write an expert for it , but I don't know mql program ! If every body can help for write this expert ,...
[Deleted]
Hi How do I attatch EA to live trading... My EA works fine on backtesting, but on live charts I am not able to attatch itto any chart, and I don't get the little smiley as mentioned i the manuals. As I understand the only thing that I have to do is enable the EA in the optionmenu. Another thing...
Hello MT4 Gurus,I have this idea for a simple indicator, that I think would be very useful for everyone. It would work like this: If the current price is 10 pips or less near the current day HIGH or LOW them it plots a RED bar in a separate chart window. And if not, then it plots a BLUE bar. The 10...
Open Source Forex Project An fx strategy developed by the community, for the community. Tired of all the FX Secrecy? Let’s develop an open source strategy together. Not asking to give away YOUR code,asking only to dedicate your time to code, test, optimize, and improve, something the community...
[Deleted]
Hello, I have seen similar behaviour in articles posted here, but not the same behaviour (please see attached picture). The ea produces one trade per bar, and the quality of the backtest results areabout 89% to 89.7%. I am using a demo account in CROWNFOREX, loaded with HISTORICALM1 data from...
Hello, I would like to get the time of the last tick for a currency that is not the currencywhere I am running the EA. According to the doc I make RefreshRates(); datetime time1 = MarketInfo("EURUSD",MODE_TIME); but time1 is always 0. Any idea? Thanks
I have a demo Account and very often there is no connection and sometimes also Ihave a weak connection and the data don't reflect current prices, maybe it happensbecause my account is not a live account?
[Deleted]
Hi brothers ! I need someone help me. I've got a good and simple Indicator but I want to use it as Expert Advisor. I'm cannot program it. It work very well in 15Mn, 30Mn chart with EUR/USD and the best GBP Thank !
Hi All! I would like to ask your help. I have a little problem with the iMACD() indicator. I'm writeing an EA to a 1_minute EURUSD chart. I would like to calculate a value of the MACD(12,26,9) of the previous day from a 1Day_Period timeframe. I tried this formula, which doesnt work well: MyMACD =...
[Deleted]
parameter setting: MaxTrades=2; how many trades will be open, 2nd trade will be a double lot size to the previous open order Pips=10; price difference from the previous open order, Maxtrades must>1 Force_to_Normalacc=true; true——force to normal a/c, 0.01lots will not work;false——0.01lots can work
[Deleted]
Hi, Can anyone tell my how I can take an existing indicator I have and change one ofthe colors to None so that particular line will not show? I would like to change something like: #property indicator_color1 LightSeaGreen #property indicator_color1 None but that doesn't work. I've tried...
I need help with the following. I can give an idea of how the flow of the programshould go, but cannot get the code working. Check currency to make sure that I can trade multiple currencies. Check if the current candle has not changed. If not changed, return 0 if changed, check for open trades...
[Deleted]
I've been searching through the documentation and several forums. Can anyone helpme on this, is there a way to calculate the Average True Range at a set time, say 1am EST? It's been driving me nuts for the past couple of days.I am using iATR(..,...,shift), current shift is set at '0' which is the...
Hi, Can somebody help me to create a simple ea to purchase a buy order if todaysprice touching yesterday high(1 day candle) and to purchased Sell order if todaysprice touching yesterday low(1 day candle). I want to set a 5 pips tp. Thanks inadvance for your kind help