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.

DMI
 Post subject: DMI Post rating: 0   New post Posted: Wed 08 Aug, 2012, 09:18 
User avatar

User rating: 1
Joined: Tue 07 Aug, 2012, 08:43
Posts: 49
Location: SingaporeSingapore
Dear Support,
Could you please help to write the code using DMI.

When +DI cross above -DI, BUY, take profit 1 pip.
When +DI cross below -DI, SELL, take profit 1 pip.

Stop loss = 5 pips

Instrument - EUR USD

Time frame - 30 mins.

I saw one strategy ADXStrat2. However it works different. See attached.
My JAVA skills are bad.
Please help.


Attachments:
ADXStrat2.jfx [15.65 KiB]
Downloaded 271 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: DMI Post rating: 0   New post Posted: Wed 08 Aug, 2012, 09:22 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
For indicator calculation see:
https://www.dukascopy.com/wiki/#Indicator_Calculation
For checking for two line cross see:
https://www.dukascopy.com/wiki/#SMA_Crossover
For submitting orders with take profit see:
https://www.dukascopy.com/wiki/#Set_Take_Profit_price


 
 Post subject: Re: DMI Post rating: 0   New post Posted: Wed 08 Aug, 2012, 09:29 
User avatar

User rating: 1
Joined: Tue 07 Aug, 2012, 08:43
Posts: 49
Location: SingaporeSingapore
Dear Support, I had a look, its really complicated.
I request to please help program it.


 
 Post subject: Re: DMI Post rating: 0   New post Posted: Wed 08 Aug, 2012, 09:45 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Heatheri77 wrote:
Dear Support, I had a look, its really complicated.
The articles have attached example strategies. Try those strategies and adjust them to fit your requirements. Post your strategy here should you encounter any problems.
For programming your strategy we advise you to use an IDE, e.g. Eclipse:
https://www.dukascopy.com/wiki/#Use_in_Eclipse


 

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