Expert Advisors and Automated Trading - page 434

  Backtest Strange results  (16   1 2)
Hi everyone Last week i have tryed various settings with my EA but i have a strange situation right now , so i want share with you . I have tryed next a simulation of three Years and the results is 70millions of dollars starting with 500$ of deposit These results Seem no reals , and i have checked
I can use the following code to create a histogram in separate window. But only one histogram bar for one candle bar of open-close price. What should I do the draw several histograms for one bar? #property indicator_type1 DRAW _HISTOGRAM Thanks!
hi guys, i am developing an ea that requires me to compare the high of previous 2 bars and whichever one is higher, use that as a stop loss value. same for opposite side trades, i need to compare previous 2 lows and use the lower one as stop loss value. what i am doing is this:-...
hi every body could any body help to improve this Expert Advisor. it is not mine,. it seems to be work in the begginning of the trading then it crash. I attached to this message a picture of backtest from 01 january 2015 to 20 marsh 2015. Other think, it opens many positions, but do not close them...
[Deleted]
Hello forum, good day. I need help from more experienced MQL programmers to detect a Bullish/Bearish engulfing and would like to know about your opinions and what would be the best way to do it. I´m using the following code to try and detect a Bullish engulfing: // Bullish engulfing (Close[1]...
Can anyone assist me by adding a little code which would enable the user to define a finite number of open positions the attached EA can commit to? I've tried to do this myself... but I keep getting error messages on debug. I'm just not at a level of understanding code where I can get this limiting...
  Line Chart Data?  (1)
There are three types for showing price changes : Bar Chart, Candlestics and Line Chart. With MqlRates (and CopyRates command) is possible to get Candlesticks data. Is it somehow possible to get Line Chart data?
Hi, Not sure this is the right section, sorry if it isn't. I am looking for developers to hire. The job is to understand and modify an existing EA. I'll give more details in PM. Nathan
Hi, Newbie trying to connect Excel to MetaTrader using XlsGate Dll and mgh. I keep getting compiler error. can't open "C:\Users\Devigan\AppData\Roaming\MetaQuotes\Terminal\50CA3DFB510CC5A8F28B48D1BF2A5702\MQL4\include\xlsgate.mgh" include file ExcelTest.mq4...
If a developer decides to sell his or her expert advisor and allot of people start buying it does it become less effective? 
Hello. May I know if it's possible to add expiration through TIME any open positions to close at loss or at profit. This is like open positions are time bound using seconds or hours. Thanks.
Greetings to all you expert coders. Is anyone familiar with a 'trade analyzer' from Easy Ea? Well it seems they have gone out of business/in transtion as the TA no longer functions. Is there anyone who can code one like Easy Ea had? I think MQL should look into it & provide with MT4/5 as some...
  Strategy tester  (6)
Hi, I have an ea which performs extremely well in strategy tester when 'open prices only' is selected, but when I test on 'every tick' mode the results are not so good. So my question is.. Is it possible to adjust my ea so that it works on the same open bar principle as the strategy tester? I...
  EA Code Fix  (2)
hi all, If there are anyone out who could help me, it be much appreciated. I am having some issue with my current code. What i am trying to do here, is to have a condition that trigger a buy or sell, when the differences between 2 points equals to 10 (for example) . actual example, the differences...
iI am using a number of indicators in my EA. I create them using iBands, iRSI and iMACD. How do I create the indicators "OnScreen" (hm, excuse me Enterprise) by code in the EA?
Hi everyone, I am relatively new to ea programming. I am trying to store the values of the latest up fractal and down fractals and then use them while modifying my stop losses. any help would be greatly appreciated thanks
  MACD Sample_1  (1)
Good day Everybody, I was just reading, ' Automated Optimization of a Trading Robot', and it referred to a ready-made EA, 'MACD Sanple'. The article then went on to give instruction about installation of the Automated Optimizer and gave the following instructions: copy MACD Sample_1.mq4 into the
hello happy people. i am looking for a script or an EA that track record what was my biggest overall open position of the day , like a high water mark. for exemple today at one moment i had 0.30 lots short and 1.32 lots long, so i need to be able to see: 1.62 lots was your biggest dayly...
I have an EA a programmer said the magic number isn't being recognized. How do I see if the magic number is being recognized by mt4 is there a way to test and validate this without being programmer? 
  Timer Problem  (8)
hello please help me i used timer function EventSetTimer EventSetMillisecondTimer ... my code works fine but after hours Timer stops and it can not works, it stops before 24 hours of work , i use some externel function CopyFileW CreateDirectoryW , i has asked my friend and he have like same problem...
Hi There, Anyone could advise how to check RSI crossing overbought / oversold levels? bool Buy_Condition_1=(RSI_val[0]<RSI_oversold && RSI_val[1]>=RSI_oversold); Stuck while inserting correct values to RSI_val[]
[Deleted]
Hi, I'm using the custom indicator i-Regr (see attached file) and I create an EA using the iCustom for calling the value from i-Regr, but it doesn't match ... and I don't understand why... I have tried to use all the buffers to see if I get the wrong index value. See some printscreen that I...
Hello, I would like to know the 2 lasts orders to know if have the same type. How can I do it? The first think to my mind is get the last orderTicket (LastTicket) and get the last order ticket again but only if the order ticket != LastTicket. After that, get the type of each one. This method is...
im thinking about adding a "reset" button to my EA (mql4). question is if it would function like that? steps and criteria are pretty basic - so i would really appreciate of the "local guru's" could answer my question. step one - record the balance before the EA is started up. step two - setting the...
Good day, I want to create an EA which uses ASI to filter my trades but i haven't found EA using it. can anyone point where i can get this or better still, a piece of script defining indicator and use to determine trend? Secondly i am facing error 'Struct member undefined' on the following line of
Hi! I'm trying to build my first EA. Is there anyone who knows how to build the variable EventSetTimer function? As  you know, EvenSetTimer() is usually called in init() with fixed int variable, like EventSetTimer(60);.. But I'd like to make the 60sec to variable one by using another variable. So I...
Is it possible to use offline data in an EA. Range bars and similar are often created as offline charts. To develop multicurrency EA:s using rangebars I would have to use offline charts as the primary input since range bar creators all seem to use offline charts. MT4. i got a suggestion that...
I need to know the mt4 data's folder for my program,can you help me?
I saw "MQL4.com is moving to MQL5.com." However can't find the forum related MQL4. Please let me ask the questions of MQL4 here. Let's say there are many loops of orders, each loop follows previous loop. In every loop, there are a series of orders and a whole loop means the series of orders...
There are many EA out there that has a very high profit factor (4 or so...), but most of them do not have stoploss and will lead a huge drawdown. So these EAs are not sutable for small account (sub $1000) Here is what i personally look for when choosing an EA no martingale (or can be switched...