I got the take profit and stop loss to work but it only executes on one order and is not applied on all the open orders. How do I get the take profit to be applied on all open orders? Any advise?...
baje dos veces la metatrader 4 una de la web fxforextime y la otra de la web ibfx.com .. como no se conectan con su servidor respectivo decidi desintalar e instalar de nuevo.. Ah.. se me olvidaba tambien baje de google la metatrder 5 sera este el problema del porque no conecta la metatrder 4??' en...
Hi, I would like to migrate the indicator attached below to MQL5. Can anyone do it for me? I tried so many methods and followed so many articles. But couldn't do it. Thanks in advance.
-
Hi guys, I have been working on an EA of mine for the past month or so. It works great in the strategy tester, so I decided to try it out on the live demo. However, after a few trades I get this message: "2010.04.26 18:51:58 Memory handler: cannot allocate 164202016 bytes of memory." Also, when I...
Hi all. I'm find in my HD the indicator attached. I remember that i download it from this forum. How i have to construe this indi? Thank you.
[Deleted]
hi guys n gals hopefully someone can advise me whlist using the mt4 in tester mode with an EA in visual mode, i.e. you can see the chart drawing on screen as ea plays, i wish to use a script to return the details of the order which is currently open on the ea tester window, however i can't seem...
Hey Guys. I wrote an expert and have only one problem. He makes 100 trades in few minutes and loose all the money. I want to make a 15min/1h. break after every closed trade. So i wrote: if(OrdersHistoryTotal()>0) { for(int a=0;a<OrdersHistoryTotal();a++) { if(OrderSelect(a...
Hi Does 3DOscillator CI repaints? According to some backtests ive done it seems it does. I m quite suprised since in the code i can only see using iRSI&iCCI. Is there a way to fix this? https://www.mql5.com/en/code
Hi, I process the " optimization results " tab as shown in the tab after an optimization. To do this I pass all this data in a csv file (coma separator). The "save as report" option doesn't work for me as it doesn't save all information as shown in the tab (inputs are not shown). I do a copy and
int init() { ObjectCreate ( "closeprice" , OBJ_ARROW , 0 , Time[ 5 ], Close[ 5 ]); ObjectSet( "closeprice" , OBJPROP_ARROWCODE , 5 ); return ( 0 ); } int start() { //---- double closeprice1, endprice,closeprice; closeprice1=ObjectGet( "closeprice" ,OBJPROP_PRICE1); string
[Deleted]
hi friends i m searching for averaging with multiply method Expert Advisor look the attached statement the EA possible change lot size,averaging gap and multiply also please help me
How to modify OP_BUYSTOP current price / position??? For me OrderModify is not working, don't know why... Maybe doing wrong And on each tick deleting and creating new ticket is not very smart and cool :D
[Deleted]
if (Bar(0) price >200){ OrderSend(Symbol(), OP_BUY, lotSize, Ask,3,stopLoss,magicNumber; lastTrade = Time[0]; return;} else if (Bar(0) price <200){ OrderSend(Symbol(), OP_SELL, lotSize, Bid,3,stopLoss,magicNumber; lastTrade = Time[0]; return; }Is this code totally illogical?...
for example these r my ea's orders. 1 order is long at 1.30000 2. order is long at 1.29700 3. order is short at 1. 2960. 4. order is short at 1.2940 5. order is long at 1.2920 now all five order not close yet. i want write a code that ; when 6. order will open, ea will check 5. orders open price...
[Deleted]
Hi Everyone, I have encountered a problem which just makes no sense to me. Basically I need to search through a long list of hundreds if not thousands of lines in an array. So I'm using a "While Loop". This is just an example: int k = 0; while(k<300) { Print(k); k++;...
Hi, Can you please tell me whether we can use MQL5's - Bars in the place of MQL4's IndicatorCounted() ? I am trying to port an indicator from MQL4 to MQL5. Thanks in advance. -Krishna
I was wonder if there is a way to up the lot size as the price goes up or down? For example if I buy USD/JPY .01 lot @ 99.10 and the price goes down 10 PIPS. I would then want to buy .02 lots @ 99.00 and so on if the price continues to drop. As the price drops the lot size increases. Is there an...
[Deleted]
Con el Metatrader se pueden solapar dos gráficos de dos valores diferentes? Dicese BBVA y Santander y dividir el uno por el otro? Que aparezca todo el la misma pantalla pero por separado: ----------------- GRAFICO BBVA ----------------- GRAFICO SAN ----------------- DIVISIÓN ENTRE AMBOS...
I will try to explain the meaning of the strategy. Upon a certain signal, the EA places a buy order with 0.01 lot, let's assume the price went down and moved a little bit away from the open position, then the EA puts 0.02 lot in the sell position to compensate for the first sell order when it
Does anybody knows how to deal with this? I get constantly these messagess after 12 h running MetaTrader without problems: 2008.11.25 22:05:50 HistoryBase: not enough memory ' EURUSD1 ' [57109 bars] ... 2008.11.25 22:06:01 Memory handler: cannot allocate 2524060 bytes of memory MetaTrader is running
[Deleted]
I have an EA in MT4 build 200 that uses MA calculations extensively, but when Irun it on a chart, I keep on getting this error: 2006.11.29 13:28:25 Memory handler: cannot allocate 22 bytes of memory 2006.11.29 13:28:25 Not enough memory for indicator Moving Average (EURUSD,M1) What is the best...
[Deleted]
Hi All Help me to write the code for indicator is active for specfic login with specfic time period like 1 week , 1 month or 1 year .. how can i set this indicator.. Guide either i can add it in indicator itself or need to write a script in seperated and put it in under EXperts/Scripts
hello want try to code range bar in mt4 but want to have filled & non filled empty candles just as a rectangle thanks in advance for help regards
Hi, I am running an EA on EURUSD . I would like to place orders on other symbols. How can I do it? Thanks in advance. With Regards, Krishna
[Deleted]
Hello, I soliciting your expert advise on how to solve a critical error that I have encourter on MT4 and running a custom indicator (runs 3 different indicator for monitoring) for the whole day. I have attached a printscreen of the error. All advise will be appreciated. Thank you, David
[Deleted]
Hi, I am new to mql4 coding. I coded an EA to do some back-testing. As shown from the above picture, I had a buy position at a lower price where it loses money at a higher price. Can anyone give me a brief explanation of the possible cause? Thanks
Hi all, Sorry for the silly question; I'm looking for increase lots based on the number of open orders. For that am make use of the follow code, but seems to not work. for(Total = 1; Total <= OrdersTotal(); Total++) Lots = MathRound(AccountBalance()/100)/1000; lots = MathPow(2...
How , when close position with stop loss go to open anther position I used this http://www.strategytune.com what I mean is , when close buy position with TakeProfit don't do nothing when close buy position with StopLoss open sell position I hope it is clear
[Deleted]
Hello, I'm a newbie. I've written my first EA. It compiles and runs well, and it's actually making some money. However, I cannot make it work with the strategy tester. My EA works with several pairs simultaneously. Therefore I need to access info from those pairs, from the same EA script. When I am...

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.