Forum

MT4 - High-Low Indicator code not working

This should be simple - I'm just looking to display the high-low of the current chart in a sub window. This does open the window but doesnt display anything. even though I change the color before adding it. What am I doing wrong? Thanks... #property indicator_separate_window #property strict //

maximizing MT4 optimization with MacBookPro (2016) Bootcamp Windows 10 64 bit

Wanted to update some of the threads here - I wanted to use my maxed out MacBookPro (late 2016) to run EA optimizations. So I used BootCamp, bought a 64 bit version of Windows10 Pro (real inexpensive if you look on the net). Everything went fine. I'm using April 2018 version right now. I took off

Using interest rates in Expert?

I would like to "lookup" interest rates somewhere on the web, use them in an expert calculation in addition to other parameters to place trades. But I have no idea if 1) the actual interest rates appear anywhere and 2) if its possible to go out to a site to "Pick them off" and then use them in an

Multi Pair Indicator Panel (MT4)

I'm trying to create an indicator panel in MT4 - never have done that before. I've done a couple of indicators in the past, but simplistic. Specifically I wish to show in an upper quadrant the current ATR(x) for multiple selected pairs all at on a Y time frame (ie, all 4 hour) in terms of pips. Does

anybody use testing to calculate days?

The MT4 tester is good for finding most everything about an EA. However, I would like to find the average days for wining and loosing trades. The MT4 tester doesnt seem to do that. Anyone know of how I could find out the avg # of days along with some standard deviation stats? Suggestions

how to send email?

I have the following indicator code. It shows an arrow on the screen when a certain condition exists. I want to have it send an email when the condition exists AFTER I attach it to the chart. The problem is that it currently tries to send emails for each occurrence when I attach it. Can anyone help

Sending Email once?

I'm editing some code I found that creates an Arrow when a double inside bar occurs. I would like it to send an email when it occurs as well. I have used SENDMAIL() abd it works too well...I only want it to send an email when a new double inside bar occurs. I would still like the arrow on all double

Dynamic SL TP pip dollar calculator

I'm trying to find an indicator or EA that would calculate the difference between the order price and the stop loss/take profit in the deposit currency as well as in pips. I'm also looking for code that would show how when I move a line on the screen, the value is "picked up" by an indicator or

Placing variables in series by value

I have created an indicator where there are 4 extern values: MAE1, MAE2, MAE3, MAE4 Is there a function to place these in numerical order from lowest to highest so that MA1 contains the lowest MAE1-4, MA2 contains the next lowest, etc? Seems that the code to do that by hand would be rather intense

Getting completed order data from external program

I'm creating a basic program outside of MT4 that will rely on obtaining the completed trade information from MT4. SO, for example, when this application is opened, it can go out and get the latest completed trades. The question/food for though is: Can I create something external to MT4 that allows