MQL4 and MetaTrader 4 - page 602

Hi, I'm trying to alert for weekly High and Low price, I'm using this code:       double Alert_To_W1_High = iHigh(Symbol(),PERIOD_W1,1);      double Alert_To_W1_Low  = iLow(Symbol(),PERIOD_W1,1);      if(Ask+1*Point >= Alert_To_W1_High && Ask-1*Point <= Alert_To_W1_High)         Alert(Symbol() + "...
People thanks very much for the help. you help a lot and i am very grateful for the help in my learning.   In my studies, I'm trying to terminate an order if another order is closed.   Example SHELL:  if Order(1) OrderOpenPrice()-20PIPS then Order(2) CLOSE. I can not imagine how to program! please,...
[Deleted]
  er returns error  (6)
hello//+------------------------------------------------------------------+#property copyright "Copyright 2015, MetaQuotes Software Corp."#property link      "https://www.mql5.com"#property version   "1.00"#property strictextern double lot          = 0...
When i try to open a shortcut with FileOpen(), it opens the shortcut file itself, instead of file this shortcut is pointing to. I thought that the shortcut is actually a link in some OS layer, but it obviously isn't. Any ideas how to solve this? 
  CPU usage 100%  (9)
I am experiencing a problem whereby task manager shows CPU to be nearly 100% occupied with (demo account) terminal.exe. This only occurrs when the EA has been running for a long time (2-3 weeks). Logs show no activity at this time and trade profits are changing on ticks as expected. Memory usage is...
Hello, I have a normal programming experience, tried many different strategies, I want to create something new and interesting. Please advise me on an interesting strategy based on indicators. I would also like to use some indicators to help out my forex trading
Function definition - what is wrong? int getInt2Index(int i0, int& arr[][]){ causes '[' - invalid index value    Defines.mqh    581    36 Char 36 is the 2nd [ Even a int getInt2Index(int i0, int& arr[,]){ causes a ',' - invalid index value    Defines.mqh    581    35
New article Universal Expert Advisor: Trading Modes of Strategies (Part 1) has been published at mql5.com: Any Expert Advisor developer, regardless of programming skills, is daily confronted with the same trading tasks and algorithmic problems, which should be solved to organize a reliable trading...
Good day I just want my EA can open a designated starting time specific operations, and to stop open operations in other specific designated time. And the only robor close open operations. Thank you !!//+------------------------------------------------------------------+//| This MQL is generated by...
I back tested my strategy.  When I click Open Chart after the test is done, I saw a black background, green bars, and the trades entry and exits on the bars.   I wanted to visually backtest and make sure that the EA was entering and exiting as I wanted, but I was not able to add any indicators or...
Market data on chart is stuck on the extreme left side of chart. The problem occurs when i open chart windows for futures markets but not in other markets. The problem does not present itself on the smaller time frames, such as the 1 minute, 5 minute, etc.. It only occurs with the 4 hr, daily,...
Hello. Please help, i think this is really simple but i don´t know how to do it.  I need help modifying an EA that i have coded and adapted. I want to modify it such that, once a fractal is used as a signal to open a trade, another trade will not be opened based on the same fractal. This is to...
[Deleted]
Hi, This is driving me nuts and most likely a very noob questions (I apologise in advance).  Im trying to write an oscillator that shows the percentage difference between the close price of the candle vs the close price of 5 candles prior.  It seems to work however the last 5 values before the...
  Tralling Stop  (4)
heeey gus!!! It is a pleasure to be in this forum. The forum helps me a lot in my studies. =) Thankss!!! People,I can not place stop when the price reach a value. Example: price is 1.50 Stop in 01.30  if(Ask+50*MyPoint>OrderOpenPrice()) modify = OrderModify(OrderTicket(),OrderOpenPrice()...
[Deleted]
THE PROBLEM:  I've got an idicator in compiled version only and I'm trying to figure out how to implement it in my EA.  IDEAS: - figure out how my EA could read the color of the chart. - iCustom returns the value of the indicator, not the color, and it is the color that I need  - "reverse engineer"...
Hi,    I've been unsuccessfully trying to start  from powershell command line the terminal.exe program. The .ini file look like this :   ; common settings Login=2089020454 Password=7ze45v3u EnableNews=false ; experts settings  ExpertsEnable=true ExpertsDllImport=true ExpertsExpImport=true...
Hi :   I am writing an indicator with 50 buffers. I don't want them all to be appear in the data window, how can I hide some of them please?   Thanks  
Hallo, just started coding two weeks ago so I assume my code often is to cumbersome and slow, so be lenient ;) I want to get the price (low price is this case) of a candlestick where a certain vertical line is placed. For iLow I would need to use a shift which doesn't seem wise to me because it's a...
Hi, I found this article in the codebase: https://www.mql5.com/en/articles/1403  "HOW TO EVALUATE THE EXPERT TESTING RESULTS" It works fine for testing ONE run, but if I will do an optimization, than in the text-File shows only the last result (not for the different optimization values of an...
[Deleted]
Hello MQL4 community! This is my first post as a MQL4 rookie. And before I start I'd like to say thank you! I have already got some helpful tips just by searching & reading the forum. Well, I have a comprehension question. So far I have "coded" EAs just for the strategy tester. That means in a lot...
any one know how to transfer  trade history data from mt4. thanks
how to make site like myfxbook that analyze history of trading?
Hello, i want to write my function so that it makes a for loop comparison of different EMAs for order execution. In theory a for loop would go through all the numbers, but mine does nothing. Any ideas? void CheckForEMATrade(){   int x,y;   int period[]={20,25,30,35,40,45,50,55,60,65,70};   double...
[Deleted]
I wrote an EA but since i am very new in programming i want my EA to work only on those trading account numbers which i include in my source code so that if any of my clients distribute my EA to any other person it should not work on that account .What lines should i add in my EA to protect this....
Hi ... I recently bought a new laptop... Unfortunately for me i bought a ACER with a 32 Gigs SSD... of course, it became full in no time... I see that metatrader datas are on C:\user\MyUserName\AppData\Roamimg\Metaquote... Those datas keeps accumulating without end... and of course i had to remove
Hello, all, yhis would be the best in french, for me can not use MathMod, could you show me an exemple Here is my wrong code, seeking to use parity:               "                 int i=3; i ++;                 double     MathMod (i,2)                 if ( MathMod (i,2) = 0) Continue;...
Hi is there any way to automatically save data from MT4 into CSV format? I have to go to each chart and manually click on File>Save as then save the entire history for the instrument, Doing this manually everyday becomes a very time consuming process. Is there any indicator or script that will save...
Hello, I have tried the "currency loader" to save live mql data in a csv format but I do not see files writing to the directory. I searched the following path but no file was seen: D:\Program Files\FX - MetaTrader 4\experts\files\. Can anyone help or direct me to an expert advisor that will export
[Deleted]
Can somebody help me, how can I write the code, because I am beginner of programming in mql. In My strategy are two Simple Moving Average and Average Directional Movement Index. I want open buy, when SMAB>SMAR && PlusDI>MinusDI && ADX>ADXLevel And I close it on TakeProfit or Stoploss. If the buy...
Hello  I have a problem with the values returned on tester when I use the genetic algorithm to optimize. Using the same parameter in EA, the return value of the function OnTester() dont match when I compare the test individually  with the return value in optimization. Here is the Step by step:...