Essam Daoud
Essam Daoud
  • Information
6+ years
experience
0
products
0
demo versions
0
jobs
0
signals
0
subscribers
Friends

Add friends via their profile or user search and you will be able to see if they are online

Essam Daoud
Added topic If price touch the shap
Hi I draw a rectangle on the screen and want to call a function if price touch the rectangle. Is there an elegant way to do this?  if so what is it? Thanks
Essam Daoud
Added topic windows.h stdio.h under windows 10
Hi The 2 lines below are braking my code: #include <windows.h> #include <stdio.h> Error: can't open "C:\Users\myname\AppData\Roaming\MetaQuotes\Terminal\someid\MQL4\Experts\windows.h" I tried to locate the files manually on my system for
Essam Daoud
Added topic WindowScreenShot shifts the image
Hi The code below is expected to take the screen shot of the chart window as is, but when I shift the chart window x number of bars , it still takes the image as if the chart is not shifted, It also shifts my custom indicator so that it does not
Essam Daoud
Added topic PositionsTotal() not OrdersTotal()
Hi I want to loop over the open positions in my account and not the open orders. How is that done as OrdersTotal () gives the total number of working orders plus the open positions. Thanks
Essam Daoud
Added topic economic report time and values
Hi There are indicators that show vertical lines at times of expected economic report, some sends an external http request to forex factory in order to get the time. How can I get the actual and forecast numbers show on the chart as soon as it is
Essam Daoud
Added topic invalid pointer access
Hi This error " invalid pointer access" is that I get from this code, any suggestion how to fix it? #include<Arrays\List.mqh> CList lineList; class Line : public CObject { public :    string name;    string description;
Essam Daoud
Added topic CList memory management flag
Hi https://www.mql5.com/en/docs/standardlibrary/datastructures/clist/clistdelete indicates the benefit of enabling the memory management flag. How can I set it so that the memory used for the deleted element is released. I could not see that in the
Essam Daoud
Added topic structure have objects and cannot be copied
Hi The below code gives the error "structure have objects and cannot be copied" any suggestions on how to get it working?    class Line {    public :        string name;
Essam Daoud
Added topic MetaEditor code folding
Hi I have MetaEditor version 5 build 1601. Is there a keyboard shortcut to fold a function body? How can I create one? Thanks
Essam Daoud
Added topic MetaEditor keyboard shortcut for Compile
I have MetaEditor version 5 build 1601. I like to have a keyboard shortcut for the Compile button instead of reaching for the mouse. Any suggestions? Thanks
Essam Daoud
Added topic detecte manual object creation of the chart
Hi Is there a way to fire an event when the user manually draws (or changes an existing) either a trend line or horizontal line on the chart? I find doing a for loop over ObjectTotal() inside the OnTick() is too much CPU effort for this task. Thanks
Essam Daoud
Added topic get price where horizontal line is drawn
Hi This code failed to print out the price where the horizontal line is drawn, instead it is reporting 0. Any idea how to fix it?  Thanks void OnTick ()   { //--- int obj_total= ObjectsTotal (); for ( int i= 0 ;i<obj_total;i++)
Essam Daoud
Added topic Condition to match ObjectType of OBJ_HLINE not evaluating ot ture
This code is evaluates to true if there is a trend line but not with horizontal line which is what I want as well. How can it be fixed to allow both?  Thanks void OnTick ()   {    int obj_total= ObjectsTotal ();   
Essam Daoud
Added topic Which applied_price does iCCI uses
The function iCCI https://docs.mql4.com/indicators/icci uses ENUM_APPLIED_PRICE. Which of the this paramter is the one the default CCI indicator uses? so that I can duplicate the same value in my code using the iCCI? the values are here
Essam Daoud
Added topic ICustom compile error "wrong parameters count"
After getting the indicator name to feed in the code below so that I can get the value, I am getting a compile time error. Any idea how to get the value of the indicator "RSI" printed out? Thanks        Print (
Essam Daoud
Added topic ChartIndicatorsTotal not working in mql4
The code line below is expected to print out 1 since I have the Stochastic indicator attached. but it prints only the text " indicator short name is: " Any idea how to get the short name of the indicator? Print ("indicator short name is: " +
Essam Daoud
Added topic indicator Finish Loading event
Hi A mql4 code changes the chart symbol using the "ChartSetSymbolPeriod" method. And since the chart has an indicator, it takes a second or two to render the indicator onto the sub window. Is there a call back which gets triggered once the indicator
Essam Daoud
Added topic ObjectGetInteger for color same for different colors?
Hi I expected to get a different integer for different colors in order to be able to change the color of a label from green to gray but only if it is currently green. the code below is returning the same integer regardless of the the color. Why? and
Essam Daoud
Added topic mt4 compiler on windows 10
Hi I have mt4 (version 4 build 1090) terminal installed and use emacs to edit mt4 files. I need to locate the mql-compiler command on my windows in order to use it in my emacs. Any one knows where it is located? would that be the file metaeditor.exe