Forum

MQL4 Simple Hedging Program help

i am currently building a simple hedging algo for MT4 (in MQL4) the problem is i keep on getting error 4051?! why does this happen all the time and how can i fix this. can someone please help //+------------------------------------------------------------------+ //|

MQL4 Pending Orders Wont Open

I have been working on my expert advisor and have tried to open a pending order. i keep on getting error 130 (invalid goals), so i set my goals to 0 and then added a little script that closes all orders manually. I still get error 130(invalid goals), is MQL4 trolling me?! case(OP_SELL): {

Help, trying to make my ea

ive been trying to make this expert advisor for quite a while now and i keep on getting errors( error 130 , 129) and the program doesnt save the values of the price

Can someone help me fix my code?

the following is in MQL4!!! so i have been programming my code and i have been constantly getting error code 129. i don't know how to fix it also: the Alert("Target Hit") comes WAY after my price target hit, way to delayed.: if(Variable_1 < Variable_2 && MarketInfo(Symbol(), MODE_ASK) <=

MQL4 ORDERS WONT OPEN

hi i have a roblem with my ea. i programmed it and it works perfectly in strate tester but not in live demo. i have checked live trading allowed, pressed the button that allows trading, and i have checked auto trading allowed when my ea... what am i doing wrong!!! the orders wont open, but it gives

MQL4 ORDERS WONT OPEN in DEMO

+--ALL IS DONE IN MQL4--+ i have a problem with my trading algorithm, i tried the expert advisor in the strategy tester and it works perfectly, yet when i attempt to do it in a live demo it gives me a notification that my price target hit... buy my order never executes. I HAVE turned on the auto