Just starting to code in MQL5, I tried to make very simple martingale EA which will double the lot size if we lose and stop after we win. When I tested this on strategy tester, its always written failed instant buy if I input Buy in the position input variable ( extern variable ), but it works if I...
Please, how to change this line in the way to write a MARGIN LEVEL % into a file MARGIN.TXT?
if(!FileWriter("SEURUSD.TXT", (string)(MarketInfo("EURUSD",MODE_SPREAD)/mult) )) return(false); ===> if(!FileWriter("MARGINL.TXT", ???...................... return(false);
I want a EA for binary options.
I would like the MqlTraderRequest expirate every period. I don't need takeprofit or stoploss for trigger the order.
mrequest.action = TRADE_ACTION_PENDING;mrequest.price = NormalizeDouble(latest_price.bid,_Digits);mrequest.sl =...
elliminate Ban slow agents (that exceed average by specified multipler in most optimizations) Enable option to use only 64-bit agents Enable option not to use slow agents for additional percentage fee Enable option to use also slow agents for a discount Not pay for slow results Use only agents...
When I start folowing a signal it also opens the trades that are open which already excist for some time (sometimes months) and are in big losing position. Is it possible to start following a signal without copying the current open trades, so just accept new trades from then onwards?...
I need a large size of array buffer to store testing data in my ea.such as the code below:
double Buff[size];double BuffDym;ArrayResize(BuffDym,size);
when the value of size is to large,the compiler will come out a error said :array is too large.
I want to know the largest value of size...
Hello, can anyone help how to solve the requote problem. If i do a buy or sell with CTrade, i get sometimes no transaction because there was a requote. (I set also the SetDeviationInPoints to 100, would should not be the solution in real trading) This is from backtest log: CG 0 17:20:16...
This is my first post to the community and I need some help.
I have built an EA which I will be running only on EUR/USD but possibly exploring other pairs in the future.
Based on the results, I am confident that for every 25 Euro in my account balance, I can trade 0.01 lot. Can anybody...
When developing a EA, is it better to use "Enter at Trade on Open Bar" or " Tick Data"
i understand both are using different ways to trade while even the S/L, P/T and indicators can be all same.
Anyone can enlighten me on this ?
DLL with EA work Well in my pc (i test it in two metatrader and no problem) but i get error in my vps !
i put DLL in right place see image, but MT4 can't load DLL or Call it.
unresolved import function call cannot call
call DLL :
int Account_check(int acc,int...
When I go to subscribe to a signal it doesn't connect properly anymore. I am signed in to the community tab properly, but after signing up for a signal my signal tab always shows that I am not subscribed. What can I do to fix this?
I had an idea to develop a news EA. Maybe someone already had it, here is how it would work:
EA would get the forecast of news releases from http://www.fxstreet.com/economic-calendar/ and other similar websites. EA would also receive the real data when it is released from the...
I'm looking for info about VTSO . I would like to know how that is working internally, in the code, some sample would be nice. All I know is that it is virtual. Also, I would like to know if before placing a VTSO i need to place a normal stop loss order in order for the VTSO work. Thanks
I've been verify all necessary parameter and procedure, but not any trade which program made after test , why ?
anybody can help me ?
I test the program downloaded from here https://www.mql5.com/en/articles/647
Hello profitable traders, pls i need an ea that can open as many trades i want at the same time and with predetermined take profit and stop loss.
I will really appreciate if i can lay my hands on such ea. Thank you in advance
i want to know how can find metatrader folder like this address (it is possible or not)
to access to MQL4\Expert and indicator folder to install EA.
or if you know software can install EA and DLL in...
I am using CTrailingPSAR trailing class, there were two stop losses triggered at 2014.06.19 00:35 and 2014.06.09 01:01, the stop losses not supposed to be triggered. Below is the journal captured:
2014.06.28 22:23:37.342 2014.06.19 01:01:00 order performed buy 0.10 at 1.35884 [#5 buy 0.10 EURUSD...
hello if i follow the xxx system whit a 1:500 leverage whit max 5% used for operation(capital of 2000 euro),any operation are:
I have found accidently that the historical spread (Ask-bid) used to open and close orders during backtesting in the strategy tseter is different from those stored in the Mql rates.
For example, you can get historical spread using the following code (Lets say your EA is attached on M1 chart)....