Dukascopy
 
 
Wiki JStore Search Login

How to set an auto trading strategy on one currecy pair only?
 Post subject: How to set an auto trading strategy on one currecy pair only? Post rating: 0   New post Posted: Tue 11 Dec, 2012, 07:12 

User rating: 0
Joined: Tue 11 Dec, 2012, 07:05
Posts: 1
Location: TaiwanTaiwan
Hi everyone,

I am new to forex trading and currently trying to use Milani's strategy on my demo account, but it kept executing another currency pair instead of EUR/USD (I only have EUR/USD chart opened). Please, can somebody help?

Thank you very much for your help.


John


 
 Post subject: Re: How to set an auto trading strategy on one currecy pair only? Post rating: 1   New post Posted: Tue 11 Dec, 2012, 13:20 
User avatar

User rating: 8
Joined: Tue 31 Jan, 2012, 11:24
Posts: 72
Location: India, Gurgaon
Add following code on Tick method and Bar method :

Example for ontick :

public void onTick(Instrument instrument, ITick tick) throws JFException {
 if (instrument != Instrument.EURUSD) return;  


it will solve your problem.

Regards,
Santosh.


 

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