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 ObjectMove the ChartRedraw object does not change size
Hi This part code modifies the rectangle so that its lower edge (price) changes accordingly, But when the code is fired, the rectangle does not move its lower edge to reflect the lower price than the current rectangle lower edge. How do I go about
Essam Daoud
Added topic Array Invalid Index Value
This mql5 code is giving error as shown. Why and how to fix it? "[" invalid index value Thanks template < typename T> uint arrayUnshift(T &arr[], T val){    uint newSize = ArraySize (arr) + 1 ;   T
Essam Daoud
Added topic ArrayResize declaration without type
This code's error is ' declaration without type', Any idea why and how to fix it? Thanks input int        days= 3 ; Session *session[]; ArrayResize (session, days); //<<<< ERROR <<< declaration
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