DeanDeV
DeanDeV
DeanDeV
Added topic List<Type> in MQL5
I have a background in C#, and wondering how I can get a list of type T in MQL5.  For example, if I have the below class:  class Person { public :    Person();    ~ Person(); private : }; In C#, I could easily get a list
DeanDeV
Added topic Can you access log files if your EA is hosted on a VPS
I have an EA that logs information (errors, trade data etc.) to log files in the form of .txt.  If I move this to a VPS, do I still have access to these files? I can't see anything obvious saying this here:  https://www.mql5.com/en/vps If I
DeanDeV
Added topic Finding the time of the beginning of the week/ month
Hey guys, I just need some help with the logic to this problem I seem to be having, and perhaps it is because I am thinking of this in the incorrect manner? So, for finding the time of the beginning of the week from any given day within that week, I
DeanDeV
Added topic Indicator to calculate spread between pairs
Hey Guys, I seem to be pulling my hair out on this one. All I would like to do is have an indicator in a new window measuring the spread between two pairs by drawing a line with it's price?   Could anyone help with this?   Any suggestions
DeanDeV
Added topic EA to match manual orders
Hey guys, So I have been struggling with this code, and not sure why. All I simply want is my EA to match whatever orders I place. Below is the function I have been using, however, it doesn't seem to match all the orders I place. Not sure if there is
DeanDeV
Added topic How to find the time when previous day high and low were made
Hey guys, I need some help please. I am trying to look for the time when the previous day high and low was formed. Below are my equations; they do give the correct prices, however they do not return the correct integers of the candles that formed the
DeanDeV
Added topic Fibonacci Expansion
Hey guys, Was wondering if any body has the source code for the Fibonacci expansion tool? I would greatly appreciate it. Thanks, Dean 
DeanDeV
Added topic FED Rate Decision
Hey guys, As we all may know there is the Fed rate decision tomorrow. Any thoughts? Cheers, Dean 
DeanDeV
Added topic Script to draw rectangles (Help please!)
Hey guys, Just need some help please. I would like to draw rectangles on the M5 chart. Each rectangle will represent M15. I basically want to show the previous days worth of M15 on M5. When I drop the script on the chart it only draws the attached
DeanDeV
Added topic OrderSend() error 130
Hey guys, I seem to be having a bit of a problem, and any help is appreciated. I am constantly getting OrderSend() errors 130 which I presume to be (ERR_INVALID_STOPS) and 4059 while back testing.. 2015.10 . 12 11 : 08 : 49.210 2015.01 . 02 11 : 28
DeanDeV
Added topic Calculating open orders
Hey guys, I have written a for loop that returns whether there are any open orders, however, it returns, on occasion, no open orders even when there are open orders. Is there any way to make this more accurate? Below is my code, any help is
DeanDeV
Added topic Losing connection to server
Hey guys, Every time I lose connection to the server on my MT4 terminal my EA does not seem to resume trading upon re-establishing the connection? Any advice on how to get it to carry on trading when the terminal reconnects? Any help is
DeanDeV
Added topic Select an order once it is opened
Hey guys, I seem to be having a problem. I have written the code needed to select the last pending order that has opened, upon opening I use PlaySound() . Now, it seems to keep selecting that order every new candle and playing the sound. Is there any
DeanDeV
Added topic Keeping track of profit per pair traded
Hey guys, Is there any way to keep track of the profit that the same EA has made per pair while trading? Thanks 
DeanDeV
Added topic Incrementing Lot Size per AccountBalance()
Hey guys, Does anybody have a function that increases the lot size by a certain amount when the account balance increases by a certain amount. Eg. If the account is initially on $2000 I want it to trade on 0.2 and when the account balance reaches
DeanDeV
Added topic Trailing step
Hey guys, I am trying to make a trailing step. Essentially like a trailing stop, but instead of moving the stop loss every point in profit, it only moves the stop loss after X amount in profit. Below is my code (tries to modify as soon as order
DeanDeV
Added topic OrderSend() sending sometimes
Hey guys, I need some help please. I send a buy stop, when price hits the buy stop it opens a buy order . When this happens I would like my EA to send a corresponding sell stop when price enters the buy stop. Now; this for loop works most of the
DeanDeV
Added topic Delete pending orders only if there are no open orders
Hey guys, Can anyone help with a for loop to close all pending order if and only if there are currently no open orders? Below is an attempt which I believe is pretty incorrect: bool DeletePending= false ;    for ( int z= OrdersTotal ()- 1 ;
DeanDeV
Added topic Saving OrderOpenTime() after OrderSend()
Hey guys, Is there any simple way to save the open time of an order after the OrderSend() function . Something like... //global datetime buyordertime; Start() int BuyOrder= OrderSend ( Symbol (),OP_BUY,LotSize,Ask, 3 ,StopLoss,TakeProfit, "buy order"
DeanDeV
Added topic EA to trade multiple time frames of same pair
Hey guys,   I need a bit of help please. I want my EA to check the D1 chart, then the H1 chart and then the M30 chart to send an order. How does one make the EA check those time frames while on the M30. I want to check if the current price
12