Forum

Code to keep track of ea profit and loss

how to keep track of EA profit and loss? Does anyone have a code to put in EA so that it will keep track of the EA's profit & loss? I want the total of profit & loss display on the chart, when someone drag and drop the EA to the chart

Open Source: Grid Trading EA

Does anyone have time and want to improve this EA? Source code included. http://rdzgridtraps.codeplex.com/

Free EA with source code that will open trade the opposite direction if it is wrong on a trade

Does anyone know of any free EA with source code that will open trade the opposite direction if it is wrong on a trade. This condition is true if price moved against the original (buy or sell) order by 20 pips. Also, while it open trade in opposite direction, it must pay attention to the averaging

Does anyone have a template for Closing trade and opening trade in the opposite direction?

Let's say if an EA open a buy order , the market move in the wrong direction. I want the EA to close that order and open in the opposite direction. Does anyone have a template for Closing trade and opening trade in the opposite direction

iFibonacci

I found this iFibonacci indicator https://www.mql5.com/en/code/14393 Does anyone have any idea on how to use this iFibonacci code in an EA? Is it possible to call upon iFibonacci like iLow, iHigh, codes in an EA? Or, is it in development for future release of MT4

How do I convert the amount of money into lot size?

I'm trying to convert the amount of money into lotsize to buy or sell. let's say account balance is: $1000 Lotsize risk percent is: 20 the formula I used below return the value of $20. How do I convert that into lot size? Here's the code I'm working on. What am I missing? double

iLowest

Hi, I'm trying to create an EA that place a buy order when price is above the 50 days line. Here's the 'if' condition: if((iLowest(NULL,1,MODE_LOW,10,0) > iMA(NULL,PERIOD_M1,50,0,MODE_SMA,PRICE_CLOSE,0))) However, When I test out that if condition it placed an order at a bar higher then the bar I

Can someone add a rule so this great scalping EA can follow?

I found a great scalper online. It's called angrybird ea https://www.mql5.com/en/code/12872 Source code is available there too. The robot works perfectly, however, I would like the robot to follow these 2 rules. Can someone add these code to this EA? Rule #1: When price is above 50 days moving

iBearsPower

Does anyone know what is the code to calculate the median number between the highest value and lowest value of iBearsPower ? For example: iBearsPower highest value is: 50 iBearsPower lowest value is: 10 Median value is: (50+10) / 2 = 30 I want to know what the mql4 code for that

Money Management pending orders' risk?

What is the code to use to display the total pending orders risk percentage to current available balance