Dukascopy
 
 
Wiki JStore Search Login

Position Sizing
 Post subject: Position Sizing Post rating: 0   New post Posted: Tue 01 Aug, 2017, 04:19 

User rating: 0
Joined: Fri 12 May, 2017, 07:50
Posts: 6
Location: New ZealandNew Zealand
Hi forum,

I'm trying to create a block to increase my position size with each increase in equity, but I don't want the position size to decrease with a decrease in equity. For example, using an initial equity of $50,000, with 1% risk, and a 10pip SL, the position size is 0.5m. Then...when the equity increases to $51,000, the position size changes to 0.51m. However, if the equity then decreases to $49,000, the position size remains at 0.51m.

In the attached VJF file, you will see I have tried to use an assign block followed by a calculation expression, but the strategy does not work with it (Sorry, I have not included the rest of the holy grail ;-)

Please, take a look at it and let me know what I need to change to make it work.

Thanks, Rhys


Attachments:
Forum_Q1.vfs [27.7 KiB]
Downloaded 170 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: Position Sizing Post rating: 0   New post Posted: Thu 03 Aug, 2017, 09:25 
Visual JForex expert at Dukascopy
User avatar

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

Please check this example and let us know if it meets your requirements.

Cheers


Attachments:
Forum_Q2.vfs [26.31 KiB]
Downloaded 188 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: Position Sizing Post rating: 0   New post Posted: Tue 15 Aug, 2017, 21:39 

User rating: 0
Joined: Fri 12 May, 2017, 07:50
Posts: 6
Location: New ZealandNew Zealand
Hi Amine,

Yes, that is what I was trying to achieve. Thanks for your help!

Regards,

Rhys


 

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