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.

How to connect external strategy program?
 Post subject: How to connect external strategy program? Post rating: 0   New post Posted: Tue 19 Apr, 2016, 16:59 
User avatar

User rating: 0
Joined: Tue 19 Apr, 2016, 16:52
Posts: 1
Location: Switzerland,
Hi,

I have implemented a trading strategy in an external (C++) program. What is the best (easiest) way to connect my program so that it can trade automatically?

What I have done: I scan the prices in the JForex Platform. When I want to send virtual mouse clicks to buy an instrument, the click is not going through, has no effect. I tried the functions mouse_event, SendInput, SendMessage and PostMessage. All ways work well when they should click on a browser, for example, but they don't work when they should click on the JForex Platform.

Can you please help?

Thanks!


 
 Post subject: Re: How to connect external strategy program? Post rating: 0   New post Posted: Thu 21 Apr, 2016, 09:28 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
We would suggest using JForex SDK API
https://www.dukascopy.com/wiki/#JForex_SDK
https://www.dukascopy.com/client/javadoc/

A possible setup could be to create Java project that would connect to JForex API
Example here: (https://www.dukascopy.com/client/jforex ... ex-SDK.zip)

In this project it is possible to implement a bridge that calls C++ code using JNI.


 

Jump to:  

cron
  © 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