Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
Counter doesn't work properly http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=146&t=55449 |
Page 2 of 2 |
Author: | kostakis [ Thu 05 Oct, 2017, 09:21 ] | ||
Post subject: | Re: Counter doesn't work properly | ||
Hi, I checked the attached example (RSIMACD_V3.vfs) and realized that it worked just in Aug 2017. Unfortunately, it does not work in all cases. I incorporated the COUNTER made by you, into my strategy (attached), putting it AFTER the MACD condition, but it did not work. Please, take a look at the picture below. I tested my strategy with Historical Tester on Jun 2017, using the EUR/CAD currency pair. As you could see in the picture below, the Buy trade was opened when the MACDHist was above the 0 for 34 hours. Could you, please, advise how the following problem could be resolved? Thank you.
|
Author: | amine_chourou [ Tue 10 Oct, 2017, 11:53 ] | ||
Post subject: | Re: Counter doesn't work properly | ||
Hi there, What you're saying is a requirement that is not developed in your strategy ! Look how it currently works: The reset of your counter is the cause of this position therefore the long position is created.
|
Author: | kostakis [ Tue 10 Oct, 2017, 13:35 ] | ||
Post subject: | Re: Counter doesn't work properly | ||
Hi, I see. Now, I understood how my counter worked. The question is, how to avoid that. Is there any possibility to avoid the counter resetting after 21 h? I need to have the counter reset when MACDHist crossed the 0 but NOT when MACDHist was above/below the 0 longer than 21 h. Please, take a look at the picture below. Could you, please, help me with that. Thank you. Kind regards.
|
Author: | amine_chourou [ Tue 17 Oct, 2017, 13:07 ] | ||
Post subject: | Re: Counter doesn't work properly | ||
Hi, I've implemented your conditions before the reset to 0 flow. Please check and test this. Feel free to adjust the logic as per your needs. Cheers
|
Author: | kostakis [ Tue 17 Oct, 2017, 19:57 ] |
Post subject: | Re: Counter doesn't work properly |
It works perfectly. Thank you so much. Kind regards. |
Author: | amine_chourou [ Thu 19 Oct, 2017, 14:48 ] |
Post subject: | Re: Counter doesn't work properly |
Excellent! Enjoy ! |
Page 2 of 2 |