Expert Advisors and Automated Trading - page 156

To post a new topic, please log in or register
When I try to set a profit Target using the high and low of bars 2 and 3 the EA does not apply it. Is there something wrong with the code? I am basically trying to subtract from the opening price the difference in pips between the high and low. TP = (0 * myPoint) - (MathAbs(High[3] -...
  High Low EA (3)
Hi all, I am new to automated trading, but I have been successfully trading the breaks of the previous day / weeks bars on Oil and Dax. Does anyone know of a simple EA that would buy the break of the previous days high, and sell the low, and the same on a weekly chart, ie the break of the...
Hello everyone After try using #property strict and all going succeed except this code : // Exit After X Bars tempValue = getOrderExitAfterXBars(770); if(tempValue > 0) { if (sqGetOpenBarsForOrder(tempValue+10) >= tempValue) { Verbose("Exit After "...
I have an EA that is trading at specific hour of the data. When backtesting I noticed that the trades are placed at the wrong time in winter. Is there a way to account for this in the strategy tester? I'm using if(Hour() == SpecifiedTimeInConfig) is there a way to determine in the backtester if...
I want to ensure that my EAs trade 24/5. Why is it that some EAs need VPS to trade when my computer is turned off? And why don't some EAs need VPS?
hello i'm new here as a seller. i'm waiting for account proving. I have been Trading for 5 years now. I am trading low risk aiming. My Subscription Price is 15$ only. Currently trading the EURUSD, but can change to other pairs, depending on their potential. Wish you all the best and good luck !.
i dont know why SUM of 2 Orders are not correct , i am trying to close Last 2 orders with Minimum 1 usd profit. but in stratgy tester it,s closing no logic some time 0.50 cents and second trade at 0 , some time first order profit 1 usd and second order close at 17 usd loss. i cant understand what is...
[Deleted]
Hello I like to know something if i am managing some 1 account and using my mql5.com account for VPS hosting and i put the EA on it and took hosting also paid 10$ now if the account holder changed the password for his Forex will he be using the EA ? or the EA is connected via my Mql5 only...
i am trying hard to code the ea but no luck please help me i want to close any 2 orders with profit total of 1 usd. for example 1: -10usd 2: -7 usd 3 -6usd 4: -3 5: +4 i want to close number 4 and 5 because minimum profit target requirement total sum +4 and -3 =1...
Hello, can anyone tell me if I can do a partial close in FIFO accounts. For example. I open 1 lot EURUSD and in the future I do partial closes of 0.10 lots for example. Considering that I always have only one order opened in the same pair, anyone can tell me if this works on FIFO accounts...
I added this EA to my account June 1st. Pretty decent growth. I'm not trading this week due to Brexit. Plus I decided to switch brokers. So I will have a new myfxbook link soon. For now, this is myfxbook portfolio: https://www.myfxbook.com/members/LorraineP/jt-auto-trading/1652970 What do you...
Please, I would like some help for errors that are happening when time compile the EA, I'm not getting correct ERROR -> ')' - not all control paths return a value double countprofit(int mode){ double profit=0; if(OrdersTotal()>0){ for(i=OrdersTotal()-1;i>=0;i--){...
[Deleted]
why functions TimeLocal & TimeCurrent always give me this date 16.07.07 23:59:59 ? Who know how to get the PC system date & time?
Hi, I am wondering if when subscribing to a signal whether it is possible not to copy the leverage level? Thanks!
Do not need any third party plug-ins, can directly open a binary option order; Can be made into binary options EA, automatic trading.
Hi  Some body help me please  to understand if I have a function to directly pass a double parameter to another void function to change StopLoss , which kind of type my first function should have ? Should it be a double function with a return ? -which in this case I don't now what I'm going to do...
Hello all, I've been coding a EA of mine that calls both events that happen OnTick and OnBookEvent. Id like to plot both of them on the chart, but i cant seem to do so without one "flashing" the other. Everytime a BookEvent happens, the BookEvent comment shows up and "erases", "flashes" ,...
Hi I'm new towards optimizing an EA with different parameters. But may I know what are the possible reasons that causes the best results inputs so different especially when I run it on my Home PC and Office PC and both using the same Broker? I get different results on the same broker but on...
[Deleted]
HI all I see in option the field max bars in history and I have set it to 1440. Using F2 I see that the bars loaded are always greater then 1440, is there a way to keep only this number of bars in the history? Is there any MQL4 command to use to clear the history?
Why did MQL5.com prevent free EA downloaded in markeplace from copying from one MT4 platform to another MT4 platform?
Hi, I have used iFractal function in an EA and when it detects a fractal it prints an up/down arrow on the bar. the problem is when tester finish testing it displays the fractal indicator and the and arrow doesn't match with the indicator! I think that iFractal its well configured the For cycle...
Hello, I am trading with an EA following trend by MA and other indicators. What good exit signal can you recommend? What are the best exit signals available that can be programmed into that EA? Regards.
  Profitable EA (2)
Hello guys. I'm new here and I'm looking for a good EA, Someone I can indicate one that is profitable and that works with a small account (200 € or 300 €). To buy or rent. To buy more than 150 at most. Thank you and I look forward answers.
Hi experts,   I am new to coding with MT4, hope to get your assistance.   I am trying out some EAs and realised that the results might be better if I were to skip my 1st trade signal.   Working on a moving average cross strategy with time on UK hour (2pm) start and end 2 hours later (4pm). Problem...
[Deleted]
my mt4 uptaded itself to the new build 988 and i had the editor open while it happened, i closed the editor and it said the file could not be saved as it was write protected but i had saved before i left my computer so i closed the editor and tried looking for the file and its gone.  used some...
[Deleted]
(MQL4)I am trying to code a function that can remember the date of a low or high given a specific condition until that condition is generated again and determines a new high. The problem im having is that if i make a simple Highest or Lowest Function it uses periods and as a new day comes and the...
Hello together,I have a simple question and may some of you will laugh about that. I have subscribed to a Signal But it does not copy the lot properly, all trades are 0.01 lot ( And Signal Sender haves 0.06, 0.08, 0.52). Anyone care to tell me why all my open lot 0.01?? Im very sorry for my Bad...
Hi there, I wondered whether you could help me with the 'code' below. I can't get round my head why on every 'tick' the OrderSend is executed repeatedly. The Algorithm (see below) explained is: L1 - Asks the question whether the price is within a pre-determined Level L2 - Asks the question...
Hi, Title says it all, I need to calculate the last 3 Renko bars (along with their time when bar started) via code / mq4, but I have absolutely no clue how to do that. Anyone please? Thanks in advance!
MQL5:  I'm trying to write a function to close by sequence. There is no error after compilation, but it does not run. I could not figure out why. Could you help?  Thank you!  Closing by order sequence. i.e. Deal 1 + Deal 2 has profited - close Deal 3 + Deal 4 has profited - close 5 + 6 7 + 8 9 + 10...