Forum

How does this work......

On the internet, I got the sample code where I can enter and close orders everytime there is a crossover of Moving Averagea . When I tested the sample code, it worked. When I analyzed the sample code, I didn't get how it worked. I do not understand how this sample code could close orders at

How do I set "TakeProfit" at death cross?? HELP!!!

Hi, I am new to MQL4 coding, and I have a question. I am coding an expert advisor which sends an Entry order at Golden Cross of Moving Average lines. I also want to close order when the Moving Average lines cross at Death Cross. However, when I backtest this EA, I can only send the orders and these

Why do I keep getting Error 130??

Hi. So I just started learning MQL4 and was testing if I could send order at Ask price on USDJPY. However, whenever I try to run the program on MT4, I keep on getting " Error 130 ", although I set SL/TP far apart from Ask price. Why is this happening?? void OnStart () { //--- Alert ( "" ); int