Forum

On two different EAs I can go long and short but if I try to get one ea to do both it instantly closes the position upon entering it. Any ideas?

Hey Guys, I am struggling with getting my ea to trade both directions without immediately closing them. Any suggestions? I am relatively new to coding

Can anyone tell me what I am doing wrong?

Hey guys, I am just starting to learn MQL4 and working toward building an EA one step at a time, I am at the first step and can't figure out why I can't get it to open a trade. Any ideas? Code is below