Forum

Order Closing Problem

Hello, This ea only opening new BUY/SELL trade but not closing it properly. When new BUY order opened properly. Now condition for closing opened buy order & Opening new SELL order . It is not able to do that. But when I manually close opened buy order & then it open new SELL order. Same error on

Help Needed On MQL Code

Hello, I need help on this EA. Actually I already got system in Amibroker TA, also I am trying to code same system as MetaTrader EA. Below is amibroker code(AFL) for system that I want to code as EA. Quote: no= Param("period",7,1,100,1); res=EMA(HHV(H,no),3); sup=EMA(LLV(L,no),3); a = Cross(H,res);