Expert Advisors and Automated Trading - page 238

To post a new topic, please log in or register
if there is 3 charts, I want let expert bring one chart(for example D1) to front by code? how to do? thanks
In MQL4 it was possible to draw little markers in the chart when placed a Buy/Sell Orders. Is this feature transfered to MQL5 ? Somewhere in the class CChartObject ? I would like to have it as MqlTradeRequest.Color
I determinated my EA to open a position with volume = 1.0 Sometimes he will do that, sometimes he add a second order, so that the volume is 2.0 Did anyone had the same problem ? Maybe I have a mistake in my code, but with MQL4 I have not this problem.
Hi MQL5 Folks In MQL4 it was possible to detect the beginning of a new bar/candle by examining the Time[0] element and looking for it to change. But how can I detect the beginning of a new bar in MQL5 as we do not have a Time[] array available ? Any suggestions ? Thanks ukpipcatcher
I try to manage a few EA parallel for different currencies. I want to know, whether the position earns money: PositionSelect("USDCHF",1000); double USDCHF_Saldo = PositionGetDouble(POSITION_PROFIT); After the Position is closed the variable "USDCHF_Saldo" is not Null and...
When I try to attach one of my MT5 EAs to the chart I get two errors that read "Unresolved Function". I don't even get a pop-up window for input parameters. Get these errors only with one EA, all others work fine.
If my expert running on H1 chart, can I get the object(s) on H4 chart? Can you give me sample code? thanks hongbin.fei
First sorry for my defficient english, I trade with an EA inside one off-line chart in MT4 with a range bars, and runs ok. How can I do it with MT5? It's very important for me and other users with the same problem. Thanks.
This was a pain to find. Definitely a new bug. First, try this script as is. Then comment out: "Print(sad.Test())" ,and the exception disappears. Note the class that has no constructor, but has an array doesn't cause an error. Just the ones without constructor or an array causes it... class...
  Time Handling (1)
