Forum

Simple code to get number of minutes / hours in a trade

I'm trying to come up with a real simple piece of code that just shows me the number of minutes / hours that I'm in an open position. Basically what I know I should do is use TimeCurrent ()-OrderOpenTime() But this gives me a Time formatted value from year 1970. I'd rather just have a number of

Indicator based on another indicator input

Hi, I would like to know how I would program a indicator that has another indicator as an input? Example: I would like to put a Moving Average over a Average True Range .. So in human language I woud like something like EMA(ATR(15), 8)[0] to read the current 8EMA of the 15-period ATR. If somebody

loop through files in folder

Hi, I'm trying to run through a number of files that are located in my FILE_COMMON directory. In this directory I have the following structure NTOutput\Handled\ NTOutput\OrderTickets\ NTOutput\Pending\ I would like to look in the OrderTickets\ folder and show all files that are located in this

Subscribed to signal but nothing happens

Hi, I've deposited funds in MQL5, subscribed to a signal, have my MT4 terminal open, but nothing happens. My signal provider has opened a trade which isn't opened on my account. Are there additional steps to be taken? Thanks