Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Potential problem with strategy on the wiki
 Post subject: Potential problem with strategy on the wiki Post rating: 0   Post Posted: Thu 23 Jun, 2016, 11:11 
User avatar

User rating: 0
Joined: Wed 23 Mar, 2016, 21:17
Posts: 7
Location: Czech RepublicCzech Republic
Good morning, I'm making this new topic to ask about the strategy that is on the JForex API wiki: https://www.dukascopy.com/wiki/#SMA_Crossover

I have a question about it, I just put the exact same code into a strategy in my jforex platform, and when I test it, I very often get OPPOSIEe signals to what it should be. Where normally you should get a BUY, there is a SELL. It doesn't always happen, but it happens very often. Just check it for yourself, by running the visual version of the strategy that I linked *it's the second strategy on that webpage, which provides signals on the chart).

Just run it with the default parametrs (2, 5) and you'll see.

Can you please tell me if there is something I'm doing wrong or something wrong with the code? (Visual version of strategy on this webpage).


 
 Post subject: Re: Potential problem with strategy on the wiki Post rating: 0   Post Posted: Mon 27 Jun, 2016, 08:48 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
The way to detect a signal depends on particular strategy.
Please note that when a new bar is received it is not yet finished. This means that when the bar finished it may have completely different values, and, hence, the resulting signal may have changed. So there is always a tradeoff between responding to a signal early and waiting for the bar to close to get more precise signal but with a delay.


 

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