Expert Advisors and Automated Trading - page 390

Hello, I am using an MT4 indicator (I only have the compiled version) and I want to create an EA to enter trades, based on the arrows that this indicator draws. I've searched this forum (and others) and learned that the way to do this is using the MQL function iCustom. I tried that, but either...
I am trying to add/subtract pips to a trailing stop code depending on buy/sell. Is this correct? if(isNewBar) TrailingStopSet(OP_BUY, Support(4 * PeriodSeconds(), false, 00, 00, true, 1)) - 5 * myPoint if(isNewBar) TrailingStopSet(OP_BUY, Support(4 * PeriodSeconds(), false, 00, 00, true, 1)) +...
Hi, I wanna handle a list of markets using their symbol and execute my code then if some conditions reached, return the name of the symbol. I want to run it on a vps if its possible. Can someone tell me a coding library reference to do this? and I would be appreciated if you can send me some coding...
Must my PC be connected to the internet always for me to receive push notification on my mobile device? Does it mean i wont be able to get push notification anytime i switch off my PC?
Please, how can i link an EA to my metaquote ID on mobile mt4 platform? i want the alert from the EA to go off on my mobile device. please how do i do that?
I need the help of a coder.I want my trading indicator to give alert on my mt4 platform.The indicators include RSI and EMA. Anyone interested should please indicate and i will provide more details.
Hi i used MQL5 vps before and now i want to use extern vps from another provider. Before i buy i want to know how to install my EA on their server? Install is not made with MT4 right? Also i want to know if there is MT4 pre installed or - when not - is there only command line or desktop for me...
  how to edit Symbol()  (16   1 2)
Hi, I am editing an old EA that was coded for so I can try learn to code. I assume Symbol() in the code below means the EA will work with any symbol. RefreshRates(); if (takeprofit != 0) ticket_buy = OrderSend(Symbol(),OP_BUY,lotsize,Ask,slippage...
  Stop buy order  (2)
Please i am a newbie and i am using an EA to trade binary options on mt4 but i dont want the EA to place buy orders at all. what do i do ? how do i set?
[Deleted]
Hello,  I'm not sure if is it normal, but when I try to use the tester with "every tick" execution, my PC take too long time. I'm trying to test just 8 months history and I have a nice processor. I know that it depends that a lot of conditions. I could observe that when the test begins, the...
This is MQL5 language questions. I guess this have been asked so many times by different coders. But I try once more if MQL5.com can fix this in the near future. The concept of handle and CopyBuffer works if you want to copy the indicator array for the same time frame as your chart. However,...
I have a problem when my trades are closing before the signal provider hit TP/SL (because of difference in prices, slippage and off quotes) When it closes trades before signal provider MT4 opens the same trades again, I think because of the synchronize without confirmations. It will also be a
Hi fellow EA experts, I have recently got involved in forex and mql4, and is trying to learn programming as well. I am creating an EA as follow just to understand how OrderSend, OrderClose work, and loop it indefinitely. The comment about "i" is to help me understand if the loop is working as the...
The following function works fine if I only get signalBuy or signalSell, if I have position opened in both buy and sell the (the Ea will allow multiple buy and one sell, and viceversa) the order count and order lot go wrong as shown below the code:   void GetOrders(int anActionCode1, int...
Whenever I run meta editor, it runs perfectly, but when I wanted to use it, it upload mql5.com website (like this link https://www.mql5.com/en/code/15852?utm_campaign=MetaEditor+5&utm_medium=special&utm_source=mt5editor+codebase) And I can not work with my meta editor, Is there any one who...
Hello I want help to optimize a Bool type expression 0 False 1True and i want also skip the expression too for example if ( bool type 1 == True && bool type 2 == True && bool type 3 == False .................................. ) { Bullish = false; Bearish =...
Or just a way to programmatically calculate spread value.
Good morning all I wanted to order for a freelance service here, but I was asked to provide a code sent to my mobile device so as to link the code to my metaquote ID. I haven't received the said code on my mobile device. Please what do I do? I also cannot remember ever providing my phone number...
Hi Can anyone here help me explain something about  Optimisering in backtesting ? The number that thats is showed at the green status bar what is that ? like this: 4 / 1280 (3600). What are these number ?  2nd does the test make all possibly options within the start and stop I have in inputs? I hope...
I wrote an EA to send pending orders. But I found slippage doesn't work when my pending orders come to be a market order. This makes my trade prices have a big gap to my pending orders' prices. It this defined by MT4 or brokers?
Hi, I'm newbie to MQL dev and I need help; I've built a small EA that open a serie of trades and perding orders, it's a hedge system. I have 2 orders 1 buy and 1 sell open at the same price, I have pending orders above and below those orders. My goal is to delete pending orders; delete pending...
  About the EA and Activations  (13   1 2)
I bought an EA on the terminal with no MQL5.community Account connected a few days ago. On which way could I use the Activations left on another computer?
Hi and apologies if this question has been posted before and if I come across as a total newbie (which I am:) I've been trying out a few EAs in backtesting with mixed results. There are a few however that seem to be making consistent profits on several currency pairs. What I dont understand...
This message suddenly pops up wen I start my MT4 EA (Under development) Cant figure out why I get this message. It started after I did some clean up of the code. it keeps pumping oput the message during initialiazing until I kill the EA
I have created a simple EA which trades to RSI movement. The EA does only 1 trade at a time. It doesn't start a new trade if there is an active trade. Is it possible for an EA to do multiple trades on the same chart, while there are active trades?
Can someone please code my EA to only execute once per hour bar? Sometimes I get entered into a trade and get stopped out within the same bar/hour, but since conditions are still met I get entered into another trade and get stopped out again and this results in multiple losing trades. If anyone...
hi. how can i change a position to non hedging position? i want to close a position by positionclose() not by opening another position. thank you
Hi everyone, when i use "PositionClose" function, instead of closing the open position, it opens a new position Contrary to the open position.  I dont know why...
  error 134  (3)
Hello when i want test my EA with minimum deposit $1 , i see error 134 (not enough money) , i haven't any inputs on my EA for initial deposit , guide me please . double Lot_Cal() { double l=(NormalizeDouble(((AccountBalance()* Percent_risk/100) )*0.01,Max_Digit)); if (l<Min_Lot) l=Min_Lot; if...
//+------------------------------------------------------------------+// DO NOT DELETE THIS HEADER// DELETING THIS HEADER IS COPYRIGHT INFRIGMENT //// Copyright ©2011, ForexEAdvisor.com// ForexEAdvisor Strategy Builder version 0...