Forum

"PRICE_CLOSE" in Current bar is equal to...?

iMACD(NULL,0,MovingFast,MovingSlow,9, PRICE_CLOSE ,MODE_MAIN, 0 ); if the bar is still the current one, how MT calculates the Price_close?? is that the last value? The price_close is supposed to be the last value only when the bar is closed . right? Could that lead to problems? Sorry if that sounds

What is wrong with my EA?

Hello, This is my first post here and as you will see, I'm not really a programer. So please bear with me..... :-) I have altered another EA I found here and wrote the following EA (Attached 37Temp.mq4). However, when backtesting, even though I can open an order "on time".... sometime the EA ignores