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()
Hi all, I want to give every order that is opening a lot size bigger than the last one. For that I try to use the following code to get it. The issue is that the orders are not getting to open, but if I use FixedLotSize directly (without lot
Hi all, Say that I have more than one order open and I just want to get the profit, commission or any other information regarding the state of the last order. Is the following code the right way to get it ? void OrderGetProfit()
Hi all, So, the issue have to do with the open of an order that should be opened from a distance of other. Say that one want to open an Sell order 2 pips (20 points) down from the open price of the Buy order. With the code that follows some
Hi, Do anyone know how to get a line object to have a behaviour like trailing stop. What I mean is a way to substitute the stop loss modified with a line object and here this line should have to go in the market direction only
Hi all, This ea have a strategy that open an opposite order at a precise distance. The issue is that it opens the order but many times with a different distance that it should. Below is the code that ope the opposite order, could anyone
Hi all, What I'm looking for is way to get a signal to open orders based in datetime I mean, if time now is different from time previous then the price will obviously be different and so if Bid now is n pips above (or down)
Hi all, The code works fine, but sometimes it fail to start trailing. Could anyone get why ? The Trailing Stop should start to trail once MinimumProfit is reached. I've even change the position of line that makes the Trail start. The ea is to
Hi all, I've a question regarding arithmetic operation between OrderProfit() and OrderCommission(). Say that I want to find out when a n order is in profit, I mean if an order has it's own commission which is fixed then order
Hi all, So, I've a logic that will open consecutive market orders on an ECN Broker. Each order have it's own commission and when the last order closes I need to incorporate all commissions to get AccountProfit() - commission
Hi all, I want to get the OrderCommission() of an open order, for that have include extra code in the following block, Is this right and if so is it value accessible in any part of code including void functions if I put double
Hi all, Is that possible to call a function from another function. What I mean is, if inside a void function I want to call another void function is this possible ? thanks for any clue here Luis
Hi all, Say that the value of AccountProfit() is 2 and on the next tick is 3, then a variable called AP is on is track minus 0.5 (just example) when next tick comes AccountProfit() comes down to 2. How could I get a way to fix
Hi all, Say that I want to get information regarding profit that has been take with an ea to another place or mail address. Is this possible ? Thanks in advance for any help on this matter. Luis
Hi all, So, I'm looking to modify an object position like stoploss line in a TrailingStop code. The object is created in the right place but it do not follow the price. Also it not delete from the chart ( at this moment the Tester chart )
Hi all, So I've the EA running well on a ECN Broker without any error 130 return but once running on a STP Broker the opening of orders is fine and when TrailingStop should "start is work" error 130 pops up. As far I understood ECN Broker
Hi all, I've this issue occurring during the time that orders take to get closed; Say that I have 6 orders open and then the conditions to close all are in place, because the orders do not close at same time how can one avoid to get an opening to
Hi all, I've a workable EA with no problems in an ECN Broker, but on a STP Broker the Trailing Stop do not work. A error 4051 and invalid lots amount for order send function has been returned but can't figure out how to get from here. following
Hi all, In code I get the error message '(' - function definition unexpected, Could anyone help me to get this right ? In attach is all the code and in Bold is where I suppose the problem is, nevertheless I've been uncessuful