When offsetting or closing existing trades, does MT5 close desired trades by offsetting 1 time the necessary lots? Or does it still close each existing trade out. Example. Buy EURUSD 0.1 lots, Buy EURUSD 0.4 lots, Buy EURUSD 0.3 lots, Buy EURUSD 0.15 lots, Buy EURUSD 0.5 lots, Buy EURUSD 0.35 lots
Hi all, I'm having some problems on reading a value from a .txt file in an Expert Advisor . I have the following code: int file_handdle= FileOpen ( "test.txt" , FILE_READ | FILE_ANSI ); string string_read= FileReadString (file_handdle, 4 ); Print ( "String read: " + string_read); FileClose
Hello,
is there any smart way for newbies or people not really familar with computers to install an expert advisor ?
What is the programmatical approach for this, common for xp-2008 ?
Thank you
i have taken many orders at a certain time, i need a code to generate the average for all those Pending Orders Price and modify all those orders with that average value with some TakeProfit added to it. i want to implement this in Expert Advisors??....someone please help me...!!!
Hi to everybody.
Forex Championship 2011 is very close.
I’m looking for helper to write together the expert winner of Forex Championship 2011.
We need:
The Idea (I provide):
1. It really doesn’t matter what strategy you use. If we propose that some winning strategy exists (maybe) and it...
Need help in writing a code to write 8 boolean values to a text file every new bar after my conditions for buy/sell have been processed. If EA is turned off and restarted it would initialize the boolean values from the same file.
I did something like below (my functions to obtain and write values...
i made an advisor depends on candles & cci indicator. compile no errors, however, 2 days now it didn't make any order.
any suggestions, help please.
thanx
Basically I just started coding my own eas but noticed that they only seemed to show some signs of life in manual mode and with the stategy tester. I leave any of them (even the default ones and 3rd party EAs made by others) and they won't buy or sell anything unless they are set to manual, where...
Hello,
i need help with my EA. i need a simple trailing stop and a simple break even but i dont know how to do this.
Thats my EA Code dont laugh its my first EA ;-)
please do not change so much. if possible just only insert the trailing stop, that i can still simply put there my strategies.
ive...
I looked all over help menu and cannot find
how to write new line when writing to file.
Should be somehow overwritten or use smth CRLF?
hello,
is it possible to modify a script to auto load when the mt4 terminal starts?
if yes... could somebody write it to me or it needs programming skills?
How can I access the series (time[],open[],close[] etc )in the OnCalculate()function from an EA ?
Is there a variable of any kind that I can access from an expert which persists across strategy tester optimization runs?
I have tried GlobalVariable functions however they don't appear to persist across optimization tests.
I don't want to resort to using files as that seems like a hack and...
Hello,
I was wondering if any of you had suggestions for how I should implement my cross strategy.
I've written the beginning stages of it, but need a push in the right direction or even better some examples.
My idea was to create an Expert Advisor that traded on a 1hr. chart with the cross of...
Can anybody please give a code hint
how to write in MQL5 that was OrderClose() and OrderDelete() in MQL4?
Please no OOP.
Thanks a lot.
Is there any code that changes chart background.
For example bars on the view of some picture background.
Any help is much appreciated. Thanks.
When I run strategy tester I can see Comment() on the chart but
Print() in Journal tab does not show up.
Plus it makes trades in real time chart but no trades on strategy tester chart.
What could be the problem?
Thanks.
Why am I getting these errors and what can I do to correct the errors:
GH 0 History 08:53:45 EURUSD,Weekly: history begins from 2007.12.30 00:00
FS 0 History 08:53:46 EURUSD: contains 343091 M1 records of beginning data from 2008.01.02 09:01 to 2008.12.31 20:00
ES 0 History 08:53:46 EURUSD,M1:...
I performed an update today and since then have lost the selections for Optimization and Forward in the Strategy tester. Are there settings in the client terminal that got changed? Can optimization be done on the cloud?
kanash
I'm reasonably new to this, therefore it may be staring me in the face, but as of yet I've had no luck finding the information. What I want to do is have Moving averages 8, 20, 50, 200 have crossover signals for the 8, 20 - but I only want the trade to take place IF the MA(200) and the MA(50) are
What is wrong in this code that I am unable to get number of positions.
Anyone who knows, please help.
int NumberOfPositions() { static int N; ulong ticket; for(int a=0;a<PositionsTotal();a++) { ticket=OrderGetTicket(a);...
So far none of the documentation, samples, or forum questions answer how to use a custom indicator in a wizard generated trading signal. Any information on how to perform that magic would be appreciated. I assume it will require some type of use of CiCustom but I don't see any samples of that....
I wonder if strategy tester works.
My EA makes trades in real time but does nothing in strategy tester.
Also, there is no Experts tab in it just Journal, impossible to track
EA activities.
Maybe I am outdated or need to change something.
I did not see an example of how to make trailing stop.
Logically try to do myself.
if(condition...)
{
TradeRequest.sl=tick.bid-_Point*TS;
OrderSend(TradeRequest,TradeResult);
}
And it does not trail.
Please help. Thank you.
I thought this function
int limit = 3;ExtExpert.MaxOrders(limit);
where
ExtExpert
is an instance of an EA off the standard library would set the maximum orders in building a position but on preliminary testing, it seems to have no effect.
My question is how do we set the maximum orders to...
Hello friends
I used paid service from one of the coders in this job board and in vain.
I have the EA can somebody help me rectify its error I have been fighting with the useless coder who coded it wrongly without reading my strategy.
I basically asked for a EA with cci and price channels.He did...
Hi,
I am trying to use the Relative Vigor Index Indictaor in my EA
rviHandle=iRVI(NULL,0,10);
CopyBuffer(rviHandle,0,0,3,rviVal)<0
I only get the RVI main value in the array. How do i get the RVI signal value??
Thanks
I want to get 2nd buffer of a Custom Indicator.
in indicator
SetIndexBuffer(0,IndMapBuffer1,INDICATOR_DATA); PlotIndexSetInteger(0,PLOT_LINE_STYLE,STYLE_SOLID); PlotIndexSetInteger(1,PLOT_LINE_STYLE,STYLE_SOLID); SetIndexBuffer(1,IndMapBuffer2,INDICATOR_DATA);
when call CopyBuffer...
Hi!
I have a pivot points file to the meta trader and i want to know according to what time setting the pivot were defined. I tried meta editor but i couldn't understand that from there.
I attached the file.
I want to know according to which time zone and which start and end time the pivots were...
I have been experiencing some sort of cache problem with the Metatrader 5 tester when checking the chart that opens after the test is done. The problem is that the chart shows not only the trades my EA made in this run, but also trades from previous runs. Because of this it is really difficult to
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.