Dukascopy
 
 
Wiki JStore Search Login

Max and Min price of opened positions
 Post subject: Max and Min price of opened positions Post rating: 0   New post Posted: Tue 12 Apr, 2016, 01:05 
User avatar

User rating: 1
Joined: Wed 11 Dec, 2013, 18:48
Posts: 6
Location: Egypt, Asyut
Hello,

How I define highest price (max price) and lowest price (min price) of opened positions. for example, I have 5 long positions I want to close the highest buy price and lowest buy price positions if highest buy loss < lowest buy profit?

Thank you


 
The Best Answer  Post subject: Re: Max and Min price of opened positions Post rating: 0   New post Posted: Tue 12 Apr, 2016, 08:51 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

Min and Max can be retrieved using MIN and MAX math function, to do so you have to use "Calculation expression" block and drag all your variables from where you need to get the min and max data.

Image

Obviously, you can use the P&L in USD in your block.

Cheers


Attachments:
MinMAx.jpg [291.55 KiB]
Downloaded 251 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Max and Min price of opened positions Post rating: 0   New post Posted: Tue 12 Apr, 2016, 15:34 
User avatar

User rating: 1
Joined: Wed 11 Dec, 2013, 18:48
Posts: 6
Location: Egypt, Asyut
amine_chourou wrote:
Hi,

Min and Max can be retrieved using MIN and MAX math function, to do so you have to use "Calculation expression" block and drag all your variables from where you need to get the min and max data.

Obviously, you can use the P&L in USD in your block.

Cheers


Thanks a lot, Mr amine


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com