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.

shift logic error in indicator
 Post subject: shift logic error in indicator Post rating: 0   New post Posted: Thu 04 Apr, 2013, 17:55 

User rating: 0
Joined: Wed 06 Mar, 2013, 02:31
Posts: 1
Location: United States, Coral Springs
Support or anyone. I've re-written this indicator from mql4 and it works fine however in mql4 i get an alert on shift==1 and with the converted file i get alert on later bars. Its something silly that is escaping me, please have a look. much appreciated. (p.s. i first tried converting the mql4 file directly in JForex, works great but gives random errors)

Thanks in advance


Attachments:
PairDivergence.java [24.45 KiB]
Downloaded 275 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: shift logic error in indicator Post rating: 0   New post Posted: Mon 08 Apr, 2013, 11:56 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
cpowlett wrote:
I've re-written this indicator from mql4 and it works fine however in mql4 i get an alert on shift==1 and with the converted file i get alert on later bars. Its something silly that is escaping me, please have a look. much appreciated.
Consider adding some logging statements to see what values you actually work with and what execution paths get taken, you can do it in the similar way that it is done in here (find the attachment HolderTestLog.java):
viewtopic.php?f=65&t=48828&p=69618
cpowlett wrote:
i first tried converting the mql4 file directly in JForex, works great but gives random errors
Report it here:
viewforum.php?f=124


 

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