MQL4 and MetaTrader 4 - page 535

I have the MA Croosover alert indicator which will alert when two moving averages cross. It plays an alert sound and sends an email. The indicator works very well, but once the alert has been triggered, it keeps repeating the same alert over and over again. Could someone please help me adjust the
Hi, I am currently encountering this error when loading my dll coded in C++. What could be the problem?  Thanks. 
Hi,   I want to know how many contracts i can take with my account. If i use :  NormalizeDouble((AccountFreeMargin()/MarketInfo(NULL,MODE_MARGINREQUIRED)),0) the answer is  (int)0.89, so less than 1 contract but i can buy 1 contract . Why ?    Thanks for your answers. 
Hello,   i'm pretty new to programming, i'm studiyng a Renko Expert Advisor, it converts a normal chart in a Renko chart. File is attached, i'm understanding pretty much everything, expect this:   void UpdateChartWindow() {   if(hwnd == 0)   {     hwnd = WindowHandle(sSymbolName, RenkoTimeFrame);...
Hi,  i have two identical instance of MT4 where i run some backtest. Same settings, same historical data. One of them was connected to a broker and the restart without credentials just to allow MT4 to use microlots. Now some strange happens in the MT4 that has been connected just one time: With same...
Is it true that I cannot define e.g. for Comment(..) leading zeros  before the decimal point. As I want to show percent-numbers which range from 1.1% to 999.9% and I want to be able to see mat the chart (with Comment(..)) 001.1% .. 009.9 % .. 022.2 % .. 123.4 % .. 999.9 %. I tried StringFormat(%03...
I've been using an EA of my creation for a few years now and it always worked quite well (at least in terms of doing what was expected of it, results are a different story!).. I've only used it on currencies so far without issues, but recently I tried to apply it to XAUUSD The result is that the EA...
I've created an indicator that will plot horizontal lines on each tick. On each tick, I'd like to find the line that is closest to the current price in order do other things (plot vertical line between those 2 points, know how to do that.) I figured the best way would be to just loop over all chart...
[Deleted]
  what is the right way to learn?  (210   1 2 3 4 5 ... 20 21)
Hi all! I am very new to forex. Can you tell me the right way to learn and what to learn
[Deleted]
I have 3 indicators that i have used for a while, but lately i have tried to automate my trade but discovered that some of the buffers are hidden. Can anyone help to modify it so that it displays its hidden buffers on the data window. I use these 3 indicators for Daily chat trend confirmation. I...
Is this the best way/correct way to code the Exponential Bollinger Bands?? I want to know if my formula is correct. #property indicator_chart_window #property indicator_buffers 3 #property indicator_color1 clrSilver #property indicator_color2 clrSilver #property indicator_color3 clrSilver extern int...
Dear Sir, Please add settings when reach the profit in basket close all orders at a time. Add Input options 1. Basket Close = TRUE & FALSE 2. Basket Close In = AMOUNT & PIPS 2. Basket Target = 10 if Basket Close TRUE means when reach basket profit $10 close all orders immediately. if Basket Close
  optimization of code  (17   1 2)
Hi, I found somewhere there that i way to optimize the code is to use multiple if() instead of &&. So I made changes in my code and stopped working properly. So where is the bug? Plz help This worked slowly but properly void  SLman() {  int type, ticket;    int total = OrdersTotal();      double...
HELLO I NEED HELP, AND ME AN MY FRIEND AND WE HAVE MADE A TRADING SYSTEM FOR MT4, MADE THE TESTING, OPTIMIZATION I WANT TO SEE THAT TAKES MANY HOURS AND DAYS, THERE BEST SOLUTION TO OPTIMIZE IN LESS TIME?
Dear Friends, I'm writing my first EA. Order send is not firing but i am getting  next line alert at every tick. Could you please clarify why this is happening? //+------------------------------------------------------------------+ //|                                                 Lal-First EA.mq4...
  server not found  (2)
My mt4 platform for android cannot see any trading server why??
Hi, can anyone help with osme code to Martingale Binary Option EA on next candle. I have code from EABuilder which will Martingale n next signal but I was looking to make this an option for next candle or next signal This is the code from EABuilder..  Thanks...
[Deleted]
I am currently working around some really basic stuff and I can't wrap my head around this one. How would a simple program look that would do nothing else but count the amount of ticks recieved in a 30 second period? I'm asking for the actual code that can be executed. I will be forever grateful.
Does anyone know how Point is calculated in Meta trader 4? The documentation for Point says  - ` The current symbol point value in the quote currency.` But what does that mean? I noticed that in meta trader sometimes Point is 0.1 other times its 0.000001 for the same currency pair. Any insight...
Hello Everyone, Am currently building an EA thats base on the ichimoku kinko hyo system i have  manage to code a few lines but am close to no where, cos the EA is incomplete and its giving me errors. Firstly, am having problem in putting the trailing stop in my code so that once the price hit the...
  CHART_SHOW_TRADE_LEVELS  (12   1 2)
Hi, I have a problem with CHART_SHOW_TRADE_LEVELS. I have written code:    long tradeLevelsVisible = 0;   if (ChartGetInteger(ChartID(), CHART_SHOW_TRADE_LEVELS, 0, tradeLevelsVisible))      Comment("Show Trade levels="+tradeLevelsVisible);   else      Comment("");   and tradeLevelsVisible variable...
  Expert's idea of a double martingale  (100   1 2 3 4 5 ... 9 10)
Hi all. A lot of people are scolding Martingale money management, but I keep experimenting. As in roulette it is really effective (tested in practice) There is an expert idea, but it can work at brokers who don't ban the lock. No statistics, as I need to write an Expert Advisor and put it on a demo
I have a newbie question about coding. As you see on below picture I attached 2 ZigZag indicator to a chart. First with parameter Deviation=1000 color white and second with Deviation=5 color red. As you see there is not influence of Deviation parameter (indicators are overlapped).    I looked at...
Hello everyone, Because i believe in Fibonacci tools, I'm trying to add them all in one simple indicator. So here's my first indicator which will draw almost all Fibonacci tools such as Retracement, Arc, Fan, Expansion and TimeZone based on ZigZag swings (expect the Channel i couldn't make it). It
  The revenge strategy  (101   1 2 3 4 5 ... 10 11)
I read in the internet about the strategy "revenge" by the author writes that the profitable strategy, I want to ask if anyone uses it, any results and in general whether it makes sense to trade by this strategy
  TA or something you don't know about.  (1179   1 2 3 4 5 ... 117 118)
What is TA? Technically, it is a market analysis based on data coming into the exchange terminal. That is, it is usually a standard price formula for a bar (OHLC), volumes and ticks (only ticks for Forex), open interest (for options), the cup, the current volumes of supply and demand for the
Hi, I would like to add the attached indicator to my EA using icustom. What double would I have to declare for uptrend/downtrend ? Thanks
  ENUM_MA_METHOD  (4)
Hello guys, I have this problem I can not solve. I wrote this code: enum Tipo_MM  {   A=MODE_SMA,// Media semplice   B=MODE_EMA,// Media esponenziale  }; input Tipo_MM Tipo_MediaMobile=A; Then I insert "Tipo_MediaMobile" in this code: (iMA(NULL,PERIOD_CURRENT,3,0,Tipo_MediaMobile,PRICE_CLOSE,0) but...
Hi Everyone,  I am coding a EA. I dont know how to make Stoploss move automatically. Could anyone please help me on this ?
  Trade Of The Week  (19   1 2)
Currency investors should consider selling GBP/JPY this week, advises CitiFX in its weekly FX pick to clients.  "Sell GBP/JPY at 130.55, target 127.10, stop loss 132.60," Citi advises.  *Citi weekly trades provide short term guidance on where they see 1-2 week opportunities in G10 FX markets. Unless...