I already have a EA which create order as market moves. It open orders like this
Sell
.01
.02
.03
.05 etc
And recalculate and reassign take profit upon opening any order.
So i was trying to create an ea that can close an order when its TP is set higher then sell or lower then buy by the EA i am already using.
This is to stop carrying losses as market keep moving opposite to my direction.
Best posts made by Wakalz99
-
RE: Close trade when take profit is higher then sell priceposted in Questions & Answers
Latest posts made by Wakalz99
-
RE: Close trade when take profit is higher then sell priceposted in Questions & Answers

this is the total thing i am trying to create and its not working as it should. also i tried all 3 take profit modes, price level fraction and pips. -
RE: Close trade when take profit is higher then sell priceposted in Questions & Answers
trust me the thing is wrote above is the EA i am trying to create just that simple. for your further research, search vzlomishk in google and download that ea. that is the one i am using and want to use this ea along with vzlomishk to control my losses.
-
RE: Close trade when take profit is higher then sell priceposted in Questions & Answers
it keep closing all orders, order xauusd 1501.90 tp was 1499, it closed it when market price was 1501.96.
same for buy orders -
RE: Close trade when take profit is higher then sell priceposted in Questions & Answers
fxdreema does not support entry price? as for open price it is considering maybe candle start price or something else, but for sure not Buying/Selling price. any idea?
-
RE: Close trade when take profit is higher then sell priceposted in Questions & Answers
Can please help me to do this same thing if no of orders are greater then certain number ?
Count total number of sell orders if > 10 Check if Buying open price >= Take Profit, Close this Trade Immediately. -
RE: Close trade when take profit is higher then sell priceposted in Questions & Answers
Thank You @trader-philipps it worked like magic. i want doing a bit different and second mistake was doing in on tick and on init.

Thank You again
-
RE: Close trade when take profit is higher then sell priceposted in Questions & Answers
@trader-philipps yes exactly, and i cant do it by connecting ballons, you have any idea which ballons i need and in which order.
-
RE: Close trade when take profit is higher then sell priceposted in Questions & Answers
As i described earlier my EA lets call it Boss, Boss opens trade and set take profit value for it.when price move against Boss's position, boss place more orders and re adjust Take profit value for all by modifying all open trades for that pairs. I want to create an EA here which keep checking open prices for Selling/Buying of trades and check if Take Profit is Greater/Lower then Selling/Buying, if it Found that it close trade immediately at current market price.
Check If Selling Open Price is <= Take profit, Close this Trade Immediately
or
Check Take Profit Value if >= Sell open price Close this Trade ImmediatelyCheck if Buying open price is >= Take Profit, Close this Trade Immediately
orCheck Take Profit Value if <= Buy Open Price, Close this Trade Immediately
Selling Price is 1.05, TP is set 1.06 Close this Trade Immediately
Buying Price is 1.10 TP is set 1.09 Close this Trade ImmediatelyI believe now you understand it clearly.
-
RE: Close trade when take profit is higher then sell priceposted in Questions & Answers
I already have a EA which create order as market moves. It open orders like this
Sell
.01
.02
.03
.05 etc
And recalculate and reassign take profit upon opening any order.
So i was trying to create an ea that can close an order when its TP is set higher then sell or lower then buy by the EA i am already using.
This is to stop carrying losses as market keep moving opposite to my direction. -
Close trade when take profit is higher then sell priceposted in Questions & Answers
I tried to create a simple ea which should keep checking take profit, when ever take profit is set higher then selling price or below then buying price, it should close that specific trade immediately on current market price.
I used if trade balloon on tick then conected codition to it and then used close trade ballon. But this is not working, there are trades on the pair i started it on which has take profit greater then selling price, but it is not closing them, keep saying working. Please some one help me out??