The EA should start with a 0.01 lots BUY, with 40 pips TP and 40 pips SL. If reaches TP, another BUY 0.01 has to be launched, again with SL and TP @40 pips.
If reaches SL, opens in SELL with 0.02 lots. Always 40 pips TP and 40 pips SL. These are fixed.
If the SELL order reaches TP, open 0.01 lots...
In the document of Position Properties, identifier POSITION_MAGIC has a Discription of "Position magic number (see ORDER_MAGIC)", What will POSITION_MAGIC be while many EAs work on the sane symbol? Since one symbol only has one position at one time.
if(EmailON) SendMail("Signal : BUY signal on "+_Symbol,"At "+(string)SymbolInfoDouble(_Symbol,SYMBOL_ASK)+" Date="+TimeToString(SymbolInfoInteger(_Symbol,SYMBOL_TIME)));
Hi,
Can't figure what's going wrong in the syntax used. The test mail from MT5 settings works. Any help ?
Hi guys Just logged on to my VPS and noticed all of my signals had been disconnected and don't show valid subscriptions. For some reason, my broker changed their server names over this weekend (IC Markets) so the signals database doesn't recognize that I've already paid for subscriptions. I've...
Hello Everybody. I am messing around with my first EA but I do not have the knowledge to do what I am trying to do.
I am trying to add a section to my EA that will do the following action:
Look at all open trades (All trades are long, no short positions in the EA)
If the trades are showing a...
Hello , im searching feedback for one of my first EA's . The report : http://traidingtool.square7.ch/DAX30-H1.png
As u can see i have non lots optimized and im going first long only with these method. Whats most importent to read these reports well and fix these problems ?
It is better to...
Ok, I cannot get self-motivated enough to complete this project on_my_own and thats why I'm starting this thread.
The Objective: Create an MAE( Maximum Adverse Excursion ) generator which reads mt4 && mt5 report. The mql_code will utilize || test the new OOP features being incorporated into the...
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);
How many pending orders of one pair with the same price can the MT4 platform open at once? When i have to many pending orders open and it reaches the price it goes wrong, trade context is busy….
Ed
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.
My proposal:
mrequest.action = TRADE_ACTION_PENDING;mrequest.price = NormalizeDouble(latest_price.bid,_Digits);mrequest.sl =...
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...
Hello,
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...
Hello,
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 ?
Thanks !!
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?
Good Morning,
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...
Hi there,
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