Expert Advisors and Automated Trading - page 116

To post a new topic, please log in or register
Hi All, 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...
hi how can i add a comment when im using PositionClose? thanks
Hello My expert contains a notification code (email/popup/push) but every timeframe change (back and forth e.g: H1>> D1 >> H1) it sends out a message however this is an unwanted behaviour, since conditions not met or already met How to solve this?
I got his expert from Freelance that opens many trades per bar. I'd like someone to tweak it for me so that it can only open one trade per bar. The original developer has gone MIA. Please assist.
Hi, I'm trying to use EA on H8 but it seem not working in H8 offline chart. So, my idea is to use EA on H1 and get value of H8, just no idea how to check that H8 already closed or not. Thanks in advance :)
Hi, A position is opened with let's say 3*max volume. The position is correctly trailed, but when the price cross the trail price, not the whole position is closed, only 1 or 2*max volume : Same when I use PositionClose function (with no deviation spec). Is there anyway to force the whole position...
  need... (7)
Hello, please.. have you add time trade in to the scrips ?? Thx answear
hi. i want to close an specific position in hedged account without opening another opposite position. who can i do it? thanks.
Hi, please help me with a problem in my EA I don't understand... int OnInit() {... AtrMainHandle  = iATR(_Symbol,inpATRTimeframe,100); ... } void OnTick() { a = Calculate_ATR(inpATRTimeframe,100); } //+------------------------------------------------------------------+...
Witch is the fastest? Or isn't there any difference in execution time? EA with conditions set to open position with a market order at 1.100 VS Pending order set to open position at 1.100
When Locking in help MQL5 Reference it says: TickSize: Minimal change of prize TickValue: Minimal change of prize Made me choose the wrong one when my head was full of logic and variables TickSize: Minimal change of price in units TickValue: Minimal change of price in money
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...
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?
guimf
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...