18081961
18081961
Friends

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

18081961
Added topic Protect Profit
Hi all, I'm looking to get a function where once total order profit get say $10, if it bounces back to $5, our open orders are closed. I'm try to make use of the follow code, but can't get the result expected. Is that possible get some help to put me
18081961
Added topic EA can't reopen orders
Hi all,  At first, ea is working fine, but once an order is closed but trailingstop the ea do not start to open an order. As it is, once price is greater than the OpenDistance the ea open an order and if price goes back more than the
18081961
Added topic Issue with trailingStop
Hi all, I've a problem with the follow code to get the trailing Stop to start after a minimum profit is reached. As it is when a profit of 5 pips is reached, the stop loss should get positioned at 3 pips after the order open price , but what is
18081961
Added topic update indicator status
Hi all, When  one Refresh the chart the indicator "Cycle Identifier" update is status. What could one do to maintain this indicator up to date without the need to refresh the chart ? Thank you in advance for any help provided. Luis 
18081961
Added topic Hidden stoploss and takeprofit
Hi all,  Could anyone clarify me if there any advantage to get the soploss anf takeprofit hide from brokers ?   Thank you in in advance Luis 
18081961
Added topic right place to put RefreshRates()
Hi all, I've seen some code examples where the RefreshRates() followed by Sleep() is after, say OrderClose(). The question is where should be the right place to put it. Shouldn't it be before OrderSend(), OrderClose() or OrderModify(), instead of
18081961
Added topic Requote issue
Hi all, Sometimes when we want to close an order  an error message from the broker says that the price is invalid and  we have to confirm to close the order. In that case how is possible to confirm this with code ? What I mean is if we can
18081961
Added topic Retry if IsTradeContxtBusy()
Hi all, I'm using 4 instances on an EA and want to prevent for conflicts. The code that I though to use is as follow  if (......)          while (IsTradeContextBusy()) Sleep ( 10 );
18081961
Added topic ea working in more than one pair
Hi all,  Say that I want to use same ea in more than one pair, is that enough to put different symbol an magic number in each ea instance to avoid conflicts (Iscontext busy) or is that necessary to  use of  a Retry routine or even make
18081961
Added topic Open a new order
Hi all, I'm try to get a new order open when the the difference between Bid and last order open price equals or is above ta certain distance. The code that I want to use  is as follow;   void OpenNextOrder()     {
18081961
Added topic Close orders that are in loss
Hi all, I'm looking to close orders that are in loss once account profit is in profit. The code that I have is as follow. Does anyone give me a help ? Thank you in advance. Luis void GetTotalOrderProfit()        { //0
18081961
Added topic Open order every x pips increase
Hi all, Do anyone have an idea how to get a an order to open very time price increase by x pips (10, 15, etc) ? Thanks in advance Luis 
18081961
Added topic Open a pending order
Hi all, I'm looking to put a pending order opposite to a buy already open. For that I though to make use if this code. Nevertheless is not working as expected. Also I receive the error Invalid lots amount for OrderSend function .  Could you show
18081961
Added topic different open distance
Hi all, I have one issue with an ea regarding open orders. I'm looking to open opposite orders apart of an opposite distance from an existing one. Some times it opens at right distance, others at a distance above and others even a distance below
18081961
Added topic Open opposite order
Hi all,   I need to open an order apart other x pips. for that I though to use this kind of function , but seems it do not work properly.  Is that possible take from you some help ? extern int OppositeDistance  =  
18081961
Added topic Alert show up
Hi all,  While the order is placed and works fine every time a new order is open the alert shown up. This should only happen if the order fail and that is not the case. Follow is the code. Could any of you tell me if the way and place of
18081961
Added topic Is that due to slippage ?
Hi all,  Say that an order do not open, is there a way to know if that happen due to slippage ?  Thank you in advance Luis 
18081961
Added topic Last order information
Hi all, What I want to get is; If last order minus 1 has its profit above or equal to 0 then close all open orders. If last order is equal to MaxOrders and if profit is less than 0.00002 then close all open orders. I already have put to the forum a
18081961
Added topic Error invalid parameters
Hi all,  I'm testing the ea on a demo account and some times comes this error  on Journal tab;  14:30:02 '2089041584': modification of order #6413070 sell 0.04 EURUSDi at 1.29077 sl: 1.29039 tp: 1.28584 -> sl: 1.29038 tp: 1.28584
18081961
Added topic Count down issue
Hi all,  I have one issue with trailing stop.   In code that follows when I use count down  sell trailing do not work, but if start to count up it work fine. Any clarification regarding the above ?    void Trail()