Expert Advisors and Automated Trading - page 182

hi every one I used below code in my expert in MT4 now I want use it in MT5 what should I replace instead of iMAOnArray in MT5 SignalBuffer[i]=iMAOnArray(MainBuffer,Bars,DPeriod,0,MODE_SMA,i); best regrads Neda
Hello people. I just realized that while EA is running on the chart, change in the Input variable (I mean manually) is not effective on the same chart. Actually we need to completely remove the EA from chart and reattach the EA with changed variable to make the variable change effective. Is there
Hi All, I am trying to figure out how to code an indicator into my EA. Any assistance would be greatly appreciated. Basically, as per the picture attached, the indicator here gets to a maximum level, and flattens off. As indicated between the green vertical lines I have drawn. To the eye, and in
In OnTimer - every three minutes - I do this code ResetLastError(); if(PlaySound("tick.wav")) Print(__FUNCTION__+" Playsound true " + GetLastError()); else Print(__FUNCTION__+" Playsound false " + GetLastError()); The PRINT always gives "Playsound true 0 " Even if I let the programme run without
Hi traders, I just started renting an EA for MT4 platform. It required the Autotrading to be active. I click this, all is good. It turns green. Then I synchronize everything with my MQL5 VPS that I rented. Now autotrading turns off. In the journal I see "Virtual Hosting: XXXXX automated trading...
  1 Buy 1 Sell  (3)
Good day, I have put together an EA based on the conditions is above/is below so the signal is continuous. However I would like the EA to put in one trade on the initial signal only, close after TP, then only open after there has been the opposite buy/sell signal and conditions have been met. For
  Ea  (2)
An ea which place a pending order whenever a price level is reached
When using Icostume i need to add the index number according to the 'Data Window' for example: with 1 indicator its easy but what about 2 indicators or 3 will the second indocator indexes will be accordinlly or start from 0 again? example: Thanks :)
I am using sqlite database in my EA. When I force stop backtest process agent hangs and never accepts new jobs until I restart MetaTrader. I figured out that after force stop agent still keeps sqlite database file open. I've added file release in both OnDeinit and in destructor of database...
int TotalSymbolOpeningOrders() { int func_total_orders= 0 ; string func_symbol_list= "" ; for ( int func_i= PositionsTotal ()- 1 ;func_i>= 0 ;func_i--){ ulong tick= PositionGetTicket (func_i); if ( PositionSelectByTicket (tick)){ if ( StringFind (func_symbol_list
Hi, I would like to avoid my expert (developed in mql5) to trade during a certain period of the year (from 23 Dic to 08 Jan every year). Is that possible? Thank you for you help
Hello all. I've read the documentation, as best as I can find. If the answers to the following are in the documentation, please do feel free to just point me there. As far as I can tell: In my EA, I can use printf() or PrintFormat() ( https://www.mql5.com/en/docs/common/printformat ) I can use
Newbie here. I have an custom indicator that I cannot for the life of me, figure out how to access the Buy/Sell signals from an EA. Code for the indicator is below. I've tried every variation of CopyBuffer from the EA, and cannot seem to find the right syntax. Any assistance of what that CopyBuffer
Anyone knows how I can debug this? In Strategy tester, I found a strange symptom that tester doesn't not execute the sell stop order to return deal or error msg when price reach the trigger price. As you can see in below screenshot, there is a sell stop order that should get triggered/executed if
Does anyone know how to take into account spread in your EA logic? how to overcome the loses because of this? any guidelines or articles to follow
So, I like to ask your opinions and grate comments and suggestions. I have wrote about the same in ForexFactory Forum, and I got also valuable inputs there, but I also like to hear from you here in this community. What I like to know exactly is whether what I am suggesting is an ok and acceptable
How to downgrade EA Version? i've been searching for this topic in this forum but i don't get any solution
I am looking for a solution, my code is updated every day and I would like the update to be made every time there are any changes, e.g. a new position is opened or a position changes, or the price in an open position changes. whether it is feasible. I'm sending some code
I have an expert advisor which in demo accounts 'always' sets SL and TP... but when in live, sometime it doesn't set the SL and TP. Should this be a problem with the EA or with the broker
I am looking for a way to detect if the user clicks 'somewhere' in the chart and drag or if he clicks on an object and drag the object. In both cases I get the same event: id CHARTEVENT_MOUSE_MOVE, lparam 517, dparam 253, sparam 1 (X,Y, left Mouse) Does anyone have an idea
I tought at the begining Void OnTick was used for detect new change of price per exemple when the begening's price was at 1.00 and then go at 1.01 you have a new detection bc its a new Tick But for OnInit i tought it detect every new candle on the chart? Can somebody clear me out
I have the XML file containing the results of an optimization I ran earlier, I want to use the input variables of say the top 100 passes of those results and run a new optimization that only uses these 100 variables
Hi i have an .exe file of custom indicator from my friend. But this indicator seems to have a password and encryption. how can i use this indicator in my expert
Hi I've read in the doc that the Magic number of a position can be changed (swap, etc) without user input of course, so my question is simple, how am i supposed to know if a position has been opened by my EA if I can't use Magic numbers anymore? I could use Identifiers (as stated in the doc) but
Hi guys, Here is my code. Please help me. double ilkuclu[],ikinciuclu[]; double yuzdefark[]; double fiyatlar[]; ArraySetAsSeries (fiyatlar, true ); CopyClose ( NULL , PERIOD_M5 , 0 , 11 ,fiyatlar); ArraySetAsSeries(ilkuclu,true); ArraySetAsSeries(ikinciuclu,true); ArraySetAsSeries(yuzdefark,true);
i have 2 variable first one is intiger and fix and secondor is first one * a double value exmple input int x=60; double z=1.01 ,1.02,1.03........3.00 y=x^z i want x & y as input . but also i want limit y becuse it shode be x*z enum y { y01=(x*1.o1),y=(x*1.02) }; this is not work.... do you have any
  Trade Copier  (2)
are there any tool available to copy trade from one broker to another broker (not on same server)
Hello all. Any help appreciated... I have a multi-symbol, chart independent EA. It has many inputs. There's two relevant to this question. Let's call them T = timeframe or bar seconds, and N = "action intervals per bar". I want to break each bar up into N intervals or blocks of time, and perform
good evening any programmer for a bot that is created from telegram and connects to the iq option account, to copy the entries from the main account? in the bot configuration contains Username wrench the values per entry, the losses allowed, the winnings allowed, etc. Everything automatically copies
Hi, I've coded all my indicators and everything is working only when im backtesting my strategy the ea opens more than one trade because the conditions remain valid Could someone help me out that it would open only trade per valid conditions? Here my code for opening trades