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.

coding ST/TP on tick in Java
 Post subject: coding ST/TP on tick in Java Post rating: 0   New post Posted: Mon 16 May, 2011, 11:11 

User rating: -
Hi!
I would be greatful if you could give me some help in Jforex API.
How should I code the "Stop Loss"/"Take Profit" orders in Java if I want them to be filled on ticks not on--forexample--next candle open.
Is there any instructions i could use?

Thanks,
Andrew


 
 Post subject: Re: coding ST/TP on tick in Java Post rating: 0   New post Posted: Tue 17 May, 2011, 16:07 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Use IStrategy method onTick.
See javadoc:
https://www.dukascopy.com/client/javadoc ... ategy.html
and JForex wiki for an example of a simple strategy:
https://www.dukascopy.com/wiki/index.php ... e_Strategy


 

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