Ziad El
Ziad El
Friends

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

Ziad El
Added topic ENUM_BASE_CORNER corner=CORNER_RIGHT_LOWER has no effect
I am trying desperately to start my arrows from right lower corner, but MQL is insisting on referring all to CORNER_LEFT_UPPER... //+------------------------------------------------------------------+ //| Script program start
Ziad El
Added topic Are Stop Loss and Take Profit of a Market Order ... limit ordres?
Hi I am wondering if sl and tp of market orders are limit or market orders? the same question please for limit orders. Regards
Ziad El
Added topic Simulating SL and TP indirectly
I like, to avoid brokers possible excessive slippage, make a routine that continuously check for my open positions and: 1. if profit of a position is above the wanted profit, close that position with minimal deviation.     if the position
Ziad El
Added topic CHART_PRICE_MIN giving sometimes zero
The following script works for Subwindow=0, not for Subwindow=1 (it will return both values as 0) void OnStart ()   {    double priceMin= ChartGetDouble ( 0 , CHART_PRICE_MIN , 1 );    double priceMax= ChartGetDouble ( 0
Ziad El
Added topic Asking for Zigzag indicators values return weird results
I am trying to use Zigzag indicator values in numerous applications, say for example support and resistance determination. This code, which I believe worked in the past for me, is showing now weird results: int n = 200 ; //how many candles to check
Ziad El
Added topic ChartTimePriceToXY giving same (wrong) results
I am trying to use an indicator only as dashboard to draw rectangles, labels, present information... As drawing objects is easier with X and Y coordinates, I will end up using OBJ_LABEL and OBJ_RECTANGLE_LABEL ... But the indicator subwindow is based
Ziad El
Added topic Making an indicator see the higher timeframe
I am editing the MQL5 downloadable indicator " MACD.mq5 " to make it show the higher time frame MACD instead of the current one, but with no success. the main code I inserted is: input bool FractalTime = true
Ziad El
Added topic Is history gets simulated during backtesting?
Hi, I like to know if functions like:HistorySelect(), and HistoryDealGetTicket() are being allowed during backtesting . In other words, does History cache gets filled with the simulated trades
Ziad El
Added topic Knowing the profit of the last closed position
With two trials to get the profit of the last closed position (Hedging account), I am not arriving anywhere. The first trial is personal, and it goes like this: //+------------------------------------------------------------------+ //| Ask: MQL4
Ziad El
Added topic Substracting hours from MQLDateTime
Hi, Given a nb of hours that may be like 4, 235, or 0.4 hours, I want to get the MQLDateTime at that time back. For example: GMT time now is 4.40 am, so 4 hours back it was 0.40. I made a function that gives good answers if given numbers like 4, 234
Ziad El
Added topic About Testing MultiCurrencies and Time Frames in Strategy Tester
I have read in the documentation that it is possible to test many currencies (and timeframes?) in MQL5 strategy tester, but could not find a clear and simple example... So I made minimum changes to an EA that comes along with MT5: Moving
Ziad El
Added topic How often does OnChartEvent get the attention of the processor?
Hi, I am building a multipurpose EA, with the following approximate structure: int OnTick() { Call Very_Lengthy_Scanning_Function1(); Call Very_Lengthy_Scanning_Function2(); Call Very_Lengthy_Scanning_Function3(); } void
Ziad El
Added topic Is it possible not to snap to the grids?
I want to draw tiny boxes around certain (X,Y) points, where X are datetime, and Y are prices. I use the following, trying to get my width as less than a candle width: datetime X1 = X -( Time ( _Symbol , _Period , 1 )- Time ( _Symbol , _Period , 0
Ziad El
Added topic Emulating Time[] of MQL4 does not work
I am trying to write a function that emulates Time[] of MQL4 in MQL5: datetime Time ( string Pair, ENUM_TIMEFRAMES Tim, int N) { int start = 0 ; // bar index int count = N; // number of bars datetime tm[]; // array storing the returned bar time
Ziad El
Added topic How to increase volume of open position?
Hi, in Hedge type of account, how do I increase the volume of an open position? I guess in Non- Hedge account , the answer would be to ask for a new order. But in Hedging account, I assume that asking for a new order will result in new position? Can
Ziad El
Added topic The difference between ORDER_SL and POSITION_SL [3 Questions]
I do not get this: [1] If a position is the result of many orders taking places, each with a specific SL and TP, then what determines the POSITION_SL? [2] when we say Order, do we mean pending orders? In other words, are order properties still
Ziad El
Added topic How should text fields look like to be read by FileReadArray
For some reason I am not able to use the FileReadArray function: 1. How should fields be separated? TAB? space? semicolon? I used TABs 2. How should datetime be entered? I used D'01.01.2004' format I copied and run the following code from MQL
Ziad El
Added topic Is centralised money management possible? I cannot retrieve Ask(a different Symbol) other than current symbol...
Hi The title explains it all: It is possible to scan many pairs from a central chart with functions like iMA() etc: double    iMA (    string    symbol,     // symbol:  GOOD, this is needed
Ziad El
Added topic What is wrong with my indicator?
I am trying to write an indicator that draws 3 Stochastics curves on the same subwindow: 1. First one to show moment of the current time frame 2. Second one is to show cycle in the current time frame (reduced period...) 3. Third one is to show moment
12