Forum

Inverting double value

Part of my indicator uses USDCHF open price inverted to give CHFUSD open value which normally is 1/USDCHF. My indicator is working on one or two time frames but on others I am getting an error " zero divide " and it is pointing to this line of code? double Quote = 1/

Enum to string

I'm trying to create a drop down menu for currency pairs for an indicator. Using the enum function I can get the pairs in the menu but I need to reference the pairs in the code as a string. For example I need to reference "EURUSD" and "GBPUSD" as strings in different calculations but the input I'm

Send mail at certain times

Does anyone know how I could send email alerts at certain times? I am looking to do this every hour, the Sendmail function is easy enough but I'm stuck on a Time loop? Thank you in advance

MQL4 Objects delete question

I am new to mql4 coding. This is my first indicator using arrays and I'm having problems with the object delete function, its not removing indicator after removing from the chart? I have looked everywhere for a solution I can't see how this is not working, does anyone know what needs changing below