Forum

How to make EA to check MT4 Expert Advisors option 'Disable experts when the profile has been changed"

Hi all Including IsTradeAllowed () makes EA able to verify if the Expert Advisor is allowed to trade and trading context is not busy. I am trying to find if there is any similar way to make EA able to verify if 'Disable experts when the profile has been changed' (MetaTrader 4 Tools >Options >Expert

Looking for Script to send batch pending orders for several pair

Hi all I am trying to build a script that allows to send several pending orders (as a batch) for several pair but have not been able to find how to make it work. This is what I have: int start() { RefreshRates(); while( IsTradeContextBusy() ) { Sleep(100); } //---- int ticket=

How to remove ExpertAdvisor from chart on MT4 v4.00 build 482?

Hi people, How can I remove an ExpertAdvisor from chart on MT4 v4.00 build 482? I remember on previous build versions, right- clicking on chart pop-up menu showed "Expert Advisor.." entry and there was an option for removal. But now on this build version, there is no "Expert Advisor.." entry on

When changing TakeProfit for 1 out of 3 tickets opened via script all 3 are changed

Hello Experts I modified a script I found on these forum to open 3 trades at the same time (I am interested on open all tickets at same entry price) - (code attached). Initially the 3 tickets are opened with StopLoss defined but no TakeProfit (=0). I notice that eveytime I change either TakeProfit

Help needed: getting compiling error "no dll defined for imported function"

Hello colleagues/experts I am modifying an existing code I found to what I need (partially close position). I need help not regarding how to get what I need (maybe later) but about an error I am getting when compiling code with MetaEditor included on MT4 (version 4.00 build 445). Error I got is: "

EA for partial closing of open trade

Hello experts I was looking for a way to set (manually) in advance target levels for an open trade on MT4 so it can be automatically partially closed and so far it seems it is not possible on MT4 itself unless I use and EA. Being not a MQL4 programmer expert, I wrote this code and I would like to

Problems to use ObjectSet when parameters are defined as variables

Hello experts I am trying to built an EA and on it I want to draw vertical and horizontal line . For easiness to change line characteristics in future, I am defining lines characteristics as variables at the begining of my code like this // Variables to handle order previous opened by EA string

What do MACD/OsMA lines and bars mean? Loooking for a way to identify when the two lines cross

Hello I am amaterur on Forex and on MQL4 programing and I will apreciate all help I can get. I am writing EA code for a strategy that uses MACD/OsMA (FEMA: 12, SEMA: 34, MACD SMA: 9 at Close) as a TakeProfit indicator on the event that the two lines that MACD/OsMA draws cross (red and green on