MQL4 and MetaTrader 4 - page 600

Hi, I'm new to mql4 programing I try my best to learn it. I did some modification to an alerting to have it as a buttons in the chart window. The problem that I face is when " I active the alert button and change timeframe the status of the alert button changed to false". #property...
Hi all, I have a problem with my EA, i created a trailing stop function, it works but in the tester is says "Order modify error 1" - i suppose this is for modifying the already modified order, but i need help for solving the problem - How can i make my function modify only once? Thanks in advance...
[Deleted]
I got this code that send 2 pending orders than i got an other code where u try to delete the one that did not got hit unstead my code his deleting both pending orders before they get hit here is the code: for(int i=OrdersTotal()-1; i>=0; i--)    {      if(!OrderSelect(i,SELECT_BY_POS,...
  ExpertRemove ()  (8)
Hello everybody present, did anyone here succesfully apply this function? I'm always failing with it. Added a Comment-Request to be sure the function is reached and it verifies, but no action results. I'm aware, the execution can take some time, but even after minutes the expert still stays with a...
New article Thomas DeMark's contribution to technical analysis has been published: The article details TD points and TD lines discovered by Thomas DeMark. Their practical implementation is revealed. In addition to that, a process of writing three indicators and two Expert Advisors using the concepts...
Hi Guys, Finally, I managed to create a strategy which works on all currency pairs which I tried... even if I change settings - it only adjusts risk, profits, stability, etc. Now, I would like to go live but before that I want to analyze the best portfolio - combination of parameters and which pairs...
New article Adding a control panel to an indicator or an Expert Advisor in no time has been published on mql5.com: Have you ever felt the need to add a graphical panel to your indicator or Expert Advisor for greater speed and convenience? In this article, you will find out how to implement the...
New article MetaTrader 5 features hedging position accounting system has been published at mql5.com: The MetaTrader 5 platform was originally designed for trading within the netting position accounting system. The netting system allows having only one position per financial instrument meaning that...
[Deleted]
Brand new to coding and trading. Two questions: Why doesn't this work? Would this even potentially be profitable? { double DayOpen = iOpen(NULL,PERIOD_D1,1); double TakeProfitLevel; double StopLossLevel; int TakeProfit = 10; int StopLoss = 10; TakeProfitLevel = Bid +...
Ive been trying to make the following code draw a double smoothed stochastic of the 30m chart while on the 5m chart but always get a critical error and not sure why? I have tried to put PERIOD_M30 enumeration in 2nd parameter of iHigest() and iLowest() but it doesnt work.  #property...
[Deleted]
I can't seem to distinguish between red or green bars that this indicator displays. MFIGreen = iCustom(NULL, 15, "__MFI Meter", 0, 1);MFIRed = iCustom(NULL, 15, "__MFI Meter", 1, 1); Both these just return 0 when Printing them to journal. Any idea how I can return something to distinguish between...
[Deleted]
Hi there, New to the MQL4 language and C++ in general.  I am a C# coder by nature, so as you can imagine MQL4 is being a bit difficult.  My normal MQL4 coder is out of town for a week, so I need a bit of help with something. I am trying to loop through the last [X] number of indexes for a defined...
#property strict#property indicator_chart_window#property indicator_buffers 5//---Indicator Colours#property indicator_color1 clrGreen//UpArrow#property indicator_color2 clrRed//DownArrow#property indicator_color3 clrRed//EMA50#property indicator_color4 clrBlue//EMA120//---Indicator Width#property...
[Deleted]
I fired up MT4 this morning as usual (demo account) and trades stop YESTERDAY at 11:59pm, I cannot get it to display trades TODAY?  I went through everything, even deleted mt4 from my computer (thoroughly with Revo uninstaller) and re-installed it, same thing, no trades today??
[Deleted]
Hey, I have started to learn about MQL4 and have some question. Basically I want to make some kind of IF statement that will make a trade when current price reach specific price (lets say in GBPUSD when the price is 1.4180 execute sell position) . Also I want only one trade at a time. If some one
I attempted to publish my Trades on my Homepage Then I found this program: https://www.mql5.com/de/code/1246 how can I convert mq5 to mq4? this tool was written in mq4 but is modified to mq5. All data that become available in MQL5 can be exported via this DDE interface. how can I modify dde_example...
[Deleted]
Hi, I'm receiving this error very frequently, specially in the pair GBPUSD , but in other pairs, too. I use Metatrader 4, with the broker GKFX, I don't know why this happens. Could you help me?. Thanks
I like to dimension an array and fill it with the product of the respective row indices and column indices. The following are the codes I attempted to write which obviously did not work. Any help from you please?. Thank you in advance.// I first ininialize my array as follows:int  ArrayInitialize(...
Hi,  I am writing an indicator and at each new bar I need the last 10 Stochastic values. For testing I put in my loop the following code in my indicator:      for(int i=1; i<rates_total && !IsStopped(); i++)      {   if(i==1)  Print("Sto = "+iStochastic(NULL,TF,5,3,3,MODE_SMA,0,MODE_MAIN,i)+"...
[Deleted]
I get no sound from my event with a position closing, stop loss, take profit. I am using MT4 on OANDA. OANDA says it's not available. I have used it on other broker sites I no it works. All the event sounds work. can help me 
I am working on an expert adviser that takes decision to buy or sell depending on price and volume. If price variation of the last bar and the volume of the last bar are larger than the variation of the last few bars, then I place an order to buy or sell, depending on the price variation. If I run...
I need store EA configuration file like below: [EURUSD] timefame = 60 stoploss = 50 takeprofit= 100 [ USDJPY ] [GBPUSD] and so on. I need EA read symbol setting from .set file in block, Anyone has experience on it
[Deleted]
Hello, Im new to coding in MQL, i was was wondering if this was the correct way to work out if the stochastic was over 80 (sell) and under 20(buy) and another question when should you use a { after an if statement and should i use one with the code below? CODE double current_K = iStochastic(NULL,0
Hi all, I've observed different results on the strategy tested and was simply seeking a little perspective. I originally worked on a couple of EA's that used the same skeleton code but each operated strictly in a specific timeframe.  I've attempted to incorporate them together to run simultaneously...
Hi, guys I have a problem with my ex that I can not solve. What I would like is that the EA would eliminate a specific pending order after a previous order has reached the take profit. I do not understand where I'm wrong, I hope someone can help me. void DeletePendingOrder27(){        for (int...
Hi guys, I wonder that MQL4 provides any functions or API for create a demo account on MT4 or we have to do it manually. Thanks for your reading. 
[Deleted]
I try a lot to make a simple ExpertAdvisor that make a .csv file, that contains all the close values of all bars of any symbol/currency that I run in the tester. So that when the EA finish, it export a  .csv file with all close price values.   I read many web sites of diferent functions (FileOpen,...
Hi, I started using Metatrader 4 with a demo account and I am working on some scripts. I make changes very often and I am interested to leave the script overnight to see whether it makes a profit or loss. I would like to be able to reset the funds in my account to a desired value (in my case, $3000)...
[Deleted]
  TO DELETE  (1)
Spam