In MQL4 I could write: MqlDateTime ttt; actualDay = ttt.day_of_week; // MQL5 returns 0 In MQL5 this functioned: MqlDateTime ttt; TimeToStruct(TimeCurrent(),ttt); myDay = ttt.day_of_week;
Try it. void OnStart() { //try to run this script twice, check the Journal also. Print("This is the last time you see me"); }
[CONDITIONS] 1) Compilation is perfect without ERROR or WARNING. 2) TERMINAL Setting: ALLOW DLL 3) MQL5 Setting: ALLOW DLL 4) I use MT5 build 228 [PROBLEM] When attach to chart, terminal gives error and says that "DLL loading is NOT allow". Anybody have a clue to the problem...
I just convert my nidicator MT4 to MT5, while I try place on the chart , the log is :      What is error? How to debug and fix it?   thanks   hongbin.fei  
This two code is writen in MT4 expert, how to convert? thanks!    if((iBarShift(NULL,0,time2)-iBarShift(NULL,0,Time[0]))<=2) continue;          if(ObjectGetValueByShift(objName,BarId)>0   
  TrendMeLeaveMe (130   1 2 3 4 5 ... 12 13)
I am not going to say a lot about this cause the real work is for a guy called Waddah, an amazing programmer -------------------- I have removed the translation as a better version of the translation is done by Ibn Fernas on post 5 down ------------------- This is a trend break EA, which means it...
SpiNNaker - A Neural Network EA This is an early version of a forward feeding perceptron with four inputs: Stochastics 5m, Stochastics 15m, ADX 5m, ADX 15m. It has two outputs: buy, sell. A perceptron is the most basic kind of neural network you can find, or at least that is practical. This is...
  Isakas Ashi KusKus I (98   1 2 3 4 5 ... 9 10)
Isakas Ashi I by Kuskus Osentogg @ Zeman I have written an Expert Advisor (EA) based on the Isakas Ashi I strategy written by Kuskus Osentogg @ Zeman. The original strategy including its descriptions and discussions can be found at the Manual Trading Systems section here. Attach is a zip file...
  10point3 Hedge (149   1 2 3 4 5 ... 14 15)
Well, here we go. I have absolutely no idea whether its gonna be a disaster, or a super wealth builder. I might change it to become like PipButcher in the near future, to have better entry criteria, but I really lack of time, therefor I took the short route and stole turoro's version of dynamic stop...
  Converting EAs to MQL5 (55   1 2 3 4 5 6)
Converting EAs to MQL5 Has anyone heard anything on a release date for mql5 stuff? I want to begin taking a look at it as soon as possible. I'm assuming that the Automated Championship 2008 will be run on the mt5 platform.
  OzFx's Squeeze-More (42   1 2 3 4 5)
I have written a new EA based on OzFx's Squeeze-More strategy. To learn more about Squeeze-More, please click here. This EA is slightly different from the one written at Forex Factory. This one will open three trades upon receiving a valid entry signal, with trade1 having TP=50, trade2 having TP=100...
  How to build a NN-EA in MT4 (194   1 2 3 4 5 ... 19 20)
Hi guys, theres been some discussion around how to create a NN-EA for MT4. I have attached an implementation of a very simple yet powerful backpropagation learning, multilayer perceptron class which I wrote in PHP (for easiest understanding this language was the best choice imho), which should be...
Hi all before we talk about this EA, i want to introduce you that this EA is based on the methode at this link https://www.mql5.com/en/forum/177482 and this EA is born from our friend MASA9390.. so i named this EA onto His name anyway, i post my template methode here, so if you all make a backtest...
  TrendMeLeaveMe_Gold Expert (42   1 2 3 4 5)
The application and uses for TMLM are countless, some of which is to trade inside the trend channel or trade outside the trend channel like in news. To understand the use of TMLM I will give an example of the ball and ceiling/floor. Imagine the price is a ball and the trend line is either the...
  Profitable Day Trading EA (80   1 2 3 4 5 ... 7 8)
I have been demo testing the attached EA only since 05MAR07 with FIBO. Originally I downloaded it from Metaquotes site and it was listed there by "Collector". Based on M5 for GBPJPY/EURJPY/EURUSD/USDCHF/GBPUSD/USDJPY and GBPCHF, my demo account is up $1614 with a starting bal of $3000. Sofar so...
I am looking for a simple function that will create an automatic Magic Number based on the symbol type. Does anyone have something like this? I thought this would be easier than allocating a number to each symbol type. I need this for an EA I am writing which will attach to almost all charts at one...
  FINEXX Correlation System EA (105   1 2 3 4 5 ... 10 11)
Hi community, enclosed you can find a correlation system (FINEXX_Cor) for EUR/USD & USD/CHF which should produce small but consistent stable profits. In the last 6 months (forward testing and live trading) there were no negative month; performance is about 20% /p.m. depends on your margin/account...
The Purpose: Developing EA for Dolly 1st and 2nd clone This thread is being opened to focus on developing Expert Advisor (EA) for Dolly 1st and 2nd clone. Everyone is welcomed Here I posted EA for Dolly 1st clone, it's worked, maybe just need a little improvement FAQ Q: I have downloaded your EA...
  Magic number (49   1 2 3 4 5)
What is the purpose of the magic number in EA codes, and what are the magic numbers for all the pairs ??
  EA Switcher (134   1 2 3 4 5 ... 13 14)
Hi forex-tsd community. First of all sorry for my bad english, it's not my mother tongue. I've one idea : Can we create 1 EA who are able to "switch" between 1, 2 or more others EA. The switch calculation would be based on the market attitude. means : use XXX ea if the market is Trend or use YYY ea...
Found this indicator and expert at cortex.snowseed.com based on nueronetwork and artificial intelligence all of which is many miles over my head.Hope someone can use this and improve this to boost our profitibility. mrtools