last open position is a sell or a buy
Posts made by pontedruse
-
Hi! I need a function that tells me if the last open position is a sell or a buy. How can I do?? thank you.posted in Questions & Answers
-
RE: Separately manage trade sell and trade buy and their relative profits and losses with a single expert advisor and a single account on the brokerposted in Questions & Answers
One of the many hypotheses I thought of is to create a variable in which there is 50% of the initial capital plus the profit from the purchase positions, and another variable in which there is 50% of the initial capital plus the profit of sales positions. How can I do it? @miro1360
-
RE: Separately manage trade sell and trade buy and their relative profits and losses with a single expert advisor and a single account on the brokerposted in Questions & Answers
@pontedruse said in Separately manage trade sell and trade buy and their relative profits and losses with a single expert advisor and a single account on the broker:
@trader-philipps Give me a practical example with some screenshots or with a shared copy (web link)
-
RE: Separately manage trade sell and trade buy and their relative profits and losses with a single expert advisor and a single account on the brokerposted in Questions & Answers
@trader-philipps Give me a practical example with some screenshots or with a shared copy (web link)
-
RE: Separately manage trade sell and trade buy and their relative profits and losses with a single expert advisor and a single account on the brokerposted in Questions & Answers
@pontedruse said in Separately manage trade sell and trade buy and their relative profits and losses with a single expert advisor and a single account on the broker:
@l-andorrà Practically the Sell positions must manage themselves in their own loss profits and in 50% of the initial capital without touching the profits the losses and 50% of the initial capital of the Buy positions. And the Buy positions must do the same.
@fxdreema it can be done???
-
RE: Separately manage trade sell and trade buy and their relative profits and losses with a single expert advisor and a single account on the brokerposted in Questions & Answers
@l-andorrà Practically the Sell positions must manage themselves in their own loss profits and in 50% of the initial capital without touching the profits the losses and 50% of the initial capital of the Buy positions. And the Buy positions must do the same.
-
RE: Separately manage trade sell and trade buy and their relative profits and losses with a single expert advisor and a single account on the brokerposted in Questions & Answers
@l-andorrà But I would also like the respective profits, losses, and 50% of the initial capital to be separated. As if there were 2 equity and 2 balance in the same account.
-
Separately manage trade sell and trade buy and their relative profits and losses with a single expert advisor and a single account on the brokerposted in Questions & Answers
Hi, I would like to manage the realized profit and the unrealized profit of the sell positions separately but with a single expert advisor 50% of the initial capital. And separately the other 50% of the initial capital the realized profit and the unrealized profit of the buy positions. As if you had 2 accounts on the broker, but I would like to do it with only one account and only one expert advisor. it's possible???
-
RE: Calculation drawdown of balance and equity in mql5posted in Questions & Answers
@fxdreema said in Calculation drawdown of balance and equity in mql5:
By the way I wrote to the author in email. I will post a screenshot of it here, just in case:
Thanks @Fxdreema !! it worked well

-
RE: Calculation drawdown of balance and equity in mql5posted in Questions & Answers
@pontedruse said in Calculation drawdown of balance and equity in mql5:
@roar said in Calculation drawdown of balance and equity in mql5:
How do you define the drawdown in this case? The % fall from record high balance?
Yes, I'll give you an example, I start with a capital of 3000 usd, then the balance reaches 20,000 usd and then drops to 16,000 usd.And then I would like that after a 20% drawdown that is 16,000 usd all open positions close
-
RE: Calculation drawdown of balance and equity in mql5posted in Questions & Answers
@roar said in Calculation drawdown of balance and equity in mql5:
How do you define the drawdown in this case? The % fall from record high balance?
Yes, I'll give you an example, I start with a capital of 3000 usd, then the balance reaches 20,000 usd and then drops to 16,000 usd.And then I would like that after a 20% drawdown that is 16,000 usd all open positions close
-
RE: Calculation drawdown of balance and equity in mql5posted in Questions & Answers
With mql4 I also know how to do it through trade statistics, but it only works on equity and doesn't work with balance. So I need to do it in mql5 where maybe the bug on drawdown balance has been fixed. Anyway thanks anyway, for your kindness.
-
Calculation drawdown of balance and equity in mql5posted in Questions & Answers
Hi, I need a block or a formula to calculate the balance and equity drawdown as a percentage or as a real number. in mql4 there was the trade statistics function that allowed to do it, but in mql5 this function was removed. Do you have any idea how you can do even in mql5, I need to close the open positions based on the drawdown. thank you....