Expert Advisors and Automated Trading - page 118

To post a new topic, please log in or register
Hello Everyone, This out right naughty,          CurrentSymbol = SymbolName(Next_Symbol,true);                 Next_Symbol++;
Hi, I a need to be able to calculate some stats on the account's closed positions but I need to know their initial 'type' (limit, stop, market) Is there a way for me to find out from the pool of closed orders which positions have initially been opened as limit, stop or market orders so I can...
Hi guys, I have following code: if (trend == "BUY") {...} I have also tried StringCompare(trend, "BUY") == 0. Neither work. Can you please advise how to compare strings in mql? Cheers, Ash.
Hi I'm trying to calculate senkansen A and senkansen B of the ichimoku system. I know that the Senka is the average of Kinjunsen and tenkansen shifted 26 periods ahead. Now  for the purpose of the EA all I want is the ea to buy when the current close is greater than the current  senkansen A and B....
Code below fails with error 4901 (ERR_BOOKS_CANNOT_ADD) regardless of broker. But I know such a code worked some time ago. Possible reason(s)? string symbol = "EURUSD";int OnInit() { ResetLastError(); if(SymbolSelect(symbol, true) != false) { if(...
Hi everyone,  i'm thinking about following signals, i came across a signal provider whose trading history column contains a column "Commission"  (see attachment) Does this come from the subscriber side? or the broker side?  cheers
Hi folks, Is possible to save a template in "\Files" path instead of "\Profiles\Templates"? I'm trying ChartSaveTemplate(0, "..\\..\\Files\\MyTamplate.tpl") and a lot of variations, but nothing works. After save that, I will check some detais inside my EA, so I will open it by FileOpen(), that works...
[USING GOOGLE TRANSLATOR} [contains attachment demonstrating what was said in the message below] Hello friends, I am having doubts in a part of the code of my robot. In my strategy I use the RSI and superimpose the momentum. In RSI I only use the levels and the momentum line (as per attachment), if...
Is there any console command that can compile the mq5 file? For example: "mql5 -compile ./strategy101.mq5 ./strategy101.ex5" If so, I can use other code editors such as sublime text for development by setting a build environment. The default MetaEditor cannot fold the code and it is already...
Hi there, anyone an idea? For whatever reason, the corresponding - ChartGetInteger(m_chart_id,CHART_WINDOW_HANDLE) - returns zero.
[Deleted]
Hello folks, I want my EA to only run on hedging accounts. Is this the right way to check it? // check if the account is a hedging accountif (AccountInfoInteger(ACCOUNT_MARGIN_MODE) != ACCOUNT_MARGIN_MODE_RETAIL_HEDGING) {    Print("This is not a hedging account. This EA can only be run on hedging...
I run an EA through the Strategy Analyzer and I keep getting this error: failed buy stop 1.00 EURUSD at 1.18958 tp: 1.18988 [Invalid price] The Ask at this moment is 1.18970, and the Bid is 1.18938 Is there a minimum distance required to place orders? I don't understand why this BuyStop keeps...
Is there a flag or any other way to determine if the EA is running in testing mode under the Strategy Analyzer?
Hi guys, I built an EA that picks up parameters for Indicators from a csv file. I tried synchronizing it to a Virtual Private Server from mql5 but iniitialization failed. Is there a way to upload files to VPS?  I ended up hardcoding a long list and that's not scalable. Does anyone know how to solve...
hej guys ,,i need little help with my EA  the idea is to open a new order when an exciting order hits TP  B =OrderSend(Symbol(),OP_BUY,lot,Ask,Slippage,0,Ask+TP*pte,"",MagicNumber,0,Green); //entry orders...
Can any experts give me feedback and any ideas on how i can test my ea with real world scenarios. I seem to be getting perfect charts on back testing but i need to know if there are things i may be missing.
Hi guys, What is the easiest way to enforce just one trade per bar on close of the bar?  Best Regards,  Ashish. 
Hi,   While running the Strategy Tester, I need to have the following info saved in a CSV file, for each order: deal no, order no, symbol, type (sell / buy), direction (in / out), price, profit (for closing order), entry condition met (RSI level on last bar). Most of them are available in the...
Hi, While I am aware of the Orders and the Deals for the history pool, I saw that MT5 on its own interface can also show the trades in the history tab 'summed' as Positions, without all the details from the deals (see pic attached) Any hint on how to do this, trying to find a way through...
[Deleted]
  METAQUOTED ID (1)
Dears traders I have 3 EA running in 3 different MT4 contemporarily  , linked off course to the same account in my GO MARKET BROKER. In all 3 MT4 , I set , under OPTION > NOTIFICATION > the same METRADE ID SO : I receive push notification on my mobile but the problem is : since the 3 EA , in the 3...
Hello, can you include in the OrderSend or OrderModify function the type of arrow in addition to the color? If it is not possible there is a way to do so ?
Dear Members, can you please tell me how to get the early bid price in a chart ? upward arrow shows current position and downward arrow shows previous position. i want to get the bid value of backward any given time period.
I have an MQL4 EA that is a breakout system based on a time range.   I want to optimize the entry. I order to do this I need to open  a trade for a specific length of time, say 60  minutes.  I am having a hard time finding a way to close a trade after it has been open for this fixed length of time....
hi, I got a vps and I have some questions: - how much memory has the server, I'm using 7 charts, with one bot on each chart (only two bots), and the graph of the memory of the server seems to get high, but it's only 60 mb, so I now don't know how many charts with bots I can have? (the video says...
Dear All, I am newbie in programming. I have been learning about building an ea for two months. This forum is very helpful for my purpose. I am searching the forum and looking for the right code. Unfortunately programming is very complex sometimes. I have met some problems about my ea.   1. The EA...
  Need installer for MT5 EA (13   1 2)
Hi there, does anyone know a good installer for MT5 EAs, Indies, files ... ? For MT4 I had a pretty good one, but the guy who developed it is not answering anymore, cause I asked him for a modification for MT5.  What I need to install comfortably is the main EA, plus 30-40 indicators and...
Hey, I have been developing an EA for a while now and wanted to publish it on the Metatrader 4 market. The EA works %100 on live, demo and back testing. But when I Send the EA in for product valuation I get a report stating "ordersend error 131"  I have been through the coding and read up about...
Hello, I need help with a sample ini script that makes MetaTrader 5 optimize an EA and save the best results in a *.*set file to a location of my choosing.  This optimization is to be done for multiple symbols. Are samples of this available online.
Hello. I'd like to calculate a technical indicator in MQL5 based on the custom values array, i.e. an analogue of the iRSIOnArray(), iBandsOnArray(),etc. I could not find any info about how to do it and the blocks in the main article about migration to MQL5  are blank regarding these functions in...
Hi, I am totally new to programming and forgive me for my ignorance. But I'm looking for code that can show me the most frequent range of numbers in an array. Lets say there is an array with these values { 1 ,2 ,2 ,5 ,8 ,8 ,9 ,10} and the range is +-1..  most frequent range of numbers would be 8-10...