DeanDeV
DeanDeV
DeanDeV
Added topic Highest High and Lowest Low for the Day
Hey guys,  I am in need of assistance please. What I would like to do is every time price creates a new high or low for the day I want to be able to save the price and the time somehow (perhaps in the global scope) to use it as a reference
DeanDeV
Added topic OrderSend() error 129
Hey guys,  I send 2 orders at the exact same time, yet one returns this error and the other gets placed just fine. Any reason why this would happen? int buyMA= OrderSend ( Symbol (),OP_BUY,Lotsize,Ask, 3 ,Ask-(StopLoss* Point ),Ask+(TakeProfit*
DeanDeV
Added topic ObjectCreate() help!
Hi guys, I am trying to get my EA to draw a rectangle a specific time. When it is that specific time, it draws it, but continuously draws it after. I get error code 4200. Any ideas to ensure it draws it once..?   if (DayOfWeek()== 5 &&
DeanDeV
Added topic iHighest() and iLowest()
Hi guys, I have the below code for pending orders . I want it to place a buy stop X points above the highest point in the last few candles, and X amount below the lowest point in the last few candles. The orders aren't being sent at all, and I get
DeanDeV
Added topic OrderDelete() deleting incorrect order
Hi guys, My OrderDelete() is attempting to delete incorrect orders, thus giving me errors. Below is the code: void DeleteOrders() {    for ( int g= OrdersTotal ()- 1 ; g>= 0 ; g--)    {      if (
DeanDeV
Added topic OrderClose() closing incorrect order
Hi guys, I have a function , namely: void CloseOrders() {    for ( int d= OrdersTotal ()- 1 ; d>= 0 ; d--)    {      if (! OrderSelect (d,SELECT_BY_POS,MODE_TRADES)) continue ;  
DeanDeV
Added topic OrderClose() not closing at specific time
Hi gurus, I seem to be having a problem with my OrderClose() function . I want to close all orders at a specific time. I used the code from RaptorUK's thread:  https://forum.mql4.com/48352 When it reaches the specific time it doesn't run the
DeanDeV
Added topic Selecting an order and then using OrderSend() based on it
Hi, I seem to be having a problem. I want to select an order and then when that order is in a certain amount of profit I want to send another order. Below is my code. When it reaches the certain amount in profit it places continuously as it
DeanDeV
Added topic OrderModify() error 1
hi, I keep getting this error, and not sure why?  i know in the book it states " Open price and expiration time can be changed only for pending orders . If unchanged values are passed as the function parameters, the error 1 (ERR_NO_RESULT) will
DeanDeV
Added topic Finding the open price of a specific candle
Hi guys,  I need some help please. I am looking at finding an open price for a specific candle as reference for a trigger; if the current price is a certain amount from that candle. I cannot use Open[], obviously. I am also aware that if it
DeanDeV
Registered at MQL5.community
DeanDeV
Added topic Break even / trailing stop
Hi guys, If I place an order of let's say take profit 500 and stop loss 100. I want the order to break even when it gets to 100 profit (which is easy enough to code) however, I want the stop loss to move up every 100 pips (not trail) by 100 pips. So
DeanDeV
Added topic EA places trades on strategy tester but fails to place on live?
Hey guys, I have coded an EA and it places perfectly on strategy tester but when it comes to placing on my live account it places occasionally (some days it will place on a currency pair and some days it won't)? Which leaves me frustrated. Do any of
DeanDeV
Added topic EA placing 2 orders at the same time?
Hi, I have a MA EA which should only place a single buy/sell order on a cross over. Any way to stop it from placing 2, sometimes 3, on a single crossover? void OrderEntry( int direction)    {    if ((Hour()>=StartTimeMA
12