Expert Advisors and Automated Trading - page 179

To post a new topic, please log in or register
Hi there ! Need help (quite quickly !), lost money because of ... double LastPrice=SymbolInfoDouble(Symbol(),SYMBOL_LAST); printf("Prix actuel : %G", LastPrice);----------> Returns : 2014.10.30 16:01:02.979 Prix actuel : 0 Did I miss something ? Is there anyway to return the current...
Hi, here's a code : double ArrayHigh[]; double ArrayLow[]; CopyHigh(Symbol(),TStf,0,N,ArrayHigh); CopyLow(Symbol(),TStf,0,N,ArrayLow); double LastHeight=0; double LastPrice=SymbolInfoDouble(Symbol(),SYMBOL_LAST); for(int i=0; i<N; i++)...
Hi, Instead of having to put scripts in /Scripts directory, included files in /Includes directory, and DLL files in /Libraries directory, I want to put everything inside /Projects directory, like so: Projects/ MyProject/ Scripts/ Export.mq5 Experts/ Expert.mq5...
Do you guys know why the "slippage" doesn't work in the Ordersend() function? Anyone help? I am now trading in forex.com and citi fxpro, the "slippage" does not work in both platform, I think these 2 companies block the function. Can some1 introduce me a better platform? Thank you very much...
As a newbie in OOP, I would like to ask a question about the object oriented structure of MQL5. I'm reading the reference now and there is a section describing the standard library of MQL5. But, none of the predefined functions described earlier in the reference are in the standard library. And,...
I have many orders opened manually. How to set a profit target, for example 50USD so as to automatically close all orders when get the profit target.
Is there a handle ? onPositionClose(){   // do something } Handle which will check, when broker closing the position by SL or TP, the trigger will launch onPositionClose function and give me the position info
NonciAzzecco
I am wondering if it makes sense to optimize an EA on long period. Usually i do not leave my EA running for more than 4 weeks so the question is: Does it makes sense to back-test for 12 months? Maybe 3, 4 or 6 months will give better result. What do you think?
The reference says that: "If data for the timeseries with specified parameters are not formed in the terminal by the time of the Bars() function call, or data of the timeseries are not synchronized with a trade server by the moment of the function call, the function returns a zero value." But, I...
fahadvoid
hello i need help i wanna change my account which i subscribe for signal service actually my that account not copied trade properly thats why i wanna change 
Hi, I think I found a bug in MQL5. My EA starts with the code shown below. During testing with the debugger I had set 4 breakpoints (indicated with '>' in de code below. As it turned out, at one of my test-sessions the first breakpoint that the program stopped at was in the OnTick() function. I...
In EAs, is there any usage for "reserved" field found in structures? Thanks a lot.
User wants to buy unlimited copy of my EA, but i am affraid of unlicensed copying. If i could check if the user is logged on his account on MQL5.com, then EA would have protection against using it by other users. Is it possible? i want to do a single check at EA start (recheck every x seconds, if...
like in the title. The MQL5 site does not allow me to save the name change without setting the price for that signal. If i accept it i will be unable to disable the fee unless my signal is switched to private (unsubscribing all users and closing all positions) and then made public again. This is...
Hi, I try to compile this code:     ..........   ArrayResize(BarsBuffer[1].bar,10);   int copied;   int exec;if(tocopy=="Time"){     datetime Series[];     ArraySetAsSeries(Series,true);     copied=CopyTime(Symbol(),1,0,10,Series);}int size=ArraySize(Series); //<-- line compilator error...............
Hi, I get annoying problems with 2 indicators out of 4 used in my EA. Whatever I do, the EA fails to load them, even though they get compiled successfully into resources and the other 2 indicators work fine. They only work when I put the files into the indicator folder, which gives me the...
I made a breakout ea. it place pending orders on breakout. it works on ecn demo account of formaxmarket broker but during live ecn account sometimes it misses placing pending orders. can anyone helps me to sought out where is the problem. there is no written in expert or journal tab. any solution?...
Hi there, I am working on an interface that will send information from MT5 to a Windows Event and would like to write a RegisterWindowsMessage from within MQL5. Has anybody done this or have some sample code with which this can be achieved? Thank you for any assistance and replies!
I can easily run up to 7 MT4 terminals in my 1Gb of RAM VPS. And as I'm thinking on switching to MT5 I'm worried about how many VPSs should I need to run 7 different strategies.
Hi everyone, somebody told me this trading system and may be even there are EA available out there, Here's the idea, 1.Long 0.01 at 1.6000 and TP around at 50pips (1.6050), if the direction goes opposite way, 2.Short 0.02 at 1.5970 and TP around at 50pips again (1.5920) (Can double the lot...
I made ea from mt4 forum devolpers. after full payment they send me ea. but it works on only demo and in live account it automatically stop after placing orders.now I feel cheated to whom I can complaint
A newbie question ... I will try to code my manual system in an EA. It will work on 30 mins timeframe ... How many weeks/months I should do backtest for relatively reliable results ... And after optimization for the backtesting period, how many weeks/months I should do forward test for a relatively...
The Range bar indicators I have found (so far) makes use of an offline chart to display. How do I combine this with an EA? Attaching the EA to the offline chart? Sounds logical but I have my doubts. And I really like to have one year of data for backtesting
How to execute my binary file with mql5 ? something like exec("c:\my_file.exe"); or maybe somehow import a dll which will do this ? please advice the main reason why i need this, i want to create a full workspace screenshot and save it to folder, maybe there is a other method...
I'm working on EA. and want to start trading only after 3 bars from last closed order. in other word, once order closed, i want the trading to be halted for 3 bars. is it possible to do that?
Hi Everyone, I have a problem with my last trade. I'm running the same expert advisor on my 3 different accounts, with the same settings (only the lot size different). Yesterday my open short trades closed with profit at 136.692 on EUR/JPY on two other accounts (same broker). But on one account...
I'm just starting to explore MQL5, and I created a simple EA using the generator. I want each trade to have a trailing stop, so I included the Fixed Trailing Stop class. Now, when a new trade is made using the EA, no trailing stops are set, am I missing something? Also, as I'm so new, I'm confused...
Hi there, i am trying to enter a code that would allow me to retrieve the open price of a specific symbol other than the current one being work on. anyone know how do i do that? my code is something like , i tried Position Select, but on my last line i tried printing the value and it...
Hi, i want to use WebRequest in my EA than i m going to add this EA on mql5 market for selling. Can i do?
I have a ea which gives 80% of trades hits sl and only 20% of trades hits tgt. so if I reverse the trade ea, can I got 80% winning ea.anyone do it