Dukascopy
 
 
Wiki JStore Search Login

How to sum the pips of all open short positions
 Post subject: How to sum the pips of all open short positions Post rating: 0   New post Posted: Wed 15 Jan, 2014, 12:23 
User avatar

User rating: 1
Joined: Fri 22 Mar, 2013, 12:09
Posts: 9
Location: Italy, Florence
Goodmorning

i want to make the sum of all total pips for short position, if that sum is > 2 then i want to close all short positions

i create the calculation block, but that block don't take "MyPosition" as input, why? (see attached files)

Image


Attachments:
block_to_fix.png [31.31 KiB]
Downloaded 406 times
close_all_pos_when_in_gain_ver2.vfs [39.29 KiB]
Downloaded 112 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: How to sum the pips of all open short positions Post rating: 0   New post Posted: Wed 15 Jan, 2014, 18:24 
User avatar

User rating: 0
Joined: Mon 07 May, 2012, 07:24
Posts: 69
Location: CroatiaCroatia
Because you can't put position variable in that block. Variable must be numeric type, so you can calculate them.

Image


Attachments:
block_to_fix.png [36.14 KiB]
Downloaded 340 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: How to sum the pips of all open short positions Post rating: 0   New post Posted: Mon 20 Jan, 2014, 16:35 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Greetings.

Try following example:
download/file.php?mode=view&id=5485


Attachments:
CloseAllShort.vfs [26.63 KiB]
Downloaded 253 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.
 

Jump to:  

cron
  © 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