Dukascopy
 
 
Wiki JStore Search Login

One position per signal
 Post subject: One position per signal Post rating: 0   New post Posted: Wed 23 Oct, 2013, 16:46 
User avatar

User rating: 0
Joined: Wed 01 May, 2013, 09:18
Posts: 25
Location: Poland, Tuskownia
Hi guys,
Can someone show me, how to create just one position per one signal?
Below an example of the strategy.
Image


Attachments:
example.vfs [36.63 KiB]
Downloaded 283 times
example.png [111.17 KiB]
Downloaded 685 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: One position per signal Post rating: 0   New post Posted: Wed 23 Oct, 2013, 17:28 
Visual JForex expert at Dukascopy
User avatar

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

I am afraid I do not understand you correctly.

Do you mean by "signal" on candle?

Please bear mind that when you are calculating onTick the "signal" is equal to the tick.

So please specify.

Cheers!


 
 Post subject: Re: One position per signal Post rating: 0   New post Posted: Wed 23 Oct, 2013, 19:04 
User avatar

User rating: 0
Joined: Wed 01 May, 2013, 09:18
Posts: 25
Location: Poland, Tuskownia
Thanks for reply dirk_r1.
Writing a "signal", I mean the time at which the current ema> preavious ema and Laguerre = 0 for BUY in this example.
I hope that now it is more clearly explained on the screen.
Cheers!
Image


Attachments:
example2.png [121.45 KiB]
Downloaded 686 times
example2.png [120.9 KiB]
Downloaded 442 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: One position per signal Post rating: 0   New post Posted: Thu 24 Oct, 2013, 08:50 
Visual JForex expert at Dukascopy
User avatar

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

Try to use onCandle start point.


 
 Post subject: Re: One position per signal Post rating: 0   New post Posted: Thu 24 Oct, 2013, 13:16 
User avatar

User rating: 0
Joined: Wed 01 May, 2013, 09:18
Posts: 25
Location: Poland, Tuskownia
Hi Vadim,
With candle start point is the same situation. Is it possible to take a break after each open position, for example, two hours?


 
 Post subject: Re: One position per signal Post rating: 0   New post Posted: Fri 25 Oct, 2013, 11:34 
Visual JForex expert at Dukascopy
User avatar

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

I strongly doubt that when using onCandle start point would be the same like tick start point!

Please make sure that you add these filters in order to trade each candle:

Image

Also please make sure that when testing the strategy in historical tester select your default period on the chart which that you have chosen before when start running the strategy.


Attachments:
onCandle_TF.png [90.46 KiB]
Downloaded 721 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: One position per signal Post rating: 0   New post Posted: Fri 25 Oct, 2013, 14:08 
User avatar

User rating: 0
Joined: Wed 01 May, 2013, 09:18
Posts: 25
Location: Poland, Tuskownia
Hi dirk_r1,
Ok, maybe they are not the same but still there are a few positions opened on the same signal. Look at the screen and code.
Image


Attachments:
example2.vfs [36.76 KiB]
Downloaded 251 times
example3.png [100.58 KiB]
Downloaded 730 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: One position per signal Post rating: 0   New post Posted: Mon 28 Oct, 2013, 09:40 
Visual JForex expert at Dukascopy
User avatar

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

I tested the strategy on last week with your default settings - i did not found any errors :)

Please make sure that you have always the correct timeframe showing in historical tester


Image

Or maybe I do not get your question/complain?


Attachments:
variables_test.png [63.01 KiB]
Downloaded 671 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: One position per signal Post rating: 0   New post Posted: Mon 28 Oct, 2013, 14:16 
User avatar

User rating: 0
Joined: Wed 01 May, 2013, 09:18
Posts: 25
Location: Poland, Tuskownia
Hi dirk_r1,
When testing last week, actually there is no errors but testing throughout September there are several positions on the same signal.
Look at the screen, example2 with default settings. The TF on historical tester is always 1H. Any suggestions?
Image


Attachments:
ex3.png [107.32 KiB]
Downloaded 673 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.
 
The Best Answer  Post subject: Re: One position per signal Post rating: 2   New post Posted: Mon 28 Oct, 2013, 16:09 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Well I think now I know what you want ;)

Because there is no bug and the strategy works like it should - but I believe that you just want ONE trade on ONE signal - if the signal is after the close still the same then do not trade, right?

(Sorry, if I misunderstood that!)

It would be one way how to do it:

Let me know if it is what you wanted.

Cheers!

PS: You can also do it with a counter: after x-candles wait for new buy or sell signal.


Attachments:
example2_s.vfs [39.77 KiB]
Downloaded 315 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: One position per signal Post rating: 0   New post Posted: Mon 28 Oct, 2013, 17:49 
User avatar

User rating: 0
Joined: Wed 01 May, 2013, 09:18
Posts: 25
Location: Poland, Tuskownia
Thanks very much dirk_r1. This is exactly what I wanted to achieve. :D
Cheers!


 

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