Forum

Checking for recently closed bars on multiple timeframes

Hi all. I'm working on an EA that checks the most recenltly closed bar for Pinbar geometry. The code at the bottom of the page is a cut-down version of the EA, intended to to display my issue. I first search for when a bar closes using code that has been on this forum many times, and this works

Digits, MODE_DIGITS, SYMBOL_DIGITS

Hi MQL4/5, As you will see from the nature of my question, I am new to coding and am currently stuck on how and where to use 3 different versions of the 'Digits'. That being "Digits", "MODE_DIGITS" and "SYMBOL_DIGITS". How are each of these used? I have a section of my program that checks the

Pinbar Signal EA

Hi MQL 4/5 users. I have created an EA that detects Pinbars (Yes, I know it's been done before but I'm very new to coding and this is my version which I intend on building additional confluence and trading functionality into). So far, the EA checks prior candles (the quantity specified by the

Function for returning a positive number

Hi all. Does anyone know whether there is a function available in MQL4 that converts negative numbers into positive? I want to measure the length of a candle's body in pips and to do this, I subtract the open from the close. So for bullish candles where the close is higher, the length is a

Warning "implicit conversion from number to string"

Hi MQL4 forum. I'v just started learning very simple MQL4 code and have converted a pre 2014 file to the current format. I've managed to work out all errors/warnings except "implicit conversion from 'number' to 'string' on Line 45 Market Hour GMT. Can someone please advise me what needs to be