Dukascopy
 
 
Wiki JStore Search Login

Calculate P/L from all opened positions
 Post subject: Calculate P/L from all opened positions Post rating: 0   New post Posted: Fri 23 Aug, 2019, 15:27 

User rating: 0
Joined: Tue 29 Nov, 2016, 20:16
Posts: 8
Location: Slovakia,
Dear traders.

I'd like to ask you for help, how to program my strategy , to close all opened positions at once when they reach certain P/L in account currency, (inProfit & inLoss notes in my strategy).

my strategy steps description:

1.candle high>PivotPoint & candle low<PivotPoint ----> put 3 buy limit orders at S1,S2,S3 and 3 sell limits at R1,R2,R3
2.If candle high>PivotPoint & candle low<PivotPoint happens again -----> close all opened positions when there is some P/L in account currency.

Like in the picture in attachment
Strategy included
Thank a lot.
Image


Attachments:
PivotTrader.png [5.11 KiB]
Downloaded 378 times
PivotTrader.vfs [63.94 KiB]
Downloaded 198 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: Calculate P/L from all opened positions Post rating: 0   New post Posted: Tue 27 Aug, 2019, 10:22 
Visual JForex expert at Dukascopy
User avatar

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

Please use the manual first to learn Visual JF instruments.
https://www.dukascopy.com/vfhelper/down ... _locale=EN

To close positions as described, strategy has to calculate the sum P&L of positions, if it is more then needed, then use position viewer bloc and close all positions.

Kind regards, Support Team.


 

Jump to:  

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