MQL4 and MetaTrader 4 - page 322

Hello everyone, i've been having an issue with this function: what i'm basically trying to do is placing a stop loss on the opposite bollinger band when the OnTimer event occurs. The function works perfectly, except for the fact that the stop loss is placed on the wrong instrument when multiple
Hi everyone, I am new to MT4/MQL4 and also to this community, so many thanks in advance for tolerating my newbie questions. I am trying to build a trade breakout EA that uses Point and Figure (P&F) chart patterns as input into trades. I am wondering if anyone here has any advice as to how this could
[Deleted]
  login to an account using EA  (24   1 2 3)
Can I use an EA to auto-login different accounts? if i have sereral different accounts,and i want to trade with all ofthem,can i first login with one account,send orders,then login withanother account and send the same orders?
Don't want rent a VPS, use local machine to run EA. However the local network is not stable and might get disconnected (sometimes it lasts forever until take human action). I want to ensure that when network is disconnected and lasts for given threshold then send notification to mobile (which should
  Error CryptDecode  (27   1 2 3)
Hi, just trying the new CryptEncode and CryptDecode functions. Everything is working as expected with CryptEncode. However when using the provided example with a slight modification (converting the char array into a string and back to a char array). I am getting the 4029 error....
I tried to download the MT4 setup from this link https://www.metatrader4.com/ But every time it downloads the MT5 setup. Setup file name is also mt4setup but after the installing it's MT5. Can anyone explain this
Hi, Im a newbie trying some simple programming.. Hope some kind souls can pardon my ignorance and give some advise.. Trying to plot a line that is a sum of 2 SMA output.. Tried using the code below.. can anyone advise how to rectify? thanks! #property indicator_chart_window#property
I wanted an EA that will contually make a profit whether its an uptrend or a downtrend and to make the profit whether the candle is bullish or bearish. Now the problem is as soon as a candle opens on order opens as well depending on whether its a sell or buy and with each new order comes the
Hello traders I am new to MT4 and this forum. Having problem with Detailed Report GIF chart, which is inserted into the actual report. The chart has the horizontal and vertical axis cropped, so it's difficult to see the corresponding values. I have generated the Detailed Reports as an Excel, HTML
Hello I have a very simple EA with an alert only. Here is the code: void OnTick() {//--- //Test if (Close[1] < Open[1] || Close[1] > Open[1]) //Test { Alert("Test"); PlaySound("email"); } } This code is just to test the Alert and Playsound
  MT4 MACD issues  (4)
The MACD in MT4 draws the signal line as a histogram - why when the the rest of the world draw 2 lines is beyond me. Also, the signal line is computed from an SMA not an EMA. Anyway, I downloaded Traditional MACD that corrected these problems - only to discover that when I call iMACD() there is a
No news feed even enable news button checked . Just downloaded mt4 for pc windows10 3 days ago, nothing altered, terminal shows news column but always blank. Please help
[Deleted]
hi can someone help me modify an EA im using. It deletes all objects when i change time frames or adjust the settings. I cant code so i need someone to modify the code and delete the "deleteallobjects()" part of the code/ <ex4 file deleted >
Hi everyone, I have a problem with MT4 installed on MacBook Pro. Windows are freezing because they are created outside the margin of my second screen. Any help? Attached some picts of problem
Hello everyone, I will be really appreciate if you can help me to draw lines when diverges appears in the prices chart and indicator it self combine
Hi all, I'm creating an EA which call's one of my custom indicators and i want to open positions when the indicator gives me arrow signals. The problem is my EA is opening buy positions on both arrow's. I'm going to leave my code here with the hope that someone more experience could help me! Many
Hi, I am trying to write my first MQL4 algorithm but it doesnt work as i expected :) My basic algoritm will work on CHINA50 and it needs to do; When price moves above moving average for 30 pips, go short and take profit 12 pips, stop loss 20 pips When price moves below moving average for 30 pips
I am working on project where i have All EUR currency, and i need to find another price from EUR Example: There are two currency that values I have EURUSD and EURAED. I need to find USDAED, Formula: EURAED/EURUSD = USDAED But the close price must be equal or between HIGH & LOW prices but after
I am using the following code to draw an arrow, how can I tell which candle the arrow object is drawn on? void OnTick() { for(int i = 0; i < ObjectsTotal(); i++){ string name = ObjectName(i); if(ObjectType(name) == OBJ_ARROW){ if(ObjectGet(name, OBJPROP_COLOR) == Red){
Because I can't compile my code when I use this expression below, I always get the error ('.' - unexpected in macro) #define FXT_HEADER.size 728 #define FXT_HEADER.intSize 182
[Deleted]
Hi, I am developing an EA using ichimoku indicator with Alpari historical data and its all fine. But when I tried to use the EA on Oanda and the results varies slightly. I suspect is because their feeds have weekends data included and that messed up the ichimoku lines. I thought about a couple of
I have a button when clicked will create an immediate or pending buy order. I have a function that determines whether the order should be a buy if the current price is within +- 5 pips of the entering price that is inputed by the user. If the entry price is greater than +- 5 pips of the current
hi i want to test an EA on a cent account with 1000 'real' dollars, so 100.000 cents. I wonder: when i want to test in the strategytester, what do i have to put in as balance? i guess 100.000 usd? Kind regards, Ronald
Hi all, Could I ask your help on a question regarding backtest? Say if I have a trade history list from a signal in text form. I am backtesting using trade simulator from FXblue but need to manually enter the trades and it gets tedious after a while. My question is if there is any other way to
I need a sample code that connects to the google database in real time. Who can help me
Hello, I have a problem with creating offline charts. MT4 PeriodConverter nor any period converting indicator downloaded from the internet is not creating offline chart. I tried everything, also reinstalling MT4. Is there any common mistake.. or known bug
Hello I just started creating my own EAs. Very exciting stuff. But I've got a problem. After I am stopped out, I would like all EA activity to pause until the next bar opens. What's happening is that once I'm stopped out, my other order is triggering instantaneously. I don't want this to happen. I
hi guys hope doing well my ea does not open any position in some broker ! why? can onyone help me to solve this
It was working all well, until today i am not receiving any notification from the terminal. I've reinstalled the app. Double checked the Metaquotes ID. But still not working. I tried with MT5 and it worked. My phone's model is Oppo Reno 2. Can someone give me a clue
Hi, I am a beginner in writing EAs with MQL4 and I encountered a question that confused me. If I send an order of AUDUSD pair like the following: OrderSend(Symbol(), OP_BUY, NormalizeDouble(lot_size, Digits), Ask, 3, 0, 0, "LONG", MAGICMA, 0, Green); How could I know whether the market order has