Dukascopy
 
 
Wiki JStore Search Login

Balance not changing and how to "pause" trading?
 Post subject: Balance not changing and how to "pause" trading? Post rating: 0   New post Posted: Sun 22 Nov, 2015, 20:15 
User avatar

User rating: 0
Joined: Tue 03 Nov, 2015, 02:34
Posts: 1
Location: United States,
The EA doesn't necessarily involve the questions... but maybe it can help give a no brainer answer to my first question.

Stupid but serious question: So will my balance only update on a Friday when the market closes?

Better question: How can I pause/stop my strategy for a week when a certain block happens? (Without using the utility stop strategy)
Lets say I just sold all my open trades. After that I want the whole strategy to stop flowing for one week. Would this be possible with GetTimeUnit blocks? I'm not sure how I'd make it, but figured I'd ask before trying to make it.

Thank you so much in advance,
Blaise


Attachments:
NotSoSimpleSMA.vfs [40.28 KiB]
Downloaded 78 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: Balance not changing and how to "pause" trading? Post rating: 0   New post Posted: Mon 23 Nov, 2015, 10:54 
Visual JForex expert at Dukascopy
User avatar

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

Welcome to this forum.

Quote:
So will my balance only update on a Friday when the market closes?

No the balance gets updated every day after settlement @22GMT winter time
Quote:
How can I pause/stop my strategy for a week when a certain block happens?

This indeed possible : If I consider your example, I assume that your strategy will permanently having open positions and once all closed you will pause the strategy: In this case I will us a condition that checks the number of open positions (Variable called : Position Amount under Positions section in the left side) and IF Position amoutn = 0 then you set a break.
Now the method to set a break in another story and needs more precision in terms of description but basically you need to use a "On / Off" variable and set the way it switch automatically on and off. the most used variable type for this need is "Boolean" but it could be another type.
Attached a simple example using days of the week switch. (more examples available in the section called "Working with time")

Cheers


Attachments:
OnOFF.vfs [21.84 KiB]
Downloaded 89 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:  

  © 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