Codes

ADX Expert for MetaTrader 4

MT4 Expert Advisor based on ADX indicator

MACD Expert for MetaTrader 4

Expert Advisor which trades signals from MACD indicator

Forum

I cannot access the project I work on page. Error 404

Hi guys, for some reason when I try to open the page with the project I'm working on, I get an error 404. The page does not exist (mql5.com) Strange but the customer can access the pages and is sending messages in the chat section and I'm receiving these messages via the MT4 application on my

Candle GMT offset

It really frustrates me that the MQL4, does not provide a way to get the GMT offset from a specific candle in the past. I'm writing an indicator which needs to draw a vertical line on the chart when the broker timezone has been changed. How I can do this ? Please guys, if anyone out there has a

Very Strange MQL5 Error

Hi guys, I'm getting Order Send Error 4806 and I don't have any clue why ... This is the code if (SubTotalSellOrder() == 0 ) { ticket = m_trade.Sell(Lot, NULL ,m_symbol. Bid (), 0 , 0 , "comment" ); if (ticket > 0 ) { Print ( "Order send success" ); TakeScreenShot( 1280 , 720 , 0 );

MT4 cannot be started automatically!

Hello there, I'm trying to run my MT4 terminals automatically on Windows startup through Services and Task Scheduler on my Windows Server 2012 dedicated server with no success. Looks like it is not possible to run MT4 as a service because it uses specific, user dir, so that user needs to be logged

How to get color of customer indicator ?

Hello, In my EA I'm trying to catch the moment when the custom indicator changes its color, would you guys help ? Thank you! Source of the indicator below //-- #include <MovingAverages.mqh> //- #property indicator_chart_window //- #property indicator_buffers 6 #property indicator_color1 clrNONE

How to get color of customer indicator ?

Hello, In my EA I'm trying to catch the moment when the custom indicator changes its color, would you guys help ? Thank you! Source of the indicator below //-- #include <MovingAverages.mqh> //- #property indicator_chart_window //- #property indicator_buffers 6 #property indicator_color1 clrNONE

Volume[1] multi value returned ?

Hi there, I'm trying to get the value of Value[1] but as a result I'm getting 2 different values like 1203 and 735 ... The same is for Volume[2] ... [3] etc. Is it not supposed to be just a single value returned

Lot size calculation

Hi there, I'm trying to figure something out but ... I'll try to explain. I have $50000 account and I prefer to risk on every trade 3% of it. This is $1500. The standard lot normally yields $10 for 1 pip. Right ? So divide 1500 by 10 means I have 150 pips price channel for the market which I can