|
Putting a pause in the strategy |
Mccluer840EU
|
Post subject: Putting a pause in the strategy |
Post rating: 0
|
Posted: Wed 11 Sep, 2013, 10:50
|
|
User rating: 1
Joined: Mon 21 Jan, 2013, 09:11 Posts: 51 Location: New ZealandNew Zealand
|
Hi. Does anyone know how to put a pause into a strategy, after an event of some sort, such as after a Buy or a Sell. There is a Stop block but there does not appear to be a Pause block. Thanks, Ted
|
|
|
|
 |
amine_chourou
|
Post subject: Re: Putting a pause in the strategy |
Post rating: 0
|
Posted: Wed 11 Sep, 2013, 12:08
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi, Well, there is no "Pause" block available in VJForex. The only "pause" action is to be performed manually when it comes to back-testing ( pause button in the historical tester panel) May I ask you why such a need ? can you post an example please ?
Thanks
|
|
|
|
 |
Fusion
|
Post subject: Re: Putting a pause in the strategy |
Post rating: 0
|
Posted: Wed 11 Sep, 2013, 13:08
|
|
User rating: 3
Joined: Tue 09 Oct, 2012, 11:59 Posts: 20 Location: Finland, Turku
|
Mccluer840EU wrote: Hi. Does anyone know how to put a pause into a strategy, after an event of some sort, such as after a Buy or a Sell. There is a Stop block but there does not appear to be a Pause block. Thanks, Ted Maybe a timer from the opened position placed in the order condition path, built from the (Link to thread) Close position when they last longer than 1:30 hour example would work as an temporary get around.
|
|
|
|
 |
amine_chourou
|
Post subject: Re: Putting a pause in the strategy |
Post rating: 0
|
Posted: Wed 11 Sep, 2013, 13:37
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Yes, it could be a an alternative solution but still, it depends on the strategy specifications. We can also use close and and cancel position if opened positions = X number.
|
|
|
|
 |
Fusion
|
Post subject: Re: Putting a pause in the strategy |
Post rating: 0
|
Posted: Wed 11 Sep, 2013, 14:18
|
|
User rating: 3
Joined: Tue 09 Oct, 2012, 11:59 Posts: 20 Location: Finland, Turku
|
Yes, much more elegant. I have a bad habit of complicating things.
|
|
|
|
 |
Mccluer840EU
|
Post subject: Re: Putting a pause in the strategy |
Post rating: 0
|
Posted: Wed 11 Sep, 2013, 21:34
|
|
User rating: 1
Joined: Mon 21 Jan, 2013, 09:11 Posts: 51 Location: New ZealandNew Zealand
|
Hi. Thank you for your response.
The need for a pause in the strategy is to enable me to see what is happening with my strategy. When a trade is opened, or closed, I would like to see the value of the various variables that are used to make that decision. As it is, I have a Stop block that stops the strategy and displays the values of the variables, but then it goes no further. If I'm testing on a month's data I get only the first trade. Overall, the strategy appears to be profitable, but it opens trades that do not satisfy the conditions specified in the strategy, and it misses trades that should have been opened.
Having the values of the variables when a decision is made to open a trade is the first step to finding out why it is making so many mistakes. I'm not a programmer so any suggestions in regards to a better approach would be much appreciated. Thanks, Ted
|
|
|
|
 |
Fusion
|
Post subject: Re: Putting a pause in the strategy |
Post rating: 0
|
Posted: Fri 13 Sep, 2013, 20:11
|
|
User rating: 3
Joined: Tue 09 Oct, 2012, 11:59 Posts: 20 Location: Finland, Turku
|
Mccluer840EU wrote: Hi. Thank you for your response.
The need for a pause in the strategy is to enable me to see what is happening with my strategy. When a trade is opened, or closed, I would like to see the value of the various variables that are used to make that decision. As it is, I have a Stop block that stops the strategy and displays the values of the variables, but then it goes no further. If I'm testing on a month's data I get only the first trade. Overall, the strategy appears to be profitable, but it opens trades that do not satisfy the conditions specified in the strategy, and it misses trades that should have been opened.
Having the values of the variables when a decision is made to open a trade is the first step to finding out why it is making so many mistakes. I'm not a programmer so any suggestions in regards to a better approach would be much appreciated. Thanks, Ted Figure it out yet? I assume you you running the strategy tester on VJF, just put a break point where you want one say at the trade event , hit resume after you done looking at the variables.
|
|
|
|
 |
dirk_r1
|
Post subject: Re: Putting a pause in the strategy |
Post rating: 0
|
Posted: Mon 16 Sep, 2013, 11:46
|
|
Visual JForex expert at Dukascopy |  |
User rating: 27
Joined: Fri 03 May, 2013, 18:25 Posts: 366 Location: GermanyGermany
|
Greetings! I am not sure if you guys already solved the problem, but you can easily put in a pause by logic. Or try to do it with a small loop like WHILE condition is not true DO nothing. For example:  When Conditions are met (you can decide whether it is after a certain period, after a close of positions, etc.) then the strategy starts running it again. I hope that helps! 
Attachments: |
condition.png [114.58 KiB]
Downloaded 548 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.
|
|
|
|
|
 |
dirk_r1
|
Post subject: Re: Putting a pause in the strategy |
Post rating: 0
|
Posted: Mon 16 Sep, 2013, 11:47
|
|
Visual JForex expert at Dukascopy |  |
User rating: 27
Joined: Fri 03 May, 2013, 18:25 Posts: 366 Location: GermanyGermany
|
Ah I misunderstood the question. I think the answer from Fusion might be the best 
|
|
|
|
 |
Mccluer840EU
|
Post subject: Re: Putting a pause in the strategy |
Post rating: 0
|
Posted: Mon 16 Sep, 2013, 22:48
|
|
User rating: 1
Joined: Mon 21 Jan, 2013, 09:11 Posts: 51 Location: New ZealandNew Zealand
|
Thank you for all your help.
Initially, what seemed like a relatively simple process has turned out to be not so simple. Working directly from the charts, using the 2 indicators DMI and Stochastic, it is visually obvious when a trade should be opened, Buy when +DI is increasing, and -DI is decreasing and %K is more than %D. And this holds for any chart, 1hour, 10 mins, .. The difficulty is "when is the price going to change?" Hence the need for a program to monitor the price, and close the trade when it turns.
At this stage I have established that trades are being opened when the 3 conditions are not satisfied, and at other times trades are being missed. But now, last night I made some minor changes, nothing structural but seemingly significant, because the strategy will not run at all.
Could you have a look at it for me please?
Attachments: |
VJForex12Sept13.vfs [48.9 KiB]
Downloaded 219 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.
|
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|