Expert Advisors and Automated Trading - page 174

Which is the most efficient programing? Reading and "if" statement every tick or just setting the bool variable every tick? Kind Regards ---Tom if (rrPrinted) rrPrinted = false ; || rrPrinted = false ; Most efficient? // CALCULATE PERCENT OF PIPS RISK if ( EAOpenTrades() > 0 ) {
hello im sorry im not well in english language my expert create renko closes,opens and etc and save the data in a few arrays when my MT5 was disconnected the expert print 4011 error my mqltick array size is 10000 and The other 14 arrays each have a size of 50 I don't understand how the size of
Hello, I think there is problem with this signal subscription, has anyone experienced this problem? I have more open trades on the subscriber terminal than present in the provider side. Where are these trades coming from? I even tried to close them manually but they keep coming in again. Example no
Hello there I'm trying to work around iHigh and iLow functions but when i set the shift argument on " 1 " it doesn't execute the program but it sounds fine when the shift is set on " 2 " . Here is my following code.... it's just a simple code whenever the price passes the High of the candle it opens
Hello guys, I plot a line in my chart, called "sl". Then I execute my code and I always receive this [Unsupported filling mode] error #4756. I use almost the same code for my pending orders and they work. But where is the difference between a market order and a pending order regarding the filling
Hi guys, What is the easiest way to enforce just one trade per bar on close of the bar?  Best Regards,  Ashish. 
for(int j=2; j<20; j++) { if(iHigh( " USDCHF " , PERIOD_H1 ,j)-iLow( "USDCHF" , PERIOD_H1 ,j)>=200*Point) { K=j; return true; break; i want to detect only buy or sell candle at a time. what additional setting i do for it
hello i want to insert values of an array to other array my code: void OnStart () { int g[]={ 1 , 3 }; int l[]={ 4 , 5 }; insert(g,l); ArrayPrint (g); ArrayPrint (l); } //+------------------------------------------------------------------+ void insert( int &array1[], int &array2[]) {
Hello, below code is to show information of Total profit at current symbol and with time range 15 minutes. double CANDLE_POROFIT() { datetime CurentTime = TimeCurrent (); datetime PrevTime = iTime ( Symbol (), PERIOD_M15 , 1 ); HistorySelect (PrevTime,CurentTime); int trades_of_day =
I wasnt sure which section of the forum to post this, so if it isnt in the correct one, please do so, and send me the link it is forwarded to. My q... I am in Mt5 Strategy Tester, testing my eas. How do I hide the subwindows from user's view? I could do it in mt4. I hope i can do it in mt5 too! I
hello all friends me as scalper looking for free trading tools { indicator or EA } for calculate lot size automatically i want put manually SL and when candle close or push a button immdeitally calculate lot size and open trade, at this moment i have a tools that calculate lot size but don't put
  Equity Trailing EA MT5  (15   1 2)
For those who have searched and found nothing. Hear you are. Make sure Allow algo trading is checked . Place on a chart of a currency whose positions are opened. Otherwise would have loved it works on any chart but could get it to do so. May be one of our proffesor programmers can sort it out
  MQL5 IC Market  (2)
I have a little challenge. When I for example use OctaFX or MT5 from this website does my code works. But in IC Market does this code not work. trade.PositionClose Type of account is hedging. The code error is 4756 Also if I open an order with  #include<Trade\Trade.mqh> trade.Buy(0.1) I can not use...
Hello good people, I have a problem with one robot if someone could look at the settings and suggest what would be good to change because it is not profitable. I've tried various ways, but it always ends up ruining the entire account on the demo account .Any advice on settings is welcome
Hi, I can't seem to figure out how to add the ability to close a trade to my bot. I am using python. Here it shows SL and TP https://www.mql5.com/en/docs/integration/python_metatrader5/mt5ordersend_py Which I am using, but I cannot see anything related to closing a trade. Right now my bot receives a
Hello I am wondering if I disable automated trading . then what anything can ea do? Can it just modify tp/sl remaining positions/orders? thank you
Hi Guys, I want to write a ea but when I put it in the chart, it will wait until the current candle close, (for example : double Close[]; ArraySetAsSeries(Close,true); Copyclose(_Symbol,_Period,0,10,Close); ), which is when the tick of Close[0] close, then it became Close[1], then it just start(I
Hello, does anybody got an idea how to change the methods "CompareMaps" & if needed "ExtStatexxx" to add hidden divergences to the let's say CSignalRSIclass? Thanks in advance you smart people
I've decided to "test" the Automatic validation tester, or in other words - to understand its errors. And yes, I've read this ( The checks a trading robot must pass before publication in the Market ) article. It says that for a Buy Limit order the check would be Ask-OpenPrice >=
  Changing lot size for a signal  (23   1 2 3)
Hi, Im using a paid signal wich is automatically enter positions of 0.01 lots even that i have more then 10000 in the account i would like to raise the risk to 0.25 or more the way i chose it i spoke to the author of the signal and he told me i should contact mql5 and ask them how to raise the risk
[Deleted]
Hello, Does anybody know how to resolve a " Soft time limit 150 ms exceeded.". I have an MT4 Zuluscript operating and it keeps freesing after a few days giving this error message. I got this feedback from Zulutrade but not sure how to optimise the script for better performance. Thats just a warning
Anybody knows a Bollinger Bands EA for MT5 that - SELL when price touch Upper Band - BUY when price touch Lower Band Could indicate
Hello Community or Support, when i catch a sell order transaction for a simple Gold SELL MKT order, i get this transaction sequence: QN 0 14 : 49 : 25.391 otype_on_sell (GOLD,M1) entry-type= DEAL_ENTRY_IN trans-type= TRADE_TRANSACTION_ORDER_ADD otype= ORDER_TYPE_SELL dtype=
I try giving out this robot to programers to do for me but I couldn't load my wallet with dollars.The fault is actually coming from my country bad policies with USD transfer limit per month for as low as $20. Please,can anyone help with how I can create this robot either on fxdreema(preferably) or
I wrote a 15 minute timer(15*60), but I want to make the onTimer() start regularly, for example, 00:15, 00:30, 00:45. How should it be realized? Thanks very much
[Deleted]
Can I trade manually as well as run an EA in my MT5 live or Demo account - at the same time? Or is it either manual trading or EA on MT5 in one Demo/live account at a time?
Hi everyone, I have recently downloaded data from tickstory for a number of symbols and have now successfully loaded it into MT5. Before using it in anger I wanted to verify that the strategy test was giving similar results between the broker supplied data and the custom data I loaded. So I did a
Good morning everybody. Currently, I've got some EA on a MT4 with a demo account, and a real account on MT5. I'd like to "auto" copy signals (or receive an alert of the position that my EA is opening) from my mt4 account to mt5. Is this possible? I've read many tutorials, but it's so confusing
hi i made this function to close trades when the amount of profit in the open positions crosses a certain threshold the bot closes all open positions cause i noticed in the back test that EA was had alot of equity it was holding onto but was not closing the trades. bool CloseAll () { bool result =
Welcome, I'm trying to write a signal timer and it's not working The thing is that, the trend indicator sets a value in the buffer that is different from zero when an asterisk appears on the screen. Then the buffer is reset to zero until the next asterisk appears (that's why static bolean) I wrote