Essam Daoud
Essam Daoud
  • Information
4 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 implicit conversion from string to color
The code line below gives warning (I would like to get ride of) how? color mColor; mColor = "0,88,117" ; //<<<< generates a warning
Essam Daoud
Added topic Navigator window missing a custom indicator
Hi A custom indicator called "utility" which is present in File > Open Data Folder > MQL5 > Indicators but not showing in the Navigator window even after right click and Refresh. Any idea why it is missing how to show the indicator? Thanks
Essam Daoud
Added topic datetime arithmatics
Hi How can I get the server datetime for n days ago at 1am? Thanks
Essam Daoud
Added topic FileReadString reading gibrish
Hi This code is expected to read the content of C:\Users\myName\AppData\Roaming\MetaQuotes\Terminal\Common\Files\spread\EURGBP.txt which is "0 10" with out the quotes. But I am getting "No value in file". Any idea why and how to fix it so that it
Essam Daoud
Added topic Forex Session Indicator in mql5
Hi I am looking for an indicator in mql5 that plots colored rectangles for the 4 main forex sessions. Something like https://www.mql5.com/en/code/10513 (4 sessions by Andrew) but for mt5 instead of mt4, hopefully well written in OOP. Any suggestions
Essam Daoud
Added topic OnDeinit ObjectDelete not when market is closed
Hi When market is closed the code below failed to remove an object from the chart. How can I fix it so that IndicatorList > "select the indicator in question" > Delete works by deleting the object which was created? because now I am getting "1
Essam Daoud
Added topic Late class initialization
Hi coding in mql5 myFile.mqh class SpreadRatio{ string symbol; public :   Person( string symbol){    symbol= symbol;   }   ~Person( void ); // do stuff }; myFile2.mq5 SpreadRatio spreadRatio; // compile error -
Essam Daoud
Added topic FileOpen for writing INVALID_HANDLE
Hi In mql5 I am getting INVALID_HANDLE when trying to open a file for writing, any idea why and how to fix it? Thanks void writeToFile( string str){    int fH = FileOpen ( "//...//...//Common//Files//newsFF.txt" , FILE_WRITE , 0 );
Essam Daoud
Added topic SendOrder calculation of stopLoss and takeProfit
Hi I tried many ways to calculate the stopLoss and takeProfit but could not get it write. say I want the stop loss to be 40 pips away and the take profit to be 20 pips away. the below code failed and many variation could not fix it either, I need to
Essam Daoud
Added topic ChartOpen with size and location
Hi Is there a way to use mql4 to open 4 charts and tile them on the top of all other charts so that only these 4 charts are visible and equally sized in 2 rows and 2 columns? Thanks
Essam Daoud
Added topic FileOpen error 5011
Hi This code needs to open/create a file to write in, so that the content of the file will ONLY have what is being written by this code. GetLastError() is reporting 5011. Could some one please show why and how to fix it? The docs says F ile must be
Essam Daoud
Added topic PIP value in account currency
Hi I wrote this code after reading online, not sure how to do the "JPY" part of the code, please help and correct me if there is something wrong with it. Thanks // PIP value for standard lot 100,000 units double getPipValue(){    string
Essam Daoud
Added topic StringSplit AUDUSD
This code failed to return the number 6 which is how many char in a forex symbol, any idea how to fix it? Thanks    string symbolArr[];    int k = StringSplit ( Symbol (), "" , symbolArr);    Print ( "k is: " + k); //
Essam Daoud
Added topic color part of candle
Hi Is there a way to color a horizontal part of the candle, i.e. different colors at different price levels with in the same candle? either in mql4 or mql5. Any idea how to by example? Thanks
Essam Daoud
Added topic market watch grayed out items
I have many grayed out items in my Market Watch due to my broker not supporting the symbol, how do I remove them? My broker uses AUDUSD-5 instead of AUDUSD for example. Thanks
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