Forum

New to MQL4 programing. Advice on displaying spread (5 decimals)

Hi Guys, having issues with displaying the current spread (Bid - ask). It works fine for up to 4 decimals, but I need the spread to be displayed as 0.00005 for example. My code is quite simple (please see below) int start(){ double ask_price = MarketInfo( Symbol (), MODE_ASK); double

How to make this pivot indicator to plot only HLINES for the month

Attached is the source of this indicator. Currently it makes use of ObjectMove to continuously plot the pivot levels. I'm trying to modify this indi so that it plots HLINES (Horizontal lines) for the pivot levels for the past month.. I believe I have to change or replace the ObjectMove instances

Help with some MQL Coding

Hi Guys, I'm trying to modify an existing indicator. The indicator currently plots, Monthly, Weekly and Daily Highs. I'm trying to introduce a 'Quarterly' high/low as well. The code was pretty simple, so I changed the values of the # of minutes etc. and tried to compile. There was no errors but the

Is there a way to automate emails when trade is closed?

Hi Guys, I'm looking for an EA or an Indicator that will send mail when a trade is closed with details such as the pair, P/L. I've been looking around for this but couldn't find anything. As of now, I use the MT4 ftp publisher which I access via the browser to check every hour. The MT4 default alert