Forum

Deleting an EA after it has been loaded to a chart

I deleted an EA in the windows folder today with MT4 open and running with the same EA loaded and it is still open and smiling and running on the chart? So although it is not in the windows folder anymore it still appears to run in MT4. If MT4 then shuts and re-opens the EA is not longer there and

recording the MACD signal value when RSI(2) is greater than 90

Do I need to create an array if I want to record the MACD signal value each time RSI(2) goes above 90 or below 10

why don't the orders close in MT4 Build 646?

They say the best way to learn is by making mistakes - so I must be learning a lot right now. I know the coding may not be neat but it is a start for me. I am trying to learn two things. 1) How to only place one order per bar. 2) How to close an order after a set number of bars have passed. My

Calculating percentage of days up

Can anyone tell me an easy way of calculating the percentage of days up vs days down over a given period. So 20 day look back, 16 days were up days = 80%. Not exactly rockent science i know but I don't want to do it in Excel. Do I need a custom indicator ? Or can I put it directly into a EA

Maximal drawdown in back testing - what exactly is it?

Folks, I am confused. Can you please explain for me Maximal and Absolute Drawdown. I thought I understood but in my testing it shows a gross loss of 63 and a maximal drawdown of 4030 and absolute drawdown of 1715 but it never drops more than 21 below the opening balance ... how can that be? See

I need help setting the lot size of the next buy order if open buy orders are in profit

I have multiple open order (up to 4). Only buy or sell open at any time. I want to set lot size of the next buy order depending if the current open buy orders are in profit. if total openorder profit > 0, then next order lot size = 1.4 if total openorder profit < 0, then next order lot size = 0 (can