Dukascopy
 
 
Wiki JStore Search Login

I can do so that one position opens at a time (of course, if I close a position, a new one should automatically open)?
 Post subject: I can do so that one position opens at a time (of course, if I close a position, a new one should automatically open)? Post rating: 0   New post Posted: Sat 23 Nov, 2013, 18:25 

User rating: 0
Joined: Wed 20 Nov, 2013, 07:44
Posts: 7
Location: United Arab EmiratesUnited Arab Emirates
Hello

I built a simple strategy where only one position should open when the price crosses the bollinger bands up or down, but the problem is that it opens many positions at the same time--even if there is position already open. Basically, I want it so that only one position can open at a time. If there is a position already open, another position shouldn't be able to open.

So what I can do so that one position opens at a time (of course, if I close a position, a new one should automatically open)?


Even though I tried the following "if condition," it doesn't work:
I tried this

Image

and this as well
Image


I look forward to your response

Thank you
Motaz


Attachments:
if 1.jpg [37.01 KiB]
Downloaded 568 times
if 0.png [17.1 KiB]
Downloaded 550 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: I can do so that one position opens at a time (of course, if I close a position, a new one should automatically open)? Post rating: 0   New post Posted: Mon 25 Nov, 2013, 09:41 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Greetings!

Please provide the .vfs file for further investigation.

Thx


 
 Post subject: Re: I can do so that one position opens at a time (of course, if I close a position, a new one should automatically open)? Post rating: 0   New post Posted: Mon 25 Nov, 2013, 10:44 

User rating: 0
Joined: Wed 20 Nov, 2013, 07:44
Posts: 7
Location: United Arab EmiratesUnited Arab Emirates
Kindly find attached the VFS file for the same strategy but 2 tries


I look forward to your response

Thank you
Motaz


Attachments:
File comment: Position amount < 1
BBANDS1.vfs [25.97 KiB]
Downloaded 217 times
File comment: Position amount = 0
BBANDS0.vfs [25.97 KiB]
Downloaded 224 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: I can do so that one position opens at a time (of course, if I close a position, a new one should automatically open)? Post rating: 0   New post Posted: Mon 25 Nov, 2013, 16:43 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Thank you.

I did not reproduce many open positions with BBANDS1. Maybe you can provide us your settings you run the strategy?
Indeed, there were many positions opened with BBANDS0. Settings: lastWeek; default settings.

We are investigating!

Thank you!


 
 Post subject: Re: I can do so that one position opens at a time (of course, if I close a position, a new one should automatically open)? Post rating: 0   New post Posted: Wed 27 Nov, 2013, 08:02 

User rating: 0
Joined: Wed 20 Nov, 2013, 07:44
Posts: 7
Location: United Arab EmiratesUnited Arab Emirates
actually I tried to run the strategy from https://www.dukascopy.com/vjforex/ and it works
but when I tired to contest the strategy it doesn't work
so I tried to copy the Java language source From view sours and paste it into my JForex in my laptop and it is still opening many positions in the same time


Attachment:
Copy.jpg [250.75 KiB]
Downloaded 354 times



Attachment:
Paste.jpg [350.65 KiB]
Downloaded 349 times



Thank you for your help
Motaz


 
 Post subject: Re: I can do so that one position opens at a time (of course, if I close a position, a new one should automatically open)? Post rating: 0   New post Posted: Wed 27 Nov, 2013, 09:21 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Did you run it on locally or remotely?
Historical Tester or Realtime?

To make it easy and without any errors: Here would be the strategy which opens the positions correctly. You can use the strategy in every mode (remote, local).

Have fun!

PS: I kindly ask you to reply on my first two questions :)


Attachments:
BBANDS0_1.vfs [31.3 KiB]
Downloaded 244 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: I can do so that one position opens at a time (of course, if I close a position, a new one should automatically open)? Post rating: 0   New post Posted: Wed 27 Nov, 2013, 10:19 

User rating: 0
Joined: Wed 20 Nov, 2013, 07:44
Posts: 7
Location: United Arab EmiratesUnited Arab Emirates
Hello

I run the strategy Locally
and real-time


Thank you so much for the strategy

and thank you for you corporation

Motaz AlHamdan


 
 Post subject: Re: I can do so that one position opens at a time (of course, if I close a position, a new one should automatically open)? Post rating: 0   New post Posted: Thu 28 Nov, 2013, 08:32 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Thank you and you are most welcome :)


 

